Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _INC_MENU
- #define _INC_MENU
- #define MENUDEPTH (1)
- #define DEF_MENUSTATE (0)
- /*
- Menuestates
- 0 back, gibts immer
- 1 save, nur bei bedarf
- 2 cancel, nur bei bedarf
- 3 1. eintrag
- 4 2. eintrag
- ..
- 255 spezial?
- */
- #include "display.h"
- class Menu
- {
- private:
- static uint8_t menustate[MENUDEPTH]; // Menuezustand
- static uint8_t curmen; // aktueller Menuepunkt
- static bool useraction; // button pressed or rotation
- static bool bupr; // button pressed
- static int rot; // button rotated
- static uint8_t curmendepth; // aktuelle Menuetiefe
- public:
- static void service();
- static void setup();
- static void setbutt(); // set button to pressed
- static void changerot(int8_t chrot); // increase or decrease buttonposition)
- private:
- static void mWelcome(); // welcome
- static void mMen(); // main menu
- static void dTemp(); // display temperatures
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement