Paint for the FRDM-KL25Z

Dependencies:   mbed TFT_fonts SPI_TFT_ILI9341

Committer:
ecowboy
Date:
Thu Jan 10 01:14:40 2019 +0000
Revision:
3:1396bac4ae71
Parent:
2:fe018965e46c
Child:
4:87b40e5986e7
Initial w/ Paint for KL25Z

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ecowboy 0:42ec9a44bc24 1 #include "mbed.h"
ecowboy 3:1396bac4ae71 2 #include "stdio.h"
ecowboy 0:42ec9a44bc24 3
ecowboy 0:42ec9a44bc24 4
ecowboy 0:42ec9a44bc24 5 class TouchScreen {
ecowboy 3:1396bac4ae71 6
ecowboy 3:1396bac4ae71 7 PinName yp, ym, xm, xp;
ecowboy 0:42ec9a44bc24 8
ecowboy 0:42ec9a44bc24 9 public:
ecowboy 0:42ec9a44bc24 10 TouchScreen(PinName xp, PinName yp, PinName xm, PinName ym);
ecowboy 0:42ec9a44bc24 11 int readTouch(PinName p, PinName m, PinName a, PinName i);
ecowboy 1:33506fcfdd95 12 //bool isTouching(void);
ecowboy 1:33506fcfdd95 13 //Point getPoint(Point p);
ecowboy 0:42ec9a44bc24 14 };
ecowboy 0:42ec9a44bc24 15
ecowboy 2:fe018965e46c 16 int map(float value, float fromSource, float toSource, float fromTarget, float toTarget);