Bodmer / TFT_eSPI

Arduino and PlatformIO IDE compatible TFT library optimised for the Raspberry Pi Pico (RP2040), STM32, ESP8266 and ESP32 that supports different driver chips
Other
3.81k stars 1.1k forks source link

only half of my ILI9341 are used 240x240 #3540

Open ats3788 opened 2 weeks ago

ats3788 commented 2 weeks ago

Hello I work with PlatformIO and the ESP-Wover-Kit 4.1 My PlatformIO.ini is like this ` ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html

[platformio] src_dir = . default_envs = cyd

[env] platform = espressif32 board = esp32dev framework = arduino lib_ldf_mode = deep lib_deps = bodmer/TFT_eSPI@ https://github.com/PaulStoffregen/XPT2046_Touchscreen.git ;#v1.4 lvgl/lvgl@^8.3.6 ; align this rev with the rev used by Squareline Studio bitbank2/PNGdec@^1.0.2 bblanchon/ArduinoJson

monitor_speed = 115200 monitor_filters = esp32_exception_decoder upload_speed = 921600 board_build.partitions = min_spiffs.csv build_flags = -I./src/ -I./src/ui/ -D USER_SETUP_LOADED -D ILI9341_DRIVER -D USE_HSPI_PORT -D TFT_WIDTH=320 -D TFT_HEIGHT=240 -D TFT_MISO=25 -D TFT_MOSI=23 -D TFT_SCLK=19 -D TFT_CS=22 -D TFT_DC=21 -D TFT_RST=18 -D TFT_BL=5 -D TFT_BACKLIGHT_ON=HIGH -D TFT_BACKLIGHT_OFF=LOW -D LOAD_GLCD -D SPI_FREQUENCY=55000000 -D SPI_READ_FREQUENCY=20000000 -D SPI_TOUCH_FREQUENCY=2500000 -D LOAD_FONT2 -D LOAD_FONT4 -D LOAD_FONT6 -D LOAD_FONT7 -D LOAD_FONT8 -D LOAD_GFXFF

[env:cyd] build_flags = ${env.build_flags} -DTFT_INVERSION_OFF ` So far this woks well until yesterday I have a Sketch and the display only uses 240x240 dots with the same PplatformIO.ini it works well, what could this be.

JimDrewGH commented 2 weeks ago

Rotation() wrong or the width/height are backwards? I ran into this a few days ago when using a ILI9341 display for the first time.