Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
973 stars 229 forks source link

How to start stopped? #355

Open giddyhup opened 4 years ago

giddyhup commented 4 years ago

For my use as a radio alarm clock with a seven-segment display (see my PR) I'd like the radio to not start playback on boot. I tried setting datamode = STOPREQD once at the beginning of loop() but that didn't help. What would be a good way to start silently?

giddyhup commented 4 years ago

Okay. I found a workaround. I use a boolean to skip over mp3loop() in loop(). The boolean can be changed by a command.

I'll leave this issue open to see if there is a better solution. If there isn't, @Edzelf, please feel free to close it.