working code for GC9A01 Touch LCD module waveshare model. #419
Replies: 1 comment
-
Hey, not sure if you already made a purchase but I have a similar setup and got the 1.28 inch display w/ touch to work. I have a slightly different model but the pins are the same (although named differently) and the boards are the same "GC9A01 driver and CST816S capacitive touch control chip Using SPI and I2C Communication respectively" and this line of wording is where I focused. In Adruino IDE, I used the TFT_eSPI library by 'Bodmer' for the display portion (note this does not support multiple displays natively), tested it, and then used the CST816S library by 'fbiego' for the touch. I'm using custom pin arrangements with the ESP32 but everything works. Hope this helps! User_Setup.h for the TFT_eSPI Library: // For ST7789, ST7735, ILI9163 and GC9A01 ONLY, define the pixel width and height in portrait orientation // Pin definitions for TFT display (Change to your desired pin setup - My 1.28 display: MOSI = SDA, SCLK = SCL, BL = BLK, RST = RES, otherwise the same) #define LOAD_GLCD // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH #define SPI_FREQUENCY 27000000 In my sketch I define the pins for the touch panel separately. Header of Sketch: TFT_eSPI tft = TFT_eSPI(); // Create an instance of the display |
Beta Was this translation helpful? Give feedback.
-
Does anyone have working code for the display mentioned https://www.waveshare.com/1.28inch-touch-lcd.htm or the ESP32-S3 board of the same display https://www.waveshare.com/esp32-s3-touch-lcd-1.28.htm. I'm planning to buy it but due to some issues in past with working of the same non-touch version hesitant to do so. If any of you have code or working video with any libraries, please share. @moononournation please help
Beta Was this translation helpful? Give feedback.
All reactions