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

Added TM1637 support and more MQTT features #346

Open giddyhup opened 4 years ago

giddyhup commented 4 years ago

Added support for TM1637 seven-segment clock (e.g. to serve as a radio alarm clock).

Pins are defined in TM1637.h.

The colon between the second and third digit can be controlled via commands ("dotson" / "dotsoff"; e.g. to show that the alarm is active). Brightness can be controlled via command ("brightness=[0-7]"). These new commands report back via MQTT so that the clock's state can be stored (e.g. in Node RED) and restored via MQTT.

Added commands "realstop" and "realresume" to give finite commands and not just toggle the playback.

Added status message which is published when setup is complete ("ESP32 Radio is up.")

giddyhup commented 4 years ago

The idea is to have an internet radio alarm clock which can be remotely controlled (e.g. via a cron job). Of course, integrating the whole alarm function could be another approach.

Not yet included: