Tweet

Replying to @josecastillo

real-time clock and external interrupts are in. I’m cribbing a lot of this from Sensor Watch, but nothing more so than the core run loop. one year in, this main.c has stood the test of time. (so far, the app just sits in low-power STANDBY mode and waits for button presses)

(original)