199:3f5d277a69e3 | 200:a215ddaabbe2 |
---|---|
11 #define PANEL_ENTER 4 | 11 #define PANEL_ENTER 4 |
12 #define PANEL_DOWN 5 | 12 #define PANEL_DOWN 5 |
13 #define PANEL_UP 6 | 13 #define PANEL_UP 6 |
14 | 14 |
15 /* | 15 /* |
16 * Milliseconds for a key to be short or long pressed. | 16 * 10 Milliseconds counts for a key to be short or long pressed. |
17 */ | 17 */ |
18 #define KEY_NORMAL 50 | 18 #define PRESS_NORMAL 5 |
19 #define KEY_LONG 2000 | 19 #define PRESS_LONG 200 |
20 | 20 |
21 /* | 21 /* |
22 * LCD timeout in seconds | 22 * LCD timeout in seconds |
23 */ | 23 */ |
24 #define LCD_SLEEP 120 | 24 #define LCD_SLEEP 120 |
26 /* | 26 /* |
27 * Menu timeout in seconds | 27 * Menu timeout in seconds |
28 */ | 28 */ |
29 #define MENU_TIMEOUT 60 | 29 #define MENU_TIMEOUT 60 |
30 | 30 |
31 /* | |
32 * Key names | |
33 */ | |
34 #define KEY_NONE 0 | |
35 #define KEY_UP 1 | |
36 #define KEY_DOWN 2 | |
37 #define KEY_UPDOWN 3 | |
38 #define KEY_ENTER 4 | |
39 #define KEY_CONFIRM 5 /* Long Enter */ | |
40 #define KEY_ALL 99 | |
41 | |
42 | |
43 int keycheck(void); | |
31 | 44 |
32 PI_THREAD (my_panel_loop); | 45 PI_THREAD (my_panel_loop); |
33 | 46 |
34 | 47 |
35 #endif | 48 #endif |