-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interrupt aware XPT2046_Touchscreen(uint8_t cs, uint8_t tirq)
On initializing with interrupt pin Poll calls for touch are ignored unless preceded by falling edge on touch interrupt pin. User calls are honored until touch detection records a failed pressure test reading. This allows the user code to call at a faster rate with no SPI impact so that the start of a touch is not missed like when polled at a conservative 100ms. Included TouchTest sample modified for continuous loop() read to demonstrate responsiveness and no SPI chatter, versus bright LED when int pin is not used.
- Loading branch information
Defragster
committed
Nov 25, 2015
1 parent
6a8be9f
commit 3392b12
Showing
4 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters