TSC2046 Driver (very rough)
The standard Microsoft TSC2046 driver (as found on the ChipworkX board) samples too early and thus results in spurious and false touches.
This is a rough driver I wrote a while back to test a custom resistive touchscreen and driver PCB.
The driver is not optimised, is not friendly to read and requires an external SPIManager reference (not available) and is hardcoded to an 800 x 480 screen (I know, I know…)
The system could be better driven through the use of the PEN_IRQ event used to then call the ProcessTouch() function.
It is posted for reference only. Suggestions on how to improve the driver will be gladly welcomed.