Rename STMPE_CS to TOUCH_CS

This commit is contained in:
fvanroie 2021-05-29 15:15:10 +02:00
parent d0a78299a3
commit 0350f86c35
3 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@
#define TS_MINY 100 #define TS_MINY 100
#define TS_MAXY 3750 #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 // Read touch points from global variable
HASP_ATTRIBUTE_FAST_MEM bool STMPE610_getXY(int16_t* touchX, int16_t* touchY, uint8_t touchRotation, bool debug) HASP_ATTRIBUTE_FAST_MEM bool STMPE610_getXY(int16_t* touchX, int16_t* touchY, uint8_t touchRotation, bool debug)

View File

@ -23,7 +23,7 @@ build_flags =
-D TFT_CS=15 -D TFT_CS=15
-D TFT_RST=-1 ; RST -D TFT_RST=-1 ; RST
-D TFT_BCKL=-1 ; Solder the LITE pad to a PWM enabled pin of the ESP. -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 ;endregion
lib_deps = lib_deps =

View File

@ -12,8 +12,9 @@ board = featheresp32
build_flags = build_flags =
${env.build_flags} ${env.build_flags}
${esp32.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 ------------------------ ;region -- TFT_eSPI build options ------------------------
${lcd.featherwing-35} ${lcd.featherwing-35}
-D TFT_MISO=19 -D TFT_MISO=19
@ -23,7 +24,7 @@ build_flags =
-D TFT_CS=15 -D TFT_CS=15
-D TFT_RST=-1 ; RST -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 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 ;endregion
lib_deps = lib_deps =