fix(led-driver): phase-lock pattern timers
Made-with: Cursor
This commit is contained in:
@@ -46,6 +46,6 @@ class Rainbow:
|
||||
self.driver.n.write()
|
||||
step = (step + step_amount) % 256
|
||||
self.driver.step = step
|
||||
last_update = current_time
|
||||
last_update = utime.ticks_add(last_update, sleep_ms)
|
||||
# Yield once per tick so other logic can run
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user