Touchscreen support graphics for setting up the RTC on the F746NG-DISCO board.
Dependents: DISCO-F746NG-clockSet DISCO-F746NG-clockSet-touch-demo
LCDclockSet.h@0:c6da6fc05965, 2016-03-04 (annotated)
- Committer:
- loopsva
- Date:
- Fri Mar 04 00:28:23 2016 +0000
- Revision:
- 0:c6da6fc05965
Touchscreen support graphics setting up the RTC on the F746NG-DISCO
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
loopsva | 0:c6da6fc05965 | 1 | #ifndef LCDCLOCKSET_H |
loopsva | 0:c6da6fc05965 | 2 | #define LCDCLOCKSET_H |
loopsva | 0:c6da6fc05965 | 3 | |
loopsva | 0:c6da6fc05965 | 4 | #include "mbed.h" |
loopsva | 0:c6da6fc05965 | 5 | |
loopsva | 0:c6da6fc05965 | 6 | class LCDclockSet { |
loopsva | 0:c6da6fc05965 | 7 | |
loopsva | 0:c6da6fc05965 | 8 | public: |
loopsva | 0:c6da6fc05965 | 9 | LCDclockSet(const char* name); |
loopsva | 0:c6da6fc05965 | 10 | void DrawClockBlock(char chr); |
loopsva | 0:c6da6fc05965 | 11 | void TouchClockBlock(int block_number, int value, bool erase); |
loopsva | 0:c6da6fc05965 | 12 | void Draw12Block(int rot, uint32_t block_color, uint32_t text_color); |
loopsva | 0:c6da6fc05965 | 13 | int Touch12Block(uint16_t x, uint16_t y); |
loopsva | 0:c6da6fc05965 | 14 | |
loopsva | 0:c6da6fc05965 | 15 | protected: |
loopsva | 0:c6da6fc05965 | 16 | private: |
loopsva | 0:c6da6fc05965 | 17 | |
loopsva | 0:c6da6fc05965 | 18 | }; |
loopsva | 0:c6da6fc05965 | 19 | |
loopsva | 0:c6da6fc05965 | 20 | #endif |