Mon, 11 Aug 2014 11:50:23 +0200
LED flash when panel enter key is pressed long.
thermferm/panel.c | file | annotate | diff | comparison | revisions |
--- a/thermferm/panel.c Mon Aug 11 11:09:23 2014 +0200 +++ b/thermferm/panel.c Mon Aug 11 11:50:23 2014 +0200 @@ -108,6 +108,10 @@ Key_Enter = TRUE; if (Enter > PRESS_LONG) Key_Enter_Long = TRUE; + if (Enter == PRESS_LONG) + digitalWrite(PANEL_LED, 1); + if (Enter == (PRESS_LONG + 10)) + digitalWrite(PANEL_LED, 0); } if (digitalRead(PANEL_UP)) {