Tweet
Replying to @josecastillo
The code! Uses the RTC and a TimeAlarm to update on the minute, so the clock’s always up to date. Also makes use of sleep_memory to keep track of our current mode, since we’re starting from scratch each time we wake up. Clocks in at about 50 lines. Simple! https://gist.github.com/joeycastillo/fbb68032d98b6035c50bfd1ecbdb9a5d
(original)