Add capacitive touch LCD driver

This commit is contained in:
2026-07-03 18:55:30 +08:00
parent 23bef680ed
commit 7961bcc920
20 changed files with 529 additions and 68 deletions

18
main/board_config.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H
// LCD SPI pins
#define LCD_PIN_CLK 12
#define LCD_PIN_MOSI 11
#define LCD_PIN_RES 10
#define LCD_PIN_DC 9
#define LCD_PIN_CS 8
#define LCD_PIN_BLK 1
// GT911 capacitive touch pins
#define TOUCH_PIN_RES LCD_PIN_RES
#define TOUCH_PIN_SCL 14
#define TOUCH_PIN_SDA 13
#define TOUCH_PIN_INT 2
#endif