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