aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Mikhirev2012-08-28 10:11:15 +0400
committerDmitry Mikhirev2012-08-28 10:11:15 +0400
commitf809838486400ed169c47466559d7fbd01f6c2ce (patch)
tree4edbbdbc78008d3a912ed5fa4e60f1f61653cdc6
parente6d874c734fb9ebec3de5c9b652425b704480a55 (diff)
downloadbrainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.gz
brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.bz2
brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.tar.xz
brainuino-f809838486400ed169c47466559d7fbd01f6c2ce.zip
fix turning lamps off
-rw-r--r--brainuino.ino11
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