Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only half of my ILI9341 are used 240x240 #3540

Open
ats3788 opened this issue Nov 7, 2024 · 1 comment
Open

only half of my ILI9341 are used 240x240 #3540

ats3788 opened this issue Nov 7, 2024 · 1 comment

Comments

@ats3788
Copy link

ats3788 commented Nov 7, 2024

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
Copy link

JimDrewGH commented Nov 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants