Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TM1637 support and more MQTT features #346

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

giddyhup
Copy link

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
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