![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Started a gui menuflow
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Screens.h@3:b029a3f73a9e, 2020-06-11 (annotated)
- Committer:
- ahaas92
- Date:
- Thu Jun 11 22:55:06 2020 +0000
- Revision:
- 3:b029a3f73a9e
Init of gui structure ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ahaas92 | 3:b029a3f73a9e | 1 | #ifndef __SCREENS_H |
ahaas92 | 3:b029a3f73a9e | 2 | #define __SCREENS_H |
ahaas92 | 3:b029a3f73a9e | 3 | #ifdef TARGET_DISCO_F429ZI |
ahaas92 | 3:b029a3f73a9e | 4 | #include "TS_DISCO_F429ZI.h" |
ahaas92 | 3:b029a3f73a9e | 5 | #include "LCD_DISCO_F429ZI.h" |
ahaas92 | 3:b029a3f73a9e | 6 | |
ahaas92 | 3:b029a3f73a9e | 7 | #define BigButtonX 40 |
ahaas92 | 3:b029a3f73a9e | 8 | #define BigButtonWidth 160 |
ahaas92 | 3:b029a3f73a9e | 9 | #define BigButtonHeight 35 |
ahaas92 | 3:b029a3f73a9e | 10 | |
ahaas92 | 3:b029a3f73a9e | 11 | #define BigButton1Y 70 |
ahaas92 | 3:b029a3f73a9e | 12 | #define BigButton2Y 130 |
ahaas92 | 3:b029a3f73a9e | 13 | #define BigButton3Y 190 |
ahaas92 | 3:b029a3f73a9e | 14 | #define BigButton4Y 250 |
ahaas92 | 3:b029a3f73a9e | 15 | |
ahaas92 | 3:b029a3f73a9e | 16 | typedef enum |
ahaas92 | 3:b029a3f73a9e | 17 | { |
ahaas92 | 3:b029a3f73a9e | 18 | StartUp = 0, |
ahaas92 | 3:b029a3f73a9e | 19 | CPAPMain = 1, |
ahaas92 | 3:b029a3f73a9e | 20 | NIVMain = 2, |
ahaas92 | 3:b029a3f73a9e | 21 | CPAPRunning = 3, |
ahaas92 | 3:b029a3f73a9e | 22 | CPAPSettingsMain = 4, |
ahaas92 | 3:b029a3f73a9e | 23 | CPAPSettingsDetailView = 5, |
ahaas92 | 3:b029a3f73a9e | 24 | NIVRunning = 6, |
ahaas92 | 3:b029a3f73a9e | 25 | NIVSettingsMain = 7, |
ahaas92 | 3:b029a3f73a9e | 26 | NIVSettingsDetailView = 8 |
ahaas92 | 3:b029a3f73a9e | 27 | } ScreenState; |
ahaas92 | 3:b029a3f73a9e | 28 | |
ahaas92 | 3:b029a3f73a9e | 29 | extern bool refreshScreen; |
ahaas92 | 3:b029a3f73a9e | 30 | |
ahaas92 | 3:b029a3f73a9e | 31 | void CreatStartupScreen(LCD_DISCO_F429ZI lcd); |
ahaas92 | 3:b029a3f73a9e | 32 | void DrawBigButton(LCD_DISCO_F429ZI lcd, uint8_t position, char* array); |
ahaas92 | 3:b029a3f73a9e | 33 | void showScreen(ScreenState screen,LCD_DISCO_F429ZI lcd); |
ahaas92 | 3:b029a3f73a9e | 34 | |
ahaas92 | 3:b029a3f73a9e | 35 | #else |
ahaas92 | 3:b029a3f73a9e | 36 | #error "This class must be used with DISCO_F429ZI board only." |
ahaas92 | 3:b029a3f73a9e | 37 | #endif // TARGET_DISCO_F429ZI |
ahaas92 | 3:b029a3f73a9e | 38 | |
ahaas92 | 3:b029a3f73a9e | 39 | #endif |