Add pattern test

This commit is contained in:
2025-10-30 21:42:45 +13:00
parent 44cb35d1aa
commit 12e242724e
12 changed files with 411 additions and 0 deletions

24
test/patterns/off.py Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python3
import utime
from machine import WDT
from settings import Settings
from patterns import Patterns
def run():
s = Settings()
pin = s.get("led_pin", 10)
num = s.get("num_leds", 30)
p = Patterns(pin=pin, num_leds=num)
wdt = WDT(timeout=10000)
p.set_param("pt", "off")
p.tick()
wdt.feed()
utime.sleep_ms(200)
if __name__ == "__main__":
run()