mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Rename STMPE_CS to TOUCH_CS
This commit is contained in:
parent
d0a78299a3
commit
0350f86c35
@ -14,7 +14,7 @@
|
||||
#define TS_MINY 100
|
||||
#define TS_MAXY 3750
|
||||
|
||||
static Adafruit_STMPE610 touch = Adafruit_STMPE610(STMPE_CS);
|
||||
static Adafruit_STMPE610 touch = Adafruit_STMPE610(TOUCH_CS);
|
||||
|
||||
// Read touch points from global variable
|
||||
HASP_ATTRIBUTE_FAST_MEM bool STMPE610_getXY(int16_t* touchX, int16_t* touchY, uint8_t touchRotation, bool debug)
|
||||
|
@ -23,7 +23,7 @@ build_flags =
|
||||
-D TFT_CS=15
|
||||
-D TFT_RST=-1 ; RST
|
||||
-D TFT_BCKL=-1 ; Solder the LITE pad to a PWM enabled pin of the ESP.
|
||||
-D STMPE_CS=32
|
||||
-D TOUCH_CS=32
|
||||
;endregion
|
||||
|
||||
lib_deps =
|
||||
|
@ -12,8 +12,9 @@ board = featheresp32
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
${esp32.build_flags}
|
||||
-D HASP_MODEL="Adafruit Featherwing 3.2"
|
||||
-D HASP_MODEL="Adafruit Featherwing 3.5"
|
||||
|
||||
-D LV_INDEV_DEF_READ_PERIOD=30
|
||||
;region -- TFT_eSPI build options ------------------------
|
||||
${lcd.featherwing-35}
|
||||
-D TFT_MISO=19
|
||||
@ -23,7 +24,7 @@ build_flags =
|
||||
-D TFT_CS=15
|
||||
-D TFT_RST=-1 ; RST
|
||||
-D TFT_BCKL=21 ; Solder the LITE pad to a PWM enabled pin of the ESP, like GPIO 21
|
||||
-D STMPE_CS=32
|
||||
-D TOUCH_CS=32
|
||||
;endregion
|
||||
|
||||
lib_deps =
|
||||
|
Loading…
x
Reference in New Issue
Block a user