Commit Graph

16 Commits

Author SHA1 Message Date
David Thurstenson 30eb0372e0 Added font support to enlarge the timer display 2023-08-10 07:58:39 -05:00
David Thurstenson adc3e61069 Catch a case where the user submits 0:00 as set time, and actually give the user feedback when long-pressing the button before starting the timer 2023-08-10 06:21:55 -05:00
David Thurstenson 06df87ee19 Added initial display implementation 2022-10-23 13:54:33 -05:00
David Thurstenson e47c2babe1 Move time sign (-/+) into prettytime(), and move the countdown pause functionality to its own function 2022-10-20 00:21:46 -05:00
David Thurstenson 32d339c0fa Added rotary encoder example with debouncer 2022-10-19 23:46:01 -05:00
David Thurstenson 2ec2951415 Switch to using adafruit_debouncer instead of failing to roll my own 2022-10-19 23:42:31 -05:00
David Thurstenson d90a17d79a Add main loop, add i2c rotary encoder, timer pause logic (still needs work), and prettytime() 2022-10-19 18:14:46 -05:00
David Thurstenson 3b31ab8ef1 Updating comments 2022-10-19 18:09:35 -05:00
David Thurstenson ab000a200f Added rotary encoder example 2022-10-19 12:36:37 -05:00
David Thurstenson fc4620cbd0 Added missing lib import for adafruit_datetime 2022-10-19 12:30:19 -05:00
David Thurstenson dcd0246843 Catch a couple special cases
- Light the first pixel on timer start
- Wait to light the last pixel until timer has truly elapsed
2022-10-15 07:10:32 -05:00
David Thurstenson 5637ec322a Tweak the display time to use datetime.timedelta() instead of rolling my own with divmod() and friends 2022-10-15 07:07:49 -05:00
David Thurstenson fb617a5eec Switch loop direction from count-up to count-down
Also:
 - Let countdown() go negative
 - Don't update neopixels when time is negative
 - Print current time to console every update period
 - Set colormode="fill" as default in colorizer()
2022-10-10 00:17:52 -05:00
David Thurstenson 7097136a57 Added neopixel rainbow example 2022-10-09 22:30:46 -05:00
David Thurstenson 58e5c94d8a Adding functionality to get pairity with colorbar-sleep.py, adding comments, and other small fixes 2022-10-03 02:21:03 -05:00
David Thurstenson 856af97eb3 Initial Commit 2022-10-02 20:03:44 -05:00