Closed iconnor closed 1 year ago
Once I changed the platformio.ini to this it started to work:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
lib_deps = bodmer/TFT_eSPI
build_flags =
-Os
-DCORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-DUSER_SETUP_LOADED=1
; Define the TFT driver, pins etc here:
-DST7789_DRIVER=1
-DTFT_WIDTH=135
-DTFT_HEIGHT=240
-DTFT_MOSI=19
-DTFT_SCLK=18
-DTFT_SDA=21
-DTFT_SCL=22
-DTFT_CS=5
-DTFT_BL=4
-DTFT_DC=16
-DLOAD_FONT2=1
-DLOAD_FONT4=1
-DLOAD_FONT6=1
-DLOAD_FONT7=1
-DLOAD_FONT8=1
-DLOAD_GFXFF=1
-DSMOOTH_FONT=1
-DSPI_FREQUENCY=27000000
I have a T-Display-S3 that works well but the T-Display ESP32/RP2040 that arrived recently will only show a black screen and failed to print text to it.
My platformoi.ini file:
main.cpp
I can see the Serial.println but the screen remains black. Thanks.