thermferm/panel.h

Mon, 01 Sep 2014 15:43:13 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 01 Sep 2014 15:43:13 +0200
changeset 274
111b0e9663dc
parent 229
5f93b61adb34
child 418
0bfe08c7ba6e
permissions
-rw-r--r--

Added logging if profile state is changed via the web interface. Log profile progress each half hour in syslog. Profile resttime steps 0 hours is allowed, meaning resttime or steptime must be set for a valid step. Updated the helptext on the web page.

#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


/*
 * Key names
 */
#define	KEY_NONE	0
#define	KEY_UP		1
#define	KEY_DOWN	2
#define	KEY_ESCAPE	3
#define	KEY_ENTER	4
#define	KEY_CONFIRM	5	/* Long Enter */
#define	KEY_ALL		99


int keycheck(void);


PI_THREAD (my_panel_loop);


#endif

#endif

mercurial