-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDSKY.h
37 lines (34 loc) · 824 Bytes
/
DSKY.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
class DSKY
{
public:
enum States
{
Ready,
Verb,
Noun,
};
void Init(bool reinit = false);
void Draw();
void Start();
void Loop();
void Update();
void CheckBlink();
void CheckAutoRun();
void ShowVerbNoun(int verb, int noun);
unsigned long _uptimeBaseSeconds = 0L;
byte _CurrentProgramVerb = 0;
byte _CurrentProgramNoun = 0;
private:
void ProcessKey(int btn);
void ProcessEnter();
void CheckCurrentProgram();
void EndCurrentProgram();
void DoSystemClick();
States _state;
unsigned long _CurrentProgramTick = 0;
Programs::Program _pCurrentProgram = NULL;
unsigned long _BlinkTimerMS = 0L;
unsigned long _CurrentProgramTimerMS = 0L;
};
extern DSKY dsky;