My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Screens/CalibrateScreen.hpp@62:58e846621435, 2016-10-26 (annotated)
- Committer:
- Generic
- Date:
- Wed Oct 26 10:40:54 2016 +0000
- Revision:
- 62:58e846621435
- Parent:
- 37:93c7563f2078
Firmware
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 1 | #ifndef CALIBRATE_SCREEN_HPP |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 2 | #define CALIBRATE_SCREEN_HPP |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 3 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 4 | #include "Screen.hpp" |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 5 | #include "mbed.h" |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 6 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 7 | class CalibrateScreen : public Screen |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 8 | { |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 9 | public: |
Kerneels Bezuidenhout |
37:93c7563f2078 | 10 | CalibrateScreen(int *nextScreen, int *ballOnPlate, bool *calStarted, bool *calFinished, int *calPoint, float *calHeldTime); |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 11 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 12 | void Draw(); |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 13 | void Process(); |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 14 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 15 | private: |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 16 | Label _lbTitle; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 17 | Button _btBack; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 18 | Label _lbMessage; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 19 | |
Kerneels Bezuidenhout |
34:0b308a399f72 | 20 | int *_ballOnPlate; |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 21 | int *_calPoint; |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 22 | bool *_calStarted; |
Kerneels Bezuidenhout |
37:93c7563f2078 | 23 | bool *_calFinished; |
Kerneels Bezuidenhout |
37:93c7563f2078 | 24 | float *_calHeldTime; |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 25 | char _message[50]; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 26 | |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 27 | void DisplayMessage(); |
Kerneels Bezuidenhout |
34:0b308a399f72 | 28 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 29 | }; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 30 | #endif |