projets de S3 s4 2021
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341
Diff: touch.h
- Revision:
- 2:fe018965e46c
- Parent:
- 1:33506fcfdd95
- Child:
- 3:1396bac4ae71
diff -r 33506fcfdd95 -r fe018965e46c touch.h --- 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