fix: add song and change to ATOM

This commit is contained in:
2021-09-27 10:28:48 +02:00
parent 48e335ef7a
commit 2edf393134
5 changed files with 3 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -10,7 +10,7 @@
[env:m5stack-core2]
platform = espressif32
board = esp-wrover-kit
board = m5stack-atom
framework = arduino
lib_deps =
earlephilhower/ESP8266Audio@^1.9.2

View File

@@ -20,7 +20,7 @@ AudioFileSourceLittleFS *file;
AudioOutputI2S *out;
const char *waveFile = "/003_short.mp3";
const char *waveFile = "/Let_it_be.mp3";
// Called when a metadata event occurs (i.e. an ID3 tag, an ICY block, etc.
void MDCallback(void *cbData, const char *type, bool isUnicode, const char *string)
@@ -74,7 +74,7 @@ void setup()
mp3->RegisterStatusCB(StatusCallback, (void*)"mp3");
out = new AudioOutputI2S();
out->SetPinout(21, 13, 14); //bclk, wclk, data
out->SetPinout(19, 33, 22); //bclk, wclk, data
mp3->begin(id3, out);
out->SetGain(0.25);
}

BIN
Tunes/Let_it_be.mp3 Normal file

Binary file not shown.