#include <ResistiveTouchScreen.h>
Public Member Functions | |
ResistiveTouchInterrogator (pinid_t xpPin, pinid_t xnPin, pinid_t ypPin, pinid_t ynPin) | |
TouchState | internalProcessTouch (float *ptrX, float *ptrY, const TouchOrientationSettings &rotation, const CalibrationHandler &calibrator) override |
This class handles the basics of a touch screen interface, capturing the values and converting them into a usable form, it is pure abstract and the sendEvent needs implementing with a suitable implemetnation for your needs. It is heavily based on the Adafruit TouchScreen library but modified to work with AnalogDevice so that it can work reliably across a wider range of devices.
Important notes
|
overridevirtual |
called by the touch screen manager to get the latest touch information.
ptrX | a pointer to be populated with the X position between 0 and 1 |
ptrY | a pointer to be popualted with the Y position between 0 and 1 |
rotation | the rotation of the display, one of the above. |
calib | the calibration handler that can be used to adjust the values before returning from this method |
Implements iotouch::TouchInterrogator.