#include <otXPT2046.h>
Public Types | |
| enum | rotation_t { ROT0, ROT90, ROT180, ROT270 } |
Public Member Functions | |
| otXPT2046 () | |
| Create the object. | |
| bool | rawData (U16 &_x, U16 &_y, U16 &_z) |
| bool | position (U16 &x, U16 &y) |
| void | init (U16 w, U16 h) |
| void | setThreshold (int t) |
| void | setCalibration (U16 vy1, U16 vx1, U16 vy2, U16 vx2) |
| void | getCalibration (U16 &x1, U16 &y1, U16 &x2, U16 &y2) |
| void | setRotation (rotation_t rot) |
|
|
|
|
|
|
|
||||||||||||||||||||
|
Procedure to read calibration points
|
|
||||||||||||
|
Initialize the object
|
|
||||||||||||
|
Read coordinate position where touch screen is pressed
|
|
||||||||||||||||
|
Read ADC raw data
|
|
||||||||||||||||||||
|
Procedure to calibrate the touch screen
|
|
|
Set the coordinate rotation
|
|
|
Set the threshold value to detect a touch screen pressure
|