Add capacitive touch LCD driver
This commit is contained in:
18
main/board_config.h
Normal file
18
main/board_config.h
Normal 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
|
||||
Reference in New Issue
Block a user