![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
projets de S3 s4 2021
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341
touch.h
- Committer:
- dujardin
- Date:
- 2020-10-18
- Revision:
- 8:eb61367f53ce
- Parent:
- 6:13d0de9e679c
File content as of revision 8:eb61367f53ce:
#include "mbed.h" #include "stdio.h" class TouchScreen { PinName yp, ym, xm, xp; public: TouchScreen(PinName xp, PinName yp, PinName xm, PinName ym); int readTouch(PinName a, PinName i, PinName n, PinName m); }; int map(float value, float fromSource, float toSource, float fromTarget, float toTarget);