My final year project
Dependencies: BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter
Screens/CalibrateScreen.hpp@32:d490f8ca6d2a, 2016-10-03 (annotated)
- Committer:
- Kerneels Bezuidenhout
- Date:
- Mon Oct 03 15:55:55 2016 +0200
- Revision:
- 32:d490f8ca6d2a
- Child:
- 34:0b308a399f72
Added CalibrationScreen
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 |
32:d490f8ca6d2a | 10 | CalibrateScreen(int *nextScreen, float (*t)[2] ); |
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 |
32:d490f8ca6d2a | 20 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 21 | float (*_t)[2]; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 22 | |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 23 | static const float _HOLD_TIME = 5; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 24 | Timer _holdTimer; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 25 | }; |
Kerneels Bezuidenhout |
32:d490f8ca6d2a | 26 | #endif |