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.
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341
Diff: touch.h
- Revision:
- 2:fe018965e46c
- Parent:
- 1:33506fcfdd95
- Child:
- 3:1396bac4ae71
--- a/touch.h Mon Jan 07 16:15:52 2019 +0000
+++ b/touch.h Tue Jan 08 06:56:55 2019 +0000
@@ -1,9 +1,5 @@
#include "mbed.h"
-#define RXPLATE 350
-#define Q 1024 //10 bit TSC Resolution
-#define PRESSURE 10
-
class TouchScreen {
private:
@@ -16,4 +12,4 @@
//Point getPoint(Point p);
};
- int map(int value, int fromSource, int toSource, int fromTarget, int toTarget);
\ No newline at end of file
+ int map(float value, float fromSource, float toSource, float fromTarget, float toTarget);
\ No newline at end of file