Correction
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG
Diff: touches.h
- Revision:
- 1:467f801bd037
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/touches.h Tue Dec 10 08:49:11 2019 +0000 @@ -0,0 +1,23 @@ + + +/* 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