diff options
author | Dmitry Mikhirev | 2012-08-28 10:11:15 +0400 |
---|---|---|
committer | Dmitry Mikhirev | 2012-08-28 10:11:15 +0400 |
commit | f809838486400ed169c47466559d7fbd01f6c2ce (patch) | |
tree | 4edbbdbc78008d3a912ed5fa4e60f1f61653cdc6 | |
parent | e6d874c734fb9ebec3de5c9b652425b704480a55 (diff) | |
download | brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.gz brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.bz2 brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.xz brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.zip |
fix turning lamps off
-rw-r--r-- | brainuino.ino | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/brainuino.ino b/brainuino.ino index fe59074..7fb0233 100644 --- a/brainuino.ino +++ b/brainuino.ino @@ -20,7 +20,7 @@ #include <LiquidCrystal.h> // undefine the following if your LCD does not support Russian font -#define RUSSIAN +//#define RUSSIAN #include "pinout.h" #include "game.h" @@ -35,7 +35,7 @@ void setup() pinInit(); time = 0; - // the following settings should be readen from EEPROM + // TODO: the following settings should be readen from EEPROM gameType = SI; withFalseStart = false; timer1 = 5; @@ -51,10 +51,12 @@ void loop() timer = timer1; printGameType(); - // ensure that stop button is released +/* +// ensure that stop button is released while (digitalRead(CONTROL2) == LOW) { delay(20); } +*/ ask(); } @@ -63,6 +65,9 @@ void ask() { // waiting while question is being asked + digitalWrite(GREENLAMP, LOW); + digitalWrite(REDLAMP, LOW); + #ifdef RUSSIAN printState(convert("Задаётся вопрос ")); #else |