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:
2025-10-04 01:10:46 +13:00
parent e516b49eb8
commit ae407ab3aa
3 changed files with 8 additions and 5 deletions

View File

@@ -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