zerog2k / stc_diyclock

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

hourly chime #42

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

diyclock_chime_1224.diff.txt

zerog2k commented 4 years ago

hi @venustrg, please submit any patches as a pull-request thanks

venustrg commented 4 years ago

did so

zerog2k commented 4 years ago

fixed with #43