Paint for the FRDM-KL25Z

Dependencies:   mbed TFT_fonts SPI_TFT_ILI9341

touch.h

Committer:
ecowboy
Date:
2019-01-10
Revision:
3:1396bac4ae71
Parent:
2:fe018965e46c
Child:
4:87b40e5986e7

File content as of revision 3:1396bac4ae71:

#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 p, PinName m, PinName a, PinName i);
    //bool isTouching(void);
    //Point getPoint(Point p);
};

    int map(float value, float fromSource, float toSource, float fromTarget, float toTarget);