Open Bazmundi opened 1 month ago
Poking around in the touchscreen code, I don’t see anything that should affect screen colors or ANYTHING about the LCD display.
I’m suspicious of the SPI stuff, as that is used by both touchscreen and the display, and the touchscreen code had some special code dealing with a different SPI interface, that I changed a bit.
But here’s my biggest suspicion. I seem to remember that I discovered that I had to initialize the LCD display BEFORE initializing the touchscreen hardware. Yours is after. Maybe try reversing those? Perhaps something to do with the use of SPI by both of them makes one sensitive to what the other did with SPI during setup.
As for the difference between those two displays, I’m afraid I’m of no help.
ted
On Oct 22, 2024, at 2:02 PM, Asterion Daedalus @.***> wrote:
Starting with the example code at: https://randomnerdtutorials.com/lvgl-cheap-yellow-display-esp32-2432s028r/
Using platormIO, I find if you add an include to wire.h and XPT2046_Touchscreen_TT for XPT2046_Touchscreen_TT the example code runs fine, with platform.ini of:
[env:esp32dev] platform = espressif32 board = esp32dev // that is Espressif ESP32 Dev Module framework = arduino lib_deps = bodmer/TFT_eSPI@^2.5.43 tedtoal/XPT2046_Touchscreen_TT@^1.7.1 lvgl/lvgl@^9.2.0 adafruit/Adafruit GFX Library@^1.11.11 adafruit/Adafruit BusIO@^1.16.1
However, there appears a difference in colour palette and (probably) backlighting, again with only the addition of wire.h and swapping in XPT2046_Touchscreen_TT.
Example from RN running XPT2046_Touchscreen: ESP32-Cheap-Yellow-Display-Board-CYD-TFT-Display-Touchscreen-LVGL-Library-Example.jpg (view on web)https://github.com/user-attachments/assets/749c0c40-ab6c-4db0-883d-4ffdd7df9fbd
Code running XPT2046_Touchscreen_TT: 20241022_2131433679937053916941501-569179309-e1729596533182.jpg (view on web)https://github.com/user-attachments/assets/f2c82646-6101-473d-8f03-3e7cfa4d0e56
Is that likely to be a difference between XPT2046_Touchscreen_TT and XPT2046_Touchscreen?
Outside of that, I am trying to track down the difference between the CYD and mine which has a C-Type USB on top of the micro-USB.
20241022_2132186078532545955996460.jpg (view on web)https://github.com/user-attachments/assets/f87f0f5a-96fc-4116-bb5e-c2b366356507
ESP32-Cheap-Yellow-Display-CYD-Board-ESP32-2432S028R-back-labeled.jpg (view on web)https://github.com/user-attachments/assets/b67cdcc0-766f-4942-abdd-91685d8219ca
Any suggestions would be appreciated. Is this as simple as the difference between the ESP32-2432S028R-back-labeled and the ESP32-2432S028-back-labeled?
— Reply to this email directly, view it on GitHubhttps://github.com/tedtoal/XPT2046_Touchscreen_TT/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAK4TT236VSS5P62X2ZXS7LZ424O3AVCNFSM6AAAAABQNLZVI2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDMNJQGE2TQMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Poking around in the touchscreen code, I don’t see anything that should affect screen colors or ANYTHING about the LCD display. I’m suspicious of the SPI stuff, as that is used by both touchscreen and the display, and the touchscreen code had some special code dealing with a different SPI interface, that I changed a bit. But here’s my biggest suspicion. I seem to remember that I discovered that I had to initialize the LCD display BEFORE initializing the touchscreen hardware. Yours is after. Maybe try reversing those? Perhaps something to do with the use of SPI by both of them makes one sensitive to what the other did with SPI during setup. As for the difference between those two displays, I’m afraid I’m of no help. ted On Oct 22, 2024, at 2:02 PM, >
Cheers, I'll play with those ideas. Great help!
Starting with the example code at: https://randomnerdtutorials.com/lvgl-cheap-yellow-display-esp32-2432s028r/
Using platormIO, I find if you add an include to wire.h and XPT2046_Touchscreen_TT for XPT2046_Touchscreen_TT the example code runs fine, with platform.ini of:
However, there appears a difference in colour palette and (probably) backlighting, again with only the addition of wire.h and swapping in XPT2046_Touchscreen_TT.
Example from RN running XPT2046_Touchscreen:
Code running XPT2046_Touchscreen_TT:
Is that likely to be a difference between XPT2046_Touchscreen_TT and XPT2046_Touchscreen?
Outside of that, I am trying to track down the difference between the CYD and mine which has a C-Type USB on top of the micro-USB.
Any suggestions would be appreciated. Is this as simple as the difference between the ESP32-2432S028R-back-labeled and the ESP32-2432S028-back-labeled?