From bfb99ccb56b87f59ba93d386156838e9aff2d21b Mon Sep 17 00:00:00 2001 From: lady ada Date: Sun, 27 Dec 2020 13:35:05 -0500 Subject: [PATCH] less blasty output --- MagTag_Kitchen_Timer/code.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MagTag_Kitchen_Timer/code.py b/MagTag_Kitchen_Timer/code.py index 63ab65b0c..526488a82 100644 --- a/MagTag_Kitchen_Timer/code.py +++ b/MagTag_Kitchen_Timer/code.py @@ -53,7 +53,10 @@ while True: magtag.peripherals.neopixels.fill((128, 0, 0)) else: + time.sleep(1) remaining = alarm_time - (time.time() - start) + if (remaining < 0): + remaining = 0 print(remaining) if remaining == 0: magtag.peripherals.neopixels.fill((255, 0, 0))