Quick & dirty polling mode (don't care about INT line)

This commit is contained in:
Raphael Coeffic
2021-07-11 17:43:31 +02:00
parent 49ae57d370
commit 52acfcd20d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -888,10 +888,10 @@ void touchPanelRead()
{
uint8_t state = 0;
if (!touchEventOccured)
return;
// if (!touchEventOccured)
// return;
touchEventOccured = false;
// touchEventOccured = false;
uint32_t startReadStatus = RTOS_GET_MS();
do {
+1 -1
View File
@@ -30,7 +30,7 @@ extern bool touchPanelInit();
void touchPanelRead();
bool touchPanelEventOccured();
#define GT911_TIMEOUT 20 // 20ms
#define GT911_TIMEOUT 3 // 3ms
#define GT911_MAX_TP 5
#define GT911_CFG_NUMER 0x6C