Local Button Control - Resinchem/LED-Matrix-Clock_WS2812b GitHub Wiki

Local Button Control

If you built your clock as described at ResinChem Tech Blog and added the optional button controls, you can control some functions of the clock (primarily display mode, the countdown timer and scoreboard) via these buttons without the need for any external devices.

buttons

Local buttons might be handy in situations, such as games, where you wish to control the clock timer or scoreboard without needing a separate device, like a phone, tablet or laptop. For purposes here, I will be referring to the buttons by "color" as seen in the above picture. But for reference, the button colors, from top to bottom, are Blue, Green and Red. If you wired your buttons differently or used a different boards/pins, you should assure the proper pin settings in the Settings.h file and adjust the information below accordingly to match your build. Note that the toggle switch shown in the above photo is used to toggle between the clock mode and the WLED controller. You can find more info on this in the WLED Dual Controller Option page of the wiki.

Button Functions

The blue button is used to change the current display mode of the clock and cycles between clock->countdown timer->scoreboard->text display->clock. The other button functions vary, based on whether the clock is currently in countdown timer mode or scoreboard mode.

ButtonModes

Note that if you are using MQTT, changing the clock via the local buttons also updates the MQTT states, so that MQTT/Home Assistant stays in sync with the clock even when manually updated via the buttons.