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;
|
uint8_t state = 0;
|
||||||
|
|
||||||
if (!touchEventOccured)
|
// if (!touchEventOccured)
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
touchEventOccured = false;
|
// touchEventOccured = false;
|
||||||
|
|
||||||
uint32_t startReadStatus = RTOS_GET_MS();
|
uint32_t startReadStatus = RTOS_GET_MS();
|
||||||
do {
|
do {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ extern bool touchPanelInit();
|
|||||||
void touchPanelRead();
|
void touchPanelRead();
|
||||||
bool touchPanelEventOccured();
|
bool touchPanelEventOccured();
|
||||||
|
|
||||||
#define GT911_TIMEOUT 20 // 20ms
|
#define GT911_TIMEOUT 3 // 3ms
|
||||||
|
|
||||||
#define GT911_MAX_TP 5
|
#define GT911_MAX_TP 5
|
||||||
#define GT911_CFG_NUMER 0x6C
|
#define GT911_CFG_NUMER 0x6C
|
||||||
|
|||||||
Reference in New Issue
Block a user