Sat, 09 Aug 2014 16:56:31 +0200
Added panel sourcecode files
thermferm/panel.c | file | annotate | diff | comparison | revisions | |
thermferm/panel.h | file | annotate | diff | comparison | revisions |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/thermferm/panel.c Sat Aug 09 16:56:31 2014 +0200 @@ -0,0 +1,31 @@ +/***************************************************************************** + * Copyright (C) 2014 + * + * Michiel Broek <mbroek at mbse dot eu> + * + * This file is part of the mbsePi-apps + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2, or (at your option) any + * later version. + * + * mbsePi-apps is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with ThermFerm; see the file COPYING. If not, write to the Free + * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + *****************************************************************************/ + +#include "thermferm.h" +#include "panel.h" + +#ifdef HAVE_WIRINGPI_H + + + + +#endif
--- /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