This was brought up on the Reddit post but for users who own a "ESP32-2432S028R" but you get a display like this:
This is due to the somewhat different ILI9341 driver (ILI9341_2_DRIVER in TFT_eSPI) this CYD comes with. I got the project working by adding this as platformio.ini in the project root directory:
[platformio]
src_dir = ASCII_Aquarium_CYD
[env:esp32]
framework = arduino
platform = https://github.com/platformio/platform-espressif32#v6.4.0
board = esp32dev
monitor_speed = 115200
upload_speed = 2000000
lib_deps =
SPI
https://github.com/Bodmer/TFT_eSPI.git
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
build_flags =
-DUSER_SETUP_LOADED=1
-DILI9341_2_DRIVER=1
-DTFT_INVERSION_ON=1
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=4
-DTOUCH_CS=33
-DTFT_BL=21
-DTFT_BACKLIGHT_ON=HIGH
-DLOAD_GCLD=1
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
- Needed to rename the *.ino source file to *.cpp
- Finally, move the
drawButton above drawActionRow so that no function prototype is needed.
User_Setup.h isn't needed if you build in platformio because the settings are included in the build_flags.
The espressif32 v6.4.0 version isn't important, I just wanted to use one I already had installed.
This was brought up on the Reddit post but for users who own a "ESP32-2432S028R" but you get a display like this:
This is due to the somewhat different ILI9341 driver (
ILI9341_2_DRIVERin TFT_eSPI) this CYD comes with. I got the project working by adding this as platformio.ini in the project root directory:drawButtonabovedrawActionRowso that no function prototype is needed.User_Setup.hisn't needed if you build in platformio because the settings are included in the build_flags.The espressif32 v6.4.0 version isn't important, I just wanted to use one I already had installed.