Started a gui menuflow
Dependencies: LCD_DISCO_F429ZI mbed TS_DISCO_F429ZI BSP_DISCO_F429ZI
Diff: Screens.h
- Revision:
- 3:b029a3f73a9e
diff -r 5828e6917e75 -r b029a3f73a9e Screens.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Screens.h Thu Jun 11 22:55:06 2020 +0000 @@ -0,0 +1,39 @@ +#ifndef __SCREENS_H +#define __SCREENS_H +#ifdef TARGET_DISCO_F429ZI +#include "TS_DISCO_F429ZI.h" +#include "LCD_DISCO_F429ZI.h" + +#define BigButtonX 40 +#define BigButtonWidth 160 +#define BigButtonHeight 35 + +#define BigButton1Y 70 +#define BigButton2Y 130 +#define BigButton3Y 190 +#define BigButton4Y 250 + +typedef enum +{ + StartUp = 0, + CPAPMain = 1, + NIVMain = 2, + CPAPRunning = 3, + CPAPSettingsMain = 4, + CPAPSettingsDetailView = 5, + NIVRunning = 6, + NIVSettingsMain = 7, + NIVSettingsDetailView = 8 +} ScreenState; + +extern bool refreshScreen; + +void CreatStartupScreen(LCD_DISCO_F429ZI lcd); +void DrawBigButton(LCD_DISCO_F429ZI lcd, uint8_t position, char* array); +void showScreen(ScreenState screen,LCD_DISCO_F429ZI lcd); + +#else +#error "This class must be used with DISCO_F429ZI board only." +#endif // TARGET_DISCO_F429ZI + +#endif