Edzelf / ESP32-Radio

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

implement a switch in the code #401

Open fetze82 opened 3 years ago

fetze82 commented 3 years ago

Hello,

i guess you can help me. I would like to implement a hardware switch to the internet radio. I will use it to switch change from "internet Radio" to "MP3 Player"

i can not finde how to implement this in the code. Could you please help me.

Thanks Chris

Edzelf commented 3 years ago

You can assign any command to an input pin. See the documentation. Just enter the assignment in the config page of the web interface. For example: gpio_00 = mp3track = 0 This will start the mp3 player on a random track.