From e40d932123c31f22a26e7ba199d105c0288477df Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Fri, 6 Apr 2018 15:13:26 +0200 Subject: [PATCH] fix/add radio stations --- src/led.cpp | 1 + src/screen.cpp | 21 ++++++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/led.cpp b/src/led.cpp index 5d15efe..f65af16 100644 --- a/src/led.cpp +++ b/src/led.cpp @@ -113,6 +113,7 @@ void Led::setup(void) { pinMode(LED_PIN, OUTPUT); FastLED.addLeds(leds, NUM_LEDS); FastLED.setBrightness(96); + //FastLED.setMaxPowerInVoltsAndMilliamps(5, 500); FastLED.setCorrection(TypicalLEDStrip); fill_solid(leds, NUM_LEDS, CRGB::Black); color = CRGB::Orange; diff --git a/src/screen.cpp b/src/screen.cpp index 8635a2a..02de86c 100644 --- a/src/screen.cpp +++ b/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;