Add missing audio loop

This commit is contained in:
Gabriel Augendre 2023-01-02 17:20:16 +01:00
parent 0a6a042daf
commit 65a7ffe99c
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -170,7 +170,7 @@ void setup()
// Audio // Audio
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT); audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume(21); // Max 21 audio.setVolume(15); // Max 21
// Setup is done, light up the LED // Setup is done, light up the LED
digitalWrite(LED, HIGH); digitalWrite(LED, HIGH);
@ -182,4 +182,5 @@ void loop()
if (buttonCurrentState == LOW && buttonLastState == HIGH) if (buttonCurrentState == LOW && buttonLastState == HIGH)
play(); play();
buttonLastState = buttonCurrentState; buttonLastState = buttonCurrentState;
audio.loop();
} }