class virtual touch

touches.h

Committer:
jlpadiolleau
Date:
2017-12-02
Revision:
1:99bd999c4225
Parent:
0:9a2aecfcdf51

File content as of revision 1:99bd999c4225:



/* Bibliothéque des fonction nécessaires au TP n°3 pour la détection des touches de la dalle tactile */
#ifndef __TOUCHES_H
#define __TOUCHES_H

#ifdef TARGET_DISCO_F746NG

#include "mbed.h"
#include "TS_DISCO_F746NG.h"

#define ICON_H_GAP 20
#define ICON_V_GAP 25
#define ICON_WIDTH 96
#define ICON_HEIGHT 96

uint8_t readTouchApp(void);
bool readTouchClose(uint16_t X1,uint16_t Y1,uint16_t X2,uint16_t Y2);

#else
#error "This class must be used with DISCO_F746NG board only."
#endif // TARGET_DISCO_F746NG
#endif