Sat, 09 Aug 2014 17:24:32 +0200
Added panel thread
197 | 1 | #ifndef _PANEL_H |
2 | #define _PANEL_H | |
3 | ||
4 | ||
5 | #ifdef HAVE_WIRINGPI_H | |
6 | ||
7 | /* | |
8 | * GPIO pins for the frontpanel LED and push buttons. | |
9 | */ | |
10 | #define PANEL_LED 2 | |
11 | #define PANEL_ENTER 4 | |
12 | #define PANEL_DOWN 5 | |
13 | #define PANEL_UP 6 | |
14 | ||
15 | /* | |
16 | * Milliseconds for a key to be short or long pressed. | |
17 | */ | |
18 | #define KEY_NORMAL 50 | |
19 | #define KEY_LONG 2000 | |
20 | ||
21 | /* | |
22 | * LCD timeout in seconds | |
23 | */ | |
24 | #define LCD_SLEEP 120 | |
25 | ||
26 | /* | |
27 | * Menu timeout in seconds | |
28 | */ | |
29 | #define MENU_TIMEOUT 60 | |
30 | ||
31 | ||
199 | 32 | PI_THREAD (my_panel_loop); |
33 | ||
34 | ||
197 | 35 | #endif |
36 | ||
37 | #endif |