|
|
@ -133,50 +133,62 @@ uint8_t StationMenu::select() { |
|
|
|
switch (current_pos) { |
|
|
|
case 0: |
|
|
|
mp3.start("http://streaming.shoutcast.com/80sPlanet?lang=en-US"); |
|
|
|
strcpy(titleStr, string_list[0].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
mp3.start("http://ice1.somafm.com/seventies-128-mp3"); |
|
|
|
strcpy(titleStr, string_list[1].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
mp3.start("http://streaming.radionomy.com/laradiostrong?lang=de"); |
|
|
|
strcpy(titleStr, string_list[2].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
mp3.start("http://184.171.163.20:8162/stream"); |
|
|
|
strcpy(titleStr, string_list[3].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 4: |
|
|
|
mp3.start("http://212.83.129.92:8028/;?type=http&nocache=683"); |
|
|
|
strcpy(titleStr, string_list[4].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 5: |
|
|
|
mp3.start("http://192.99.4.210:3574/stream"); |
|
|
|
strcpy(titleStr, string_list[5].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 6: |
|
|
|
mp3.start("http://188.165.192.5:8279/stream?icy=http"); |
|
|
|
strcpy(titleStr, string_list[6].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 7: |
|
|
|
mp3.start("http://69.167.190.234:8080/stream"); |
|
|
|
strcpy(titleStr, string_list[7].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 8: |
|
|
|
mp3.start("http://192.240.102.133:11790/stream"); |
|
|
|
strcpy(titleStr, string_list[8].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 9: |
|
|
|
mp3.start("http://192.99.41.102:5044/stream"); |
|
|
|
strcpy(titleStr, string_list[9].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 10: |
|
|
|
mp3.start("http://radioessen.cast.addradio.de/radioessen/simulcast/high/stream.mp3"); |
|
|
|
strcpy(titleStr, string_list[10].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 11: |
|
|
|
mp3.start("http://172.16.75.17:8000/mopidy"); |
|
|
|
strcpy(titleStr, string_list[11].c_str()); |
|
|
|
led.changeAnimation(2, 0); |
|
|
|
break; |
|
|
|
case 12: |
|
|
@ -357,9 +369,5 @@ uint8_t AlarmClockScreen::select() { |
|
|
|
} |
|
|
|
|
|
|
|
void SuspendScreen::draw() { |
|
|
|
mp3.stop(); |
|
|
|
led.stop(); |
|
|
|
delay(1000); |
|
|
|
u8g2.setPowerSave(1); |
|
|
|
suspend(30); |
|
|
|
} |
|
|
|