mirror of
https://github.com/sweidac/kidsbox.git
synced 2026-10-28 06:52:57 +01:00
SDCard music player from dueros example.
This commit is contained in:
1 parent
aef06f09a3
commit
13bd2051ad
10 files changed
+624
-1
No files matched your search
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user