Close

Update: Code optimization and feature to display seconds

A project log for Alarm Clock with Remote USB Interface

A device I designed to fuse 74-series logic with an ATmega328PB microcontroller

zachary-murtishiZachary Murtishi 12/21/2024 at 20:370 Comments

For this update to the firmware, I added a mode that displays the number of seconds in the current minute. I thought this would be useful for my purposes as I'm always wondering how many seconds are in the current minute - the clock has the data, but not a good way to display it in addition to the current time. I thought the best way to implement this would be to make it a separate display mode. As always, I also added support for this mode to be activated through the remote interface.

I also collapsed the separate lampTest and dimmedLights flags into a single displayMode flag for changing the display mode. This display mode can either allow the showing of normal time, display the digits for a lamp test, dim the display, or show the number of seconds counted in the current minute.

Discussions