I have been following the course on the CYD board ESP32 2432S028 (resistive board), this has worked really fine and I have made a nice UI. Since the board was a bit small for my purpose, I recently bought a larger CYD board, ESP32S3 4827S043 (resistive board), but I have not been able to make this board work. I have tried to adapt the code for the 2.8 board, but it shows only white screen and the touch is not working. Any suggestions on what I need to change?
The only modifications I have made are changing the dimensions of the board in the code to match my 4.3-inch board. I have tested both the calibration sketch and the “hello world” sketch; neither was able to print on the screen and get input from the touch screen.
I have been able to make the board work with a code based on the “XPT2046_Touchscreen” and “SPI”
like this:
#include <XPT2046_Touchscreen.h>
#include <SPI.h>
// Define pin connections
#define T_CS 10 // Chip Select for touch screen
#define T_IRQ -1 // Optional, can be set to a GPIO if using an interrupt for touch detection
// Set up the XPT2046 touch screen with CS pin
XPT2046_Touchscreen ts(T_CS, T_IRQ);