Add gs-t3e

This commit is contained in:
fvanroie 2022-11-12 14:25:45 +01:00
parent 988514970c
commit 9e1742cb1a
4 changed files with 20 additions and 25 deletions

View File

@ -20,6 +20,8 @@ jobs:
fail-fast: false
matrix:
environment:
- out: adafruit
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35"
- out: az-touch
env: "az-touch-mod-esp32_ili9341_4MB -e az-touch-mod-esp32_ili9341_8MB"
- env: d1-mini-esp32_ili9341
@ -30,22 +32,18 @@ jobs:
out: d1-r32-espduino32
- env: d1-r32-unoshield_ili9486_adc
out: d1-r32-espduino32
- env: esp32-one_st7796
out: waveshare
- env: esp32-one_ili9486
out: waveshare
- env: esp32-touchdown
out: esp32-touchdown
- out: freetouchdeck
env: "freetouchdeck_4MB -e freetouchdeck_8MB"
- out: featherwing
env: "huzzah32-featherwing-24 -e huzzah32-featherwing-35"
- env: lanbon_l8
out: lanbon_l8
- env: lolin-d32-pro_ili9341
out: lolin-d32-pro
- env: m5stack-core2
out: m5stack
- out: waveshare
env: "esp32-one_ili9486 -e esp32-one_st7796"
- out: dustinwatts
env: "freetouchdeck_4MB -e freetouchdeck_8MB -e esp32-touchdown"
- out: globalsecurity
env: gs-t3e_16MB
- out: lanbon
env: lanbon_l8
- out: lolin
env: lolin-d32-pro_ili9341
- out: m5stack
env: m5stack-core2
- out: makerfabs
env: "makerfabs-tft35-cap -e makerfabs-s3-tft35-spi"
- 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"
- out: wireless-tag
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:
- uses: actions/checkout@v3

View File

@ -18,7 +18,7 @@
#include "../../hasp/hasp.h" // for 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
// HASP_ATTRIBUTE_FAST_MEM bool FT6336U_getXY(int16_t* touchX, int16_t* touchY)

View File

@ -18,9 +18,6 @@
#include "../../hasp/hasp.h" // for 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 int8_t GT911_num_touches;
// static GTPoint* GT911_points;
@ -84,7 +81,7 @@ class TouchGt911 : public BaseTouch {
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;
@ -98,7 +95,7 @@ class TouchGt911 : public BaseTouch {
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));
} else {
LOG_WARNING(TAG_DRVR, F("GT911 " D_SERVICE_START_FAILED));

View File

@ -20,7 +20,7 @@ build_flags =
;region -- LovyanGFX build options ------------------------
-D HASP_USE_ARDUINOGFX=1
-D ST7701_DRIVER=1
;-D TOUCH_DRIVER=0x911
-D TOUCH_DRIVER=0x911
-D TFT_WIDTH=480
-D TFT_HEIGHT=480
-D SPI_FREQUENCY=20000000