IoAbstraction
Public Member Functions | List of all members
iotouch::ResistiveTouchInterrogator Class Reference

#include <ResistiveTouchScreen.h>

Inheritance diagram for iotouch::ResistiveTouchInterrogator:
iotouch::TouchInterrogator

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
 

Detailed Description

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

Member Function Documentation

◆ internalProcessTouch()

TouchState iotouch::ResistiveTouchInterrogator::internalProcessTouch ( float *  ptrX,
float *  ptrY,
const TouchOrientationSettings settings,
const CalibrationHandler calib 
)
overridevirtual

called by the touch screen manager to get the latest touch information.

Parameters
ptrXa pointer to be populated with the X position between 0 and 1
ptrYa pointer to be popualted with the Y position between 0 and 1
rotationthe rotation of the display, one of the above.
calibthe calibration handler that can be used to adjust the values before returning from this method
Returns
the touch state after this call

Implements iotouch::TouchInterrogator.


The documentation for this class was generated from the following files: