-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.h
71 lines (48 loc) · 1.33 KB
/
application.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef __APPLICATION__
#define __APPLICATION__
// Include Process
#include <Process.h>
// Include Keyboard Library
#include "keyboard.h"
// Include Screen Library
#include "screen.h"
// Include Timer Library
#include "timer.h"
// Application name and version
#define APPLICATION_INFO "pLauncher v1.4"
// Backlight timer time out ticks
#define BACKLIGHT_TIMER_TIME_OUT_TICKS 250000 // (~30 seconds)
// Application Class
class Application
{
private:
// Programs Current Page
unsigned char programs_page = 1;
// Next page request flag
bool programs_next_page = false;
// Current directory listing
String current_directory = "";
// Program to be executed
String program_to_execute = "";
// List programs in a given directory
void menu();
// List programs in a given directory
void list_programs();
// Execute program
void execute();
// Capture numeric argument
String capture_numeric_argument(String argument_title);
// Screen Backlight
void screen_backlight();
public:
// Begin application
void begin();
// Menu screen
void main();
// Keyboard reset timer function
static void keyboard_reset_event();
// Keyboard time out function
static void keyboard_time_out_event();
};
extern Application application;
#endif