mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Add gs-t3e
This commit is contained in:
parent
988514970c
commit
9e1742cb1a
34
.github/workflows/build.yaml
vendored
34
.github/workflows/build.yaml
vendored
@ -20,6 +20,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
environment:
|
environment:
|
||||||
|
- out: adafruit
|
||||||
|
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35"
|
||||||
- out: az-touch
|
- out: az-touch
|
||||||
env: "az-touch-mod-esp32_ili9341_4MB -e az-touch-mod-esp32_ili9341_8MB"
|
env: "az-touch-mod-esp32_ili9341_4MB -e az-touch-mod-esp32_ili9341_8MB"
|
||||||
- env: d1-mini-esp32_ili9341
|
- env: d1-mini-esp32_ili9341
|
||||||
@ -30,22 +32,18 @@ jobs:
|
|||||||
out: d1-r32-espduino32
|
out: d1-r32-espduino32
|
||||||
- env: d1-r32-unoshield_ili9486_adc
|
- env: d1-r32-unoshield_ili9486_adc
|
||||||
out: d1-r32-espduino32
|
out: d1-r32-espduino32
|
||||||
- env: esp32-one_st7796
|
- out: waveshare
|
||||||
out: waveshare
|
env: "esp32-one_ili9486 -e esp32-one_st7796"
|
||||||
- env: esp32-one_ili9486
|
- out: dustinwatts
|
||||||
out: waveshare
|
env: "freetouchdeck_4MB -e freetouchdeck_8MB -e esp32-touchdown"
|
||||||
- env: esp32-touchdown
|
- out: globalsecurity
|
||||||
out: esp32-touchdown
|
env: gs-t3e_16MB
|
||||||
- out: freetouchdeck
|
- out: lanbon
|
||||||
env: "freetouchdeck_4MB -e freetouchdeck_8MB"
|
env: lanbon_l8
|
||||||
- out: featherwing
|
- out: lolin
|
||||||
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35"
|
env: lolin-d32-pro_ili9341
|
||||||
- env: lanbon_l8
|
- out: m5stack
|
||||||
out: lanbon_l8
|
env: m5stack-core2
|
||||||
- env: lolin-d32-pro_ili9341
|
|
||||||
out: lolin-d32-pro
|
|
||||||
- env: m5stack-core2
|
|
||||||
out: m5stack
|
|
||||||
- out: makerfabs
|
- out: makerfabs
|
||||||
env: "makerfabs-tft35-cap -e makerfabs-s3-tft35-spi"
|
env: "makerfabs-tft35-cap -e makerfabs-s3-tft35-spi"
|
||||||
- out: sunton
|
- out: sunton
|
||||||
@ -54,8 +52,8 @@ jobs:
|
|||||||
env: "ttgo-t7-v1.5_ili9341_4MB -e ttgo-t7-v1.5_ili9341_16MB -e ttgo-lilygo-pi_ili9481 -e ttgo-lilygo-pi_st7796"
|
env: "ttgo-t7-v1.5_ili9341_4MB -e ttgo-t7-v1.5_ili9341_16MB -e ttgo-lilygo-pi_ili9481 -e ttgo-lilygo-pi_st7796"
|
||||||
- out: wireless-tag
|
- out: wireless-tag
|
||||||
env: "wt32-sc01_4MB -e wt32-sc01_16MB -e wt-86-32-3zw1 -e wt32-sc01-plus_8MB"
|
env: "wt32-sc01_4MB -e wt32-sc01_16MB -e wt-86-32-3zw1 -e wt32-sc01-plus_8MB"
|
||||||
- env: yeacreate-nscreen32
|
- out: yeacreate
|
||||||
out: yeacreate
|
env: yeacreate-nscreen32
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "../../hasp/hasp.h" // for hasp_sleep_state
|
#include "../../hasp/hasp.h" // for hasp_sleep_state
|
||||||
extern uint8_t hasp_sleep_state;
|
extern uint8_t hasp_sleep_state;
|
||||||
|
|
||||||
#define RST_PIN (TOUCH_RST) // -1 if pin is connected to VCC else set pin number
|
// #define RST_PIN (TOUCH_RST) // -1 if pin is connected to VCC else set pin number
|
||||||
|
|
||||||
// Read touch points
|
// Read touch points
|
||||||
// HASP_ATTRIBUTE_FAST_MEM bool FT6336U_getXY(int16_t* touchX, int16_t* touchY)
|
// HASP_ATTRIBUTE_FAST_MEM bool FT6336U_getXY(int16_t* touchX, int16_t* touchY)
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
#include "../../hasp/hasp.h" // for hasp_sleep_state
|
#include "../../hasp/hasp.h" // for hasp_sleep_state
|
||||||
extern uint8_t hasp_sleep_state;
|
extern uint8_t hasp_sleep_state;
|
||||||
|
|
||||||
#define INT_PIN (TOUCH_IRQ)
|
|
||||||
#define RST_PIN (TOUCH_RST) // -1 if pin is connected to VCC else set pin number
|
|
||||||
|
|
||||||
static Goodix touch = Goodix();
|
static Goodix touch = Goodix();
|
||||||
// static int8_t GT911_num_touches;
|
// static int8_t GT911_num_touches;
|
||||||
// static GTPoint* GT911_points;
|
// static GTPoint* GT911_points;
|
||||||
@ -84,7 +81,7 @@ class TouchGt911 : public BaseTouch {
|
|||||||
data->state = LV_INDEV_STATE_REL;
|
data->state = LV_INDEV_STATE_REL;
|
||||||
}
|
}
|
||||||
|
|
||||||
touch.loop(); // reset IRQ
|
// touch.loop(); // reset IRQ (now in readInput)
|
||||||
|
|
||||||
/*Return `false` because we are not buffering and no more data to read*/
|
/*Return `false` because we are not buffering and no more data to read*/
|
||||||
return false;
|
return false;
|
||||||
@ -98,7 +95,7 @@ class TouchGt911 : public BaseTouch {
|
|||||||
|
|
||||||
touch.setHandler(GT911_setXY);
|
touch.setHandler(GT911_setXY);
|
||||||
|
|
||||||
if(touch.begin(INT_PIN, RST_PIN)) {
|
if(touch.begin(TOUCH_IRQ, TOUCH_RST)) {
|
||||||
LOG_INFO(TAG_DRVR, F("GT911 " D_SERVICE_STARTED));
|
LOG_INFO(TAG_DRVR, F("GT911 " D_SERVICE_STARTED));
|
||||||
} else {
|
} else {
|
||||||
LOG_WARNING(TAG_DRVR, F("GT911 " D_SERVICE_START_FAILED));
|
LOG_WARNING(TAG_DRVR, F("GT911 " D_SERVICE_START_FAILED));
|
||||||
|
@ -20,7 +20,7 @@ build_flags =
|
|||||||
;region -- LovyanGFX build options ------------------------
|
;region -- LovyanGFX build options ------------------------
|
||||||
-D HASP_USE_ARDUINOGFX=1
|
-D HASP_USE_ARDUINOGFX=1
|
||||||
-D ST7701_DRIVER=1
|
-D ST7701_DRIVER=1
|
||||||
;-D TOUCH_DRIVER=0x911
|
-D TOUCH_DRIVER=0x911
|
||||||
-D TFT_WIDTH=480
|
-D TFT_WIDTH=480
|
||||||
-D TFT_HEIGHT=480
|
-D TFT_HEIGHT=480
|
||||||
-D SPI_FREQUENCY=20000000
|
-D SPI_FREQUENCY=20000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user