diff --git a/VSCode/Pong/src/main.cpp b/VSCode/Pong/src/main.cpp index 32b9945..91b8f41 100755 --- a/VSCode/Pong/src/main.cpp +++ b/VSCode/Pong/src/main.cpp @@ -157,10 +157,12 @@ void loop() if (isButtonPressed()) { gameState = GAME_STATE_INIT; } - else if (millis() - lastDrawUpdate > 10000) + else if (millis() - lastDrawUpdate > 300000) { - resetLEDs(); - attentionLight(); + resetLEDs(); + 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); }