thermferm/panel.h

Fri, 11 Mar 2016 20:27:02 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 11 Mar 2016 20:27:02 +0100
changeset 492
750f2468dec5
parent 422
13502d0dda65
permissions
-rw-r--r--

Changed PID code. PID parameters are now stored 3 digits instead of 2 behind the decimal point. Prevent extreme heating or cooling in Beer mode. Heat and Cool lockdown now allows the lagest value to win instead of zero them both. PID output treshold from 2% to 50%.

#ifndef	_PANEL_H
#define	_PANEL_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);

#ifdef HAVE_WIRINGPI_H
PI_THREAD (my_panel_loop);
#else
void *my_panel_loop(void *);
#endif

#endif

mercurial