mirror of
https://github.com/sweidac/kidsbox.git
synced 2025-07-28 03:41:54 +02:00
SDCard music player from dueros example.
This commit is contained in:
@@ -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