zerog2k / stc_diyclock

STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
MIT License
170 stars 67 forks source link

added hourly chime support #43

Closed venustrg closed 4 years ago

venustrg commented 4 years ago

i like to have a hourly chime in my clock but not so annoying as in original firmware, just a short beep. also i like functionality and logic of your firmware. so here is the patch for hourly chime support. chime display is right after alarm, both displays are with timeout when not adjusting. 12h/24h supported, dot1/dot3 are pm indicators for start/stop hours, dot2 - chime on/off, shown only at chime display.

works fine with my STC15W404AS.

of course, chime can be disabled with WITHOUT_CHIME at compile time.

venustrg commented 4 years ago

when using super capacitor (like 0.47F/5.5V) instead of cr1220 just define WITH_CAPACITOR for activating ds1302 trickle charging mechanism. shouldn't be used with lithium batteries like crXXXX to avoid damages.

zerog2k commented 4 years ago

nice... apologies I haven't gotten around yet to test and merge, but I hope to have some time in the next week or so as things slow down at work for holidays...