mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-25 01:18: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
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue