fix(led-driver): phase-lock pattern timers
Made-with: Cursor
This commit is contained in:
@@ -28,6 +28,6 @@ class Blink:
|
||||
# "Off" phase: turn all LEDs off
|
||||
self.driver.fill((0, 0, 0))
|
||||
state = not state
|
||||
last_update = current_time
|
||||
last_update = utime.ticks_add(last_update, delay_ms)
|
||||
# Yield once per tick so other logic can run
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user