Quick & dirty polling mode (don't care about INT line)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user