Within a program loop, I periodically do a touch check: (hex command 0x6F 0x04, check for anything but 0 as a reply.)
Then I check the last touch location, to see if a button is currently pressed.
Here's the problem: I'm detecting touch activity and location (maybe release) almost a second after an actual touch event. I've been running gratuitous touch-checks before and after my actual checks in hope that that would clear past touch events from the LCD; but this hasn't been entirely successful.
Is there a command that clears the touch state on the LCD?
I'd like to do guarantee that I will only detect touch events which occurred after a specific time.
Best,
Nathan
Then I check the last touch location, to see if a button is currently pressed.
Here's the problem: I'm detecting touch activity and location (maybe release) almost a second after an actual touch event. I've been running gratuitous touch-checks before and after my actual checks in hope that that would clear past touch events from the LCD; but this hasn't been entirely successful.
Is there a command that clears the touch state on the LCD?
I'd like to do guarantee that I will only detect touch events which occurred after a specific time.
Best,
Nathan
Comment