STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
minor improvements and fixes
thanks to @venustrg
WITHOUT_CHIME
WITH_CAPACITOR
most features working:
code size reduced below 4k - no eeprom needed for this build thanks to @jjmz, @darinfranklin, @ruthsarian, @tux75at, @aFewBits, et al
for STC15W40xAS variants, be sure to pass:
STCGALPROT="stc15" make flash
Note this may not work on all hardware types. Some hardware variations would need to be built manually with options. (No multi-hw building yet...)
Known issue: long press for setting is sometimes missed. We are still working on the button responsiveness.
Thanks to jjmz and hachi.
Now works on STC15W408AS and similar variants.
(need to pass: STCGALPROT="stc15" make flash
)
If using stcgal, you only need main.hex. If you are using STC-ISP, then you will also need eeprom.hex. Look at repo readme for more info.
Support temperature offset calibration. (temp can be adjusted to read +/- 4 degrees)
12/24 hour mode selectable note that hours get reset to zero when toggling between mode, and hours will need to be re-set. (This is due to code space restraints.)