started implementing backlight tracking (unfinished)

horus touch driver internally tracks touch state and returns the state on read to make in independed of the mainwindow touchState
This commit is contained in:
gagarinlg
2021-11-16 11:21:04 +10:00
committed by Peter Feerick
parent 52013da098
commit ced9df9510
6 changed files with 50 additions and 35 deletions
+3 -1
View File
@@ -21,6 +21,8 @@
#pragma once
#include "touch.h"
#define HAS_TOUCH_PANEL() touchGT911Flag == true
extern bool touchGT911Flag;
@@ -28,7 +30,7 @@ extern uint16_t touchGT911fwver;
extern uint32_t touchGT911hiccups;
extern bool touchPanelInit();
void touchPanelRead();
struct TouchState touchPanelRead();
bool touchPanelEventOccured();
#define GT911_TIMEOUT 3 // 3ms