-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ESP32-2432S022 2.2" tft with ST7789 parallel driver not working with TFT_eSPI library #3281
Comments
pretty sure the issue is GPIO over 31 for data.. |
Hi Isdlsd88,
Is it possible that this over 31 issue is not the cause of the TFT_eSPI library not working with this configuration? I do not have access to changing the pin designations as the display and uP are soldered on a pcb from the shop. True, they do 'push' the LGFX library in their manual supplied with the display but I think the TFT_eSPI library is nicer..... If It Works! Anyhow... thanks. |
yeah im afraid is due to how this library manages writes on data pins. it says right in the user setup that you cant use them over 31. // Must use pins in the range 0-31 for the data bus it would be nice if a patch can be added optionally for supporting these boards! EDIT: its a hack but it works.. ran a couple of jumper wires between GPIOs 5-33 and 26-32. these were used for SD_CS and Audio. depending on your application this may or may not be acceptable :) `Jul 29 2019 12:21:46 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) TFT_eSPI library test! |
yeah sorry for the confusion the red wire on gpio4 was just to take advantage of that touch pin to wake up from deep sleep. yeah you can steal pins from the tft touch too. swapping them instead of bridging would involve cutting the small track that originally goes to the tft. doable but tricky |
I tried everything but unfortunately it doesn't work. Due to the port settings of the TFT_eSPI library, it is impossible to work on pins above 31. Changing the pins to 33-26, 32-5 worked but we lost the SD card. It can be used for simple testing purposes and is useless in projects. |
Have you got any further with a parallel interface TFT? https://www.aliexpress.com/item/1005006284154750.html and https://www.aliexpress.com/item/1005006622769773.html
1/ display just displays the backlight - no other activity from any sketch
2/Arduino IDE
3/ TFT_eSPI library version 2.5.43
4/ ESP32 by Espressif version 2.0.15
5/ ESP32 dev
6/ TFT Driver tried both ST7789 and ST7789_2
7/ Parallel interface
8/ Read_User_Setup result
19:19:55.307 -> TFT_eSPI ver = 2.5.43
19:19:55.307 -> Processor = ESP32
19:19:55.307 -> Frequency = 240MHz
19:19:55.307 -> Transactions = Yes
19:19:55.307 -> Interface = Parallel
19:19:55.307 -> Display driver = 778B
19:19:55.307 -> Display width = 240
19:19:55.341 -> Display height = 320
19:19:55.341 ->
19:19:55.341 -> TFT_CS = GPIO 17
19:19:55.341 -> TFT_DC = GPIO 16
19:19:55.341 -> TFT_WR = GPIO 4
19:19:55.341 -> TFT_RD = GPIO 2
19:19:55.341 ->
19:19:55.341 -> TFT_D0 = GPIO 15
19:19:55.341 -> TFT_D1 = GPIO 13
19:19:55.341 -> TFT_D2 = GPIO 12
19:19:55.341 -> TFT_D3 = GPIO 14
19:19:55.341 -> TFT_D4 = GPIO 27
19:19:55.341 -> TFT_D5 = GPIO 25
19:19:55.341 -> TFT_D6 = GPIO 33
19:19:55.341 -> TFT_D7 = GPIO 32
19:19:55.341 ->
19:19:55.341 -> TFT_BL = GPIO 0
19:19:55.341 -> TFT_BACKLIGHT_ON = HIGH
19:19:55.341 ->
19:19:55.341 -> Font GLCD loaded
19:19:55.341 -> Font 2 loaded
19:19:55.341 -> Font 4 loaded
19:19:55.341 -> Font 6 loaded
19:19:55.381 -> Font 7 loaded
19:19:55.381 -> Font 8 loaded
19:19:55.381 -> Smooth font enabled
Setup4_ESP322432S022.zip
TFT_Meters.zip
Specifications from supplier -
ESP32-2432S022 Specifications-EN.zip
Display works fine using the supplied parameters with LVGL Library.
The text was updated successfully, but these errors were encountered: