fix(led-driver): phase-lock pattern timers
Made-with: Cursor
This commit is contained in:
@@ -118,7 +118,8 @@ class Chase:
|
||||
# Increment step
|
||||
step_count += 1
|
||||
self.driver.step = step_count
|
||||
last_update = current_time
|
||||
last_update = utime.ticks_add(last_update, transition_duration)
|
||||
transition_duration = max(10, int(preset.d))
|
||||
|
||||
# Yield once per tick so other logic can run
|
||||
yield
|
||||
|
||||
Reference in New Issue
Block a user