January 14, 2010

Clock Update

I've posted an updated version of the "overkill clock" code.

This update takes care of a major bug in the alarm-sensing code that made any day's alarm go off every day. There's also a couple of minor code-cleanups and the addition of a time-out on the DealWithButton() function. (Without the time-out, accidentally bumping the button in the night prevented the alarm from going off in the morning. Now you have to accidentally bump it twice for the same effect.) One could add the same sort of time-out mechanism to the rest of the user interface code in SetAlarm() and SetClock(), but I chose not to.

1 comment:

  1. Just finished building the Clock Overkill (standalone) and it works awesome. I'm using it in a oak and glass base that will hold a picture frame and illuminate the picture. Thank you so much for posting this project, it was exactly what I was looking for.

    Brad V in MI

    ReplyDelete