diff -r 3f5d277a69e3 -r a215ddaabbe2 thermferm/panel.h --- a/thermferm/panel.h Sat Aug 09 17:24:32 2014 +0200 +++ b/thermferm/panel.h Sat Aug 09 21:42:28 2014 +0200 @@ -13,10 +13,10 @@ #define PANEL_UP 6 /* - * Milliseconds for a key to be short or long pressed. + * 10 Milliseconds counts for a key to be short or long pressed. */ -#define KEY_NORMAL 50 -#define KEY_LONG 2000 +#define PRESS_NORMAL 5 +#define PRESS_LONG 200 /* * LCD timeout in seconds @@ -28,6 +28,19 @@ */ #define MENU_TIMEOUT 60 +/* + * Key names + */ +#define KEY_NONE 0 +#define KEY_UP 1 +#define KEY_DOWN 2 +#define KEY_UPDOWN 3 +#define KEY_ENTER 4 +#define KEY_CONFIRM 5 /* Long Enter */ +#define KEY_ALL 99 + + +int keycheck(void); PI_THREAD (my_panel_loop);