So according to Overview | Adafruit 3.5" 480x320 TFT FeatherWing | Adafruit Learning System that Feather shield has
- If you have the 3.5" TFT Featherwing, run the Adafruit HX8357->touchpaint_featherwing demo
A HX8357 display controler, and so I think you want to try the Adafruit_HX8357_Library/[…]/graphicstest_featherwing.ino demo as src\main.cpp
.
Indeed, when I try this code with the platformio.ini
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_ignore = SD
lib_deps =
https://github.com/adafruit/Adafruit-GFX-Library.git
https://github.com/adafruit/SdFat.git
https://github.com/adafruit/Adafruit_SPIFlash.git
https://github.com/adafruit/Adafruit_ImageReader.git
https://github.com/adafruit/Adafruit_HX8357_Library.git
adafruit/Adafruit EPD @ ^4.4.2
adafruit/Adafruit BusIO @ 1.9.3
Wire
I receive the same compilation error.
.pio\libdeps\esp32dev\Adafruit SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp: In member function 'SPIFlash_Device_t* Adafruit_FlashTransport_ESP32::getFlashDevice()':
.pio\libdeps\esp32dev\Adafruit SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp:54:3: error: 'esp_flash_t' was not declared in this scope
esp_flash_t const *flash = _partition->flash_chip;
^
.pio\libdeps\esp32dev\Adafruit SPIFlash\src\esp32\Adafruit_FlashTransport_ESP32.cpp:55:36: error: 'flash' was not declared in this scope
_flash_device.manufacturer_id = (flash->chip_id >> 16);
^
*** [.pio\build\esp32dev\lib898\Adafruit SPIFlash\esp32\Adafruit_FlashTransport_ESP32.cpp.o] Error 1
This is because the library is using the esp_flash_t
type which is not contained in the Arduino-ESP32 core 1.0.6 that platformio.ini
is using.
C:\Users\Max\.platformio\packages\framework-arduinoespressif32>grep -r "esp_flash_t" .
C:\Users\Max\.platformio\packages\framework-arduinoespressif32>
On the other hand, the latest Arduino-ESP32 v2.x core does have this definition. Supporting the 2.0 core is an open issue in PlatformIO.
As seen in e.g. this comment, one can still point PlatformIO to use the 2.0.0 core manually in a non-official way. When I use the platformio.ini
[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.0
board = esp32dev
framework = arduino
lib_ignore = SD
lib_deps =
https://github.com/adafruit/Adafruit-GFX-Library.git
https://github.com/adafruit/SdFat.git
https://github.com/adafruit/Adafruit_SPIFlash.git
https://github.com/adafruit/Adafruit_ImageReader.git
https://github.com/adafruit/Adafruit_HX8357_Library.git
adafruit/Adafruit EPD @ ^4.4.2
adafruit/Adafruit BusIO @ 1.9.3
Wire
(notice the changed platform
and addition of platform_packages
), the compilation goes through.
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.0% (used 13032 bytes from 327680 bytes)
Flash: [== ] 20.4% (used 267441 bytes from 1310720 bytes)
Building .pio\build\esp32dev\firmware.bin
esptool.py v3.1
Merged 2 ELF sections
============== [SUCCESS] Took 22.45 seconds ==============