SDCard music player from dueros example.

This commit is contained in:
Simon Weidacher committed 2021-12-26 14:05:02 +01:00
1 parent aef06f09a3
commit 13bd2051ad
10 files changed
+624 -1

No files matched your search

+4
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");
}