Add style check matching RP2040 core (#740)
Will let us backport the BackgroundAudio patches to libhelix easier and clean up some ugly formatting we've let develop.
This commit is contained in:
1 parent
62dd23a74a
commit
f9e72dbb21
434 files changed
+94604
-93082
No files matched your search
@@ -11,23 +11,23 @@ AudioGeneratorWAV *wav;
|
||||
AudioFileSourcePROGMEM *file;
|
||||
AudioOutputI2SNoDAC *out;
|
||||
|
||||
void setup()
|
||||
{
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
delay(1000);
|
||||
Serial.printf("WAV start\n");
|
||||
|
||||
audioLogger = &Serial;
|
||||
file = new AudioFileSourcePROGMEM( viola, sizeof(viola) );
|
||||
file = new AudioFileSourcePROGMEM(viola, sizeof(viola));
|
||||
out = new AudioOutputI2SNoDAC();
|
||||
wav = new AudioGeneratorWAV();
|
||||
wav->begin(file, out);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
void loop() {
|
||||
if (wav->isRunning()) {
|
||||
if (!wav->loop()) wav->stop();
|
||||
if (!wav->loop()) {
|
||||
wav->stop();
|
||||
}
|
||||
} else {
|
||||
Serial.printf("WAV done\n");
|
||||
delay(1000);
|
||||
|
||||
Reference in new issue
Block a user