7 Segment Display Countdown
Over the weekend I made a 4 digit 7 segment display countdown timer.
The display driver is the SevSeg library, which I just grabbed for ease of use, on the Raspberry Pi I’ve previously just written the driver myself by mapping letters/numbers to an array of segments with HIGH/LOW states (Youtube link) but that was only a single digit display.
I don’t call the delay() function at all in the code, instead it uses timers and millis() so the button presses are instantly detected and the digits redraw quicker so the countdown happens in realtime – tested with a stopwatch.