Files
led-controller/v2/test/env_check.py
T
jimmyandClaude Sonnet 5.5 71bd320661 feat(v2): move web UI into v2, remove legacy MicroPython app
Move the web assets and templates under v2/web, drop the old src/, lib/
and scripts, and update firmware, tools, docs and db files. Add the audio
page, LED test scripts and VPN autoconnect script.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 20:30:02 +13:00

7 lines
418 B
Python

from binary_envelope import pack_binary_envelope_v2
p = {"p":"chase","c":["#ff0000","#0f8"],"d":120,"b":200,"a":False,"n1":5,"n2":-3,"n3":0,"n4":7,"n5":0,"n6":300}
p2 = {"pattern":"on","colors":["#102030"],"delay":0,"brightness":0,"auto":True}
a = pack_binary_envelope_v2(presets={"7":p,"8":p2}, brightness_0_255=128).hex()
b = pack_binary_envelope_v2(select={"mirror":["7"],"roof":["8",12]}).hex()
print(a); print(b)