Touch7834 driver for resistive touchscreen

Status
Not open for further replies.

jwatte

Well-known member
I recently happened upon a couple of cheap TFT screens with resistive touch screens.
The screens use ILI9841, which works great with the AdaFruit library and ILI9841_t3 library if using the hardware chip select pins.
The touch input, however, uses the ADS7834, which I couldn't find a good driver for on the internet, so I wrote one and put on GitHub.
It's part of my embryonic "TeensyHelpers" repo; the only other thing in there is the asynchronous RC pulse input library I use:
https://github.com/jwatte/TeensyHelpers/

Maybe this saves someone a bit of time!
 
Last edited:
PulsePinIn does make assumptions about the duration of the pulse:

if (ret < 500 || ret > 2500) {
ret = 0;
}

De-bouncing could be done in a similar manner, but the problem is slightly different, so I'd not recommend using PulsePinIn for that.
 
Status
Not open for further replies.
Back
Top