Remove unused pattern tests

This commit is contained in:
2025-11-12 19:20:50 +13:00
parent 1962638b81
commit 3dae9363e7
11 changed files with 64 additions and 273 deletions

View File

@@ -1,11 +1,12 @@
#!/usr/bin/env python3
import uasyncio as asyncio
import utime
from machine import WDT
from settings import Settings
from patterns import Patterns
def run():
async def main():
s = Settings()
pin = s.get("led_pin", 10)
num = s.get("num_leds", 30)
@@ -15,20 +16,17 @@ def run():
p.set_param("br", 64)
p.set_param("dl", 200)
p.set_param("cl", [(255, 0, 0), (0, 0, 255)])
p.set_param("pt", "blink")
p.select("blink")
task = asyncio.create_task(p.run())
start = utime.ticks_ms()
while utime.ticks_diff(utime.ticks_ms(), start) < 1500:
p.tick()
wdt.feed()
utime.sleep_ms(10)
p.set_param("pt", "off")
p.tick()
utime.sleep_ms(100)
await asyncio.sleep_ms(10)
await p.stop()
await task
if __name__ == "__main__":
run()
asyncio.run(main())