Correction
Dependencies: TS_DISCO_F746NG mbed LCD_DISCO_F746NG BSP_DISCO_F746NG
touches.h@1:467f801bd037, 2019-12-10 (annotated)
- Committer:
- DValente
- Date:
- Tue Dec 10 08:49:11 2019 +0000
- Revision:
- 1:467f801bd037
TP3b
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DValente | 1:467f801bd037 | 1 | |
DValente | 1:467f801bd037 | 2 | |
DValente | 1:467f801bd037 | 3 | /* Bibliothéque des fonction nécessaires au TP n°3 pour la détection des touches de la dalle tactile */ |
DValente | 1:467f801bd037 | 4 | #ifndef __TOUCHES_H |
DValente | 1:467f801bd037 | 5 | #define __TOUCHES_H |
DValente | 1:467f801bd037 | 6 | |
DValente | 1:467f801bd037 | 7 | #ifdef TARGET_DISCO_F746NG |
DValente | 1:467f801bd037 | 8 | |
DValente | 1:467f801bd037 | 9 | #include "mbed.h" |
DValente | 1:467f801bd037 | 10 | #include "TS_DISCO_F746NG.h" |
DValente | 1:467f801bd037 | 11 | |
DValente | 1:467f801bd037 | 12 | #define ICON_H_GAP 20 |
DValente | 1:467f801bd037 | 13 | #define ICON_V_GAP 25 |
DValente | 1:467f801bd037 | 14 | #define ICON_WIDTH 96 |
DValente | 1:467f801bd037 | 15 | #define ICON_HEIGHT 96 |
DValente | 1:467f801bd037 | 16 | |
DValente | 1:467f801bd037 | 17 | uint8_t readTouchApp(void); |
DValente | 1:467f801bd037 | 18 | bool readTouchClose(uint16_t X1,uint16_t Y1,uint16_t X2,uint16_t Y2); |
DValente | 1:467f801bd037 | 19 | |
DValente | 1:467f801bd037 | 20 | #else |
DValente | 1:467f801bd037 | 21 | #error "This class must be used with DISCO_F746NG board only." |
DValente | 1:467f801bd037 | 22 | #endif // TARGET_DISCO_F746NG |
DValente | 1:467f801bd037 | 23 | #endif |