31 lines
778 B
C++
31 lines
778 B
C++
#include <Arduino.h>
|
|
|
|
#include "audio.h"
|
|
#include "http.h"
|
|
#include "wifi.h"
|
|
#include "player.h"
|
|
#include "playlist.h"
|
|
|
|
void setup() {
|
|
delay(500);
|
|
Serial.begin(115200);
|
|
Serial.println("\n\n\nStartup!");
|
|
|
|
audioSetup();
|
|
|
|
playlistClear();
|
|
playlistAdd("ICY|http://liveradio.sr.de/sr/sr1/mp3/128/stream.mp3|SR1"); // 48000 Hz
|
|
playlistAdd("ICY|http://uk3.internet-radio.com:8082/live|1940s Radio"); // 44100 Hz TODO stuttering
|
|
playlistAdd("ICY|https://das-edge16-live365-dal02.cdnstream.com/a22508|Mistletoe Radio"); // 44100 Hz TODO stuttering
|
|
playlistAdd("ICY|https://stream.rockantenne.de/rockantenne/stream/mp3|Rockantenne Classic Perlen"); // 44100 Hz TODO stuttering
|
|
|
|
wifiLoop();
|
|
httpSetup();
|
|
}
|
|
|
|
void loop() {
|
|
wifiLoop();
|
|
playerLoop();
|
|
httpLoop();
|
|
}
|