thermferm/panel.h

Sat, 09 Aug 2014 17:24:32 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 09 Aug 2014 17:24:32 +0200
changeset 199
3f5d277a69e3
parent 197
531725a09012
child 200
a215ddaabbe2
permissions
-rw-r--r--

Added panel thread

#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


PI_THREAD (my_panel_loop);


#endif

#endif

mercurial