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.
Diff: screen/EATouch.h
- Revision:
- 2:2b860e764545
- Parent:
- 1:f04bcaea1d60
--- a/screen/EATouch.h Thu Mar 04 10:54:06 2010 +0000
+++ b/screen/EATouch.h Sun Mar 28 20:15:15 2010 +0000
@@ -50,19 +50,23 @@
* and y are undefined.
*/
void touch(short& x, short& y, bool& pressed);
+
+ bool save();
+
+ bool load();
private:
EALCD& _lcd;
EATouch::matrix _cal_matrix;
+ void _raw(short& x, short& y, bool& pressed);
+
/**
* Value to hold the threshold which is used to decided if pressed or not.
*/
unsigned int _threshold;
-
- void _raw(short& x, short& y, bool& pressed);
-
+
/**
* Take in x and y values from touch panel and convert to pixel position.
* Uses the calibration values taht are set using the calibrate() function.