receiver: no change to protocol; revert temporary color-index handling; radiate uses ticks_us timing; development: ensure dev.py upload workflow retained
This commit is contained in:
@@ -263,8 +263,8 @@ class Patterns(PatternBase): # Inherit from PatternBase
|
||||
if lit_total >= self.num_leds:
|
||||
break
|
||||
# wait self.delay ms before next ring
|
||||
start = utime.ticks_ms()
|
||||
while utime.ticks_diff(utime.ticks_ms(), start) < self.delay:
|
||||
start = utime.ticks_us()
|
||||
while utime.ticks_diff(utime.ticks_us(), start) < self.delay:
|
||||
pass
|
||||
radius += 1
|
||||
|
||||
@@ -279,8 +279,8 @@ class Patterns(PatternBase): # Inherit from PatternBase
|
||||
if 0 <= right < self.num_leds:
|
||||
self.n[right] = (0, 0, 0)
|
||||
self.n.write()
|
||||
start = utime.ticks_ms()
|
||||
while utime.ticks_diff(utime.ticks_ms(), start) < self.delay:
|
||||
start = utime.ticks_us()
|
||||
while utime.ticks_diff(utime.ticks_us(), start) < self.delay:
|
||||
pass
|
||||
|
||||
# ensure all LEDs are off at completion
|
||||
|
||||
Reference in New Issue
Block a user