My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Screens/CalibrateScreen.hpp@35:6baa558d3b86, 2016-10-03 (annotated)
- Committer:
- Kerneels Bezuidenhout
- Date:
- Mon Oct 03 17:12:39 2016 +0200
- Revision:
- 35:6baa558d3b86
- Parent:
- 34:0b308a399f72
- Child:
- 37:93c7563f2078
Testing calibration
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 |
35:6baa558d3b86 | 10 | CalibrateScreen(int *nextScreen, int *ballOnPlate, bool *calStarted, 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 |
35:6baa558d3b86 | 23 | int *_calHeldTime; |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 24 | char _message[50]; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 25 | |
Kerneels Bezuidenhout |
35:6baa558d3b86 | 26 | void DisplayMessage(); |
Kerneels Bezuidenhout |
34:0b308a399f72 | 27 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 28 | }; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 29 | #endif |