Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
EATouch Class Reference
Class to handle the touch screen on the LCD board. More...
#include <EATouch.h>
Public Member Functions | |
| bool | calibrate () |
| Start the calibration routine. | |
| void | setThreshold (unsigned short threshold) |
| Set the threshold value to register a press after. | |
| void | touch (short &x, short &y, bool &pressed) |
| Check for a press. | |
Detailed Description
Class to handle the touch screen on the LCD board.
Definition at line 14 of file EATouch.h.
Member Function Documentation
| bool calibrate | ( | ) |
Start the calibration routine.
Calibration is a 3 point process to set up internal conversion measurements.
- Returns:
- bool The status as to whether calibration was successful or whether timed out etc.
Definition at line 25 of file EATouch.cpp.
| void setThreshold | ( | unsigned short | threshold ) |
| void touch | ( | short & | x, |
| short & | y, | ||
| bool & | pressed | ||
| ) |
Check for a press.
- Parameters:
-
x The x value of the touch in pixels (converted using calibration settings). y The y value of the touch in pixels (converted using calibration settings). pressed Boolean describing if a touch is detected. If pressed is false then x and y are undefined.
Definition at line 174 of file EATouch.cpp.
Generated on Wed Jul 13 2022 10:26:51 by
1.7.2