thermferm/panel.h

changeset 197
531725a09012
child 199
3f5d277a69e3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thermferm/panel.h	Sat Aug 09 16:56:31 2014 +0200
@@ -0,0 +1,34 @@
+#ifndef	_PANEL_H
+#define	_PANEL_H
+
+
+#ifdef HAVE_WIRINGPI_H
+
+/*
+ * GPIO pins for the frontpanel LED and push buttons.
+ */
+#define	PANEL_LED	2
+#define	PANEL_ENTER	4
+#define	PANEL_DOWN	5
+#define	PANEL_UP	6
+
+/*
+ * Milliseconds for a key to be short or long pressed.
+ */
+#define	KEY_NORMAL	50
+#define	KEY_LONG	2000
+
+/*
+ * LCD timeout in seconds
+ */
+#define	LCD_SLEEP	120
+
+/*
+ * Menu timeout in seconds
+ */
+#define	MENU_TIMEOUT	60
+
+
+#endif
+
+#endif

mercurial