Add Docker deployment support, richer Selenium/LED pattern tests, in-browser diagnostics, responsive UI improvements, and 16x16 panel simulation tooling to speed iteration and hardware-style prototyping. Made-with: Cursor
21 lines
427 B
Python
21 lines
427 B
Python
"""Chase pattern demo using led_patterns helpers."""
|
|
|
|
from machine import Pin
|
|
import neopixel
|
|
import time
|
|
|
|
from led_patterns import chase_frame
|
|
|
|
|
|
np = neopixel.NeoPixel(Pin(4), 24)
|
|
|
|
for frame in range(120):
|
|
frame_colors = chase_frame(len(np), frame, color=(0, 220, 255), tail=(0, 40, 55))
|
|
for i, color in enumerate(frame_colors):
|
|
np[i] = color
|
|
np.write()
|
|
time.sleep(0.05)
|
|
|
|
np.fill((0, 0, 0))
|
|
np.write()
|