Inaktivitätsanzeige hinzugefügt
This commit is contained in:
parent
ecab940541
commit
ba60af1c3d
1 changed files with 7 additions and 3 deletions
|
@ -157,10 +157,12 @@ void loop()
|
|||
if (isButtonPressed()) {
|
||||
gameState = GAME_STATE_INIT;
|
||||
}
|
||||
else if (millis() - lastDrawUpdate > 10000)
|
||||
else if (millis() - lastDrawUpdate > 300000)
|
||||
{
|
||||
resetLEDs();
|
||||
attentionLight();
|
||||
pointsPlayerBlue = 0;
|
||||
pointsPlayerRed = 0;
|
||||
attentionLight();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -479,10 +481,12 @@ void playTone(byte type)
|
|||
void attentionLight()
|
||||
{
|
||||
int n = random(0,200);
|
||||
int m = random(0,200);
|
||||
int r = random(0,250);
|
||||
int g = random(0,250);
|
||||
int b = random(0,250);
|
||||
pixels.setPixelColor(n,Color(r,g,b));
|
||||
pixels.setPixelColor(m,r,g,b);
|
||||
pixels.show();
|
||||
delay(1000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue