# HG changeset patch # User Michiel Broek # Date 1407596191 -7200 # Node ID 531725a090121c9f074c843e01179186ed1690cb # Parent 4d7a96c5d1ff24e98c50a00b86dcf4f3888d355c Added panel sourcecode files diff -r 4d7a96c5d1ff -r 531725a09012 thermferm/panel.c --- /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 + * + * 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 diff -r 4d7a96c5d1ff -r 531725a09012 thermferm/panel.h --- /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