SDCard music player from dueros example.

This commit is contained in:
Simon Weidacher
2021-12-26 14:00:30 +01:00
parent aef06f09a3
commit 13bd2051ad
10 changed files with 624 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include "Networking.hpp"
#include "WebInterface.hpp"
#include "RFIDInterface.hpp"
#include "AudioPlayer.hpp"
extern "C" {
void app_main();
@@ -21,4 +22,7 @@ void app_main(void) {
rfid.registerWebResources(&webInterface);
webInterface.finishResourceRegistrations();
AudioPlayer audioPlayer; // initialize here, because the ctor does init stuff that fails when executed before `app_main()`
audioPlayer.play("file://sdcard/howcanwehangontoadream.mp3");
}