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

#include <ResistiveTouchScreen.h>

Public Member Functions

 CalibrationHandler (const CalibrationHandler &other)=default
 
CalibrationHandleroperator= (const CalibrationHandler &other)=default
 
void setCalibrationValues (float mnX, float mxX, float mnY, float mxY)
 
void enableCalibration (bool state)
 
float calibrateX (float rawValue, bool isInverted) const
 
float calibrateY (float rawValue, bool isInverted) const
 
float getMinX () const
 
float getMinY () const
 
float getMaxX () const
 
float getMaxY () const
 
void setXPosition (float x, bool isMax)
 
void setYPosition (float y, bool isMax)
 

Detailed Description

Provides calibration for IoAbstraction based touch facilities, it does so by recording the minimum and maximum values in the X and Y dimension and then correction values to fall within those ranges


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