mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Fix gt911 driver
This commit is contained in:
parent
e50cc711cb
commit
dbfa7e34b7
@ -27,7 +27,7 @@ void IRAM_ATTR GT911_setXY(int8_t contacts, GTPoint * points)
|
||||
}
|
||||
|
||||
// Read touch points from global variable
|
||||
bool IRAM_ATTR GT911_getXY(uint16_t * touchX, uint16_t * touchY, bool debug)
|
||||
bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug)
|
||||
{
|
||||
static GTPoint points[5];
|
||||
int16_t contacts = touch.readInput((uint8_t *)&points);
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
#include "hasp_debug.h" // for TAG_DRVR
|
||||
|
||||
bool IRAM_ATTR GT911_getXY(uint16_t * touchX, uint16_t * touchY, bool debug);
|
||||
bool IRAM_ATTR GT911_getXY(int16_t * touchX, int16_t * touchY, bool debug);
|
||||
void GT911_init();
|
||||
void IRAM_ATTR GT911_loop();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user