Skip to content

Commit

Permalink
buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Dec 20, 2013
1 parent e1cfc9c commit d22e001
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Firmware/Controller.ino
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,13 @@ void controller_buttons()
STATE_SWITCH(STATE_TIMEWORDS);
}

// switch to automatic brightness mode
if (btn4.read() && btn4.duration() > 1000)
{
brightness_enable_automatic();
}
if (btn1.risingEdge() && btn2.risingEdge())
{
STATE_SWITCH(STATE_ES_LACHT_NE_KUH);
}

// wait for dcf signal
if (btn1.read() && btn1.duration() > 1000 &&
btn2.read() && btn2.duration() > 1000 &&
btn3.read() && btn3.duration() > 1000)
Expand Down

0 comments on commit d22e001

Please sign in to comment.