Browse Source

fix/add radio stations

main
Hendrik Langer 7 years ago
parent
commit
e40d932123
  1. 1
      src/led.cpp
  2. 21
      src/screen.cpp

1
src/led.cpp

@ -113,6 +113,7 @@ void Led::setup(void) {
pinMode(LED_PIN, OUTPUT);
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS);
FastLED.setBrightness(96);
//FastLED.setMaxPowerInVoltsAndMilliamps(5, 500);
FastLED.setCorrection(TypicalLEDStrip);
fill_solid(leds, NUM_LEDS, CRGB::Black);
color = CRGB::Orange;

21
src/screen.cpp

@ -129,6 +129,7 @@ StationMenu::StationMenu() {
"Irish Pub Radio",
"Antenne Bayern Oldies",
"Der Barde",
"DeclicRadio",
"xd0.de MPD",
"\xAB Return"};
}
@ -171,7 +172,8 @@ uint8_t StationMenu::select() {
led.changeAnimation(2, 0);
break;
case 7:
mp3.start("http://69.167.190.234:8080/stream");
mp3.start("http://192.111.140.11:8058/stream");
// mp3.start("http://69.167.190.234:8080/stream");
strcpy(titleStr, string_list[7].c_str());
led.changeAnimation(2, 0);
break;
@ -192,25 +194,30 @@ uint8_t StationMenu::select() {
break;
case 11:
mp3.start("http://bb24.sonixcast.com:20038/stream");
strcpy(titleStr, string_list[10].c_str());
strcpy(titleStr, string_list[11].c_str());
led.changeAnimation(2, 0);
break;
case 12:
mp3.start("http://mp3channels.webradio.antenne.de/oldies-but-goldies");
strcpy(titleStr, string_list[10].c_str());
strcpy(titleStr, string_list[12].c_str());
led.changeAnimation(2, 0);
break;
case 13:
mp3.start("https://stream.laut.fm/der-barde");
strcpy(titleStr, string_list[10].c_str());
mp3.start("http://stream.laut.fm/der-barde");
strcpy(titleStr, string_list[13].c_str());
led.changeAnimation(2, 0);
break;
case 14:
mp3.start("http://172.16.75.17:8000/mopidy");
strcpy(titleStr, string_list[11].c_str());
mp3.start("http://live.francra.org:8000/DeclicRadio");
strcpy(titleStr, string_list[14].c_str());
led.changeAnimation(2, 0);
break;
case 15:
mp3.start("http://172.16.75.17:8000/mopidy");
strcpy(titleStr, string_list[15].c_str());
led.changeAnimation(2, 0);
break;
case 16:
menuChange = eMainMenu;
return current_pos;
break;

Loading…
Cancel
Save