samthiriot / windchime

2 stars 1 forks source link

save alarm into the RTC clock component #7

Closed samthiriot closed 6 years ago

samthiriot commented 6 years ago

so a power outage would not disable it

samthiriot commented 6 years ago

seems like the DS3231 RTC module currently used does not include RAM :-/

samthiriot commented 6 years ago

we might store information into the Arduino EEPROM https://www.arduino.cc/en/Reference/EEPROM

Storing alarm there would make sense when it is changed (avoid writing too often to the EEPROM)

samthiriot commented 6 years ago

we might as well store the alarms into the... alarm registers of the DS3231 http://forum.arduino.cc/index.php?topic=277605.0

samthiriot commented 6 years ago

would also provide the user the possibility to shut it down without bad consequence