projets de S3 s4 2021

Dependencies:   mbed TFT_fonts SPI_TFT_ILI9341

touch.h

Committer:
ecowboy
Date:
2019-01-08
Revision:
2:fe018965e46c
Parent:
1:33506fcfdd95
Child:
3:1396bac4ae71

File content as of revision 2:fe018965e46c:

#include "mbed.h"


class TouchScreen {
    private:
    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);