mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-21 15:38:06 +01:00
Add missing audio loop
This commit is contained in:
parent
0a6a042daf
commit
65a7ffe99c
2 changed files with 2 additions and 1 deletions
Binary file not shown.
|
@ -170,7 +170,7 @@ void setup()
|
|||
|
||||
// Audio
|
||||
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
|
||||
digitalWrite(LED, HIGH);
|
||||
|
@ -182,4 +182,5 @@ void loop()
|
|||
if (buttonCurrentState == LOW && buttonLastState == HIGH)
|
||||
play();
|
||||
buttonLastState = buttonCurrentState;
|
||||
audio.loop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue