Paint for the FRDM-KL25Z
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341
touch.h
- Committer:
- ecowboy
- Date:
- 2019-01-12
- Revision:
- 6:13d0de9e679c
- Parent:
- 5:80791250acb2
File content as of revision 6:13d0de9e679c:
#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);