Skip to content

Added TM1637 support and more MQTT features#346

Open
giddyhup wants to merge 5 commits intoEdzelf:masterfrom
giddyhup:master
Open

Added TM1637 support and more MQTT features#346
giddyhup wants to merge 5 commits intoEdzelf:masterfrom
giddyhup:master

Conversation

@giddyhup
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Author

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:

  • state restore after reboot (the radio should not play on boot)
  • pins, brightness, dots state settings via config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant