|
@@ -63,7 +63,7 @@ wahl=menu();
|
|
|
resetAllPins();
|
|
|
|
|
|
}
|
|
|
-void allblink(byte Mals)
|
|
|
+void allblink(byte Mals) //Unterprogramm fur Blinken der Lichten
|
|
|
{
|
|
|
for(i=1;i<=Mals;i++)
|
|
|
{
|
|
@@ -86,10 +86,7 @@ byte menu() //Code des Menus
|
|
|
if (digitalRead(2) == LOW) //Erscheinung des einfachen Modemenu
|
|
|
{
|
|
|
for(i=1;i<=2;i++) //2 Mals blink
|
|
|
- {/*digitalWrite(red, HIGH);digitalWrite(green, HIGH);digitalWrite(blue, HIGH);
|
|
|
- delay(500);
|
|
|
- digitalWrite(red, LOW);digitalWrite(green, LOW);digitalWrite(blue, LOW);
|
|
|
- delay(500);*/
|
|
|
+ {
|
|
|
allblink(2);
|
|
|
}
|
|
|
return 2;
|
|
@@ -97,10 +94,7 @@ byte menu() //Code des Menus
|
|
|
else if (digitalRead(3) == LOW) //Erscheinung des schwierigen Modemenu
|
|
|
{
|
|
|
for(i=1;i<=3;i++) //3 Mals blink
|
|
|
- {/*digitalWrite(red, HIGH);digitalWrite(green, HIGH);digitalWrite(blue, HIGH);
|
|
|
- delay(500);
|
|
|
- digitalWrite(red, LOW);digitalWrite(green, LOW);digitalWrite(blue, LOW);
|
|
|
- delay(500);*/
|
|
|
+ {
|
|
|
allblink(3);
|
|
|
}
|
|
|
return 3;
|
|
@@ -160,10 +154,7 @@ void game() //unterprogramm vom Spiel
|
|
|
if(gameover) //Gameover
|
|
|
|
|
|
{ for(i=1;i<=j;i++){
|
|
|
- /*digitalWrite(red, HIGH);digitalWrite(green, HIGH);digitalWrite(blue, HIGH);
|
|
|
- delay(500);
|
|
|
- digitalWrite(red, LOW);digitalWrite(green, LOW);digitalWrite(blue, LOW);
|
|
|
- delay(500);*/
|
|
|
+
|
|
|
allblink(j);
|
|
|
}
|
|
|
for(i=0;i>10;i++)
|