Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1702 - 1
#if !defined(__SCREEN_H__)
2
#define __SCREEN_H__
3
 
4
#include <inttypes.h>
5
#include "screenitem.h"
6
 
7
#define MAX_SCREENS      12
8
 
9
class Screen;
10
 
11
static Screen    *screenPool2[MAX_SCREENS];
12
 
13
class Screen
14
{
15
    static uint8_t              currentScreen;
16
    static uint8_t              totalScreens;
17
    static bool                 screenChanged;
18
 
19
    ScreenItem                  *screenItems;
20
    const uint8_t               numItems;
21
 
22
public:
23
    Screen(const uint8_t num_items, ScreenItem *pItems);
24
 
25
    static void     Run(Max_LCD *pLcd);
26
    static void     Set(uint8_t screen_id);
27
    static uint8_t  Get() { return currentScreen; };
28
 
29
    void Update(Max_LCD *pLcd, bool initial);
30
};
31
 
32
#endif // __SCREEN_H__