LED flash when panel enter key is pressed long.

Mon, 11 Aug 2014 11:50:23 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 11 Aug 2014 11:50:23 +0200
changeset 216
d734255e66a0
parent 215
5ad534c79a22
child 217
2922d439ff63

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)) {

mercurial