14 Commits

Author SHA1 Message Date
07cd592566 Mix forward-only and bidirectional n_chase patterns 2025-10-26 22:25:38 +13:00
2228b23a53 Remove blink from random test 2025-10-26 22:12:49 +13:00
1f33fff665 Change random test duration to 1-5 mins 2025-10-26 22:09:38 +13:00
e91b291dc6 Remove off from random test 2025-10-26 22:05:52 +13:00
2db9b3464a Add random test suite 2025-10-26 21:33:31 +13:00
8345b31caf Refactor n_chase pattern for bidirectional movement
- Updated n_chase to support bidirectional movement with n3 and n4 parameters
- n3 controls forward steps per direction change
- n4 controls backward steps per direction change
- Pattern alternates between moving forward n3 steps and backward n4 steps
- Each direction repeats for the specified number of steps before switching
- Added test/9.py with n1=20, n2=20, n3=20, n4=-5 parameters
- Updated to run as a thread-based pattern similar to other patterns
2025-10-26 20:39:28 +13:00
dce2954114 Refactor rainbow pattern to travel along the length of LED strip
- Modified rainbow() to distribute colors along the physical length
- Each LED gets a different hue based on its position
- n1 parameter controls how many times the rainbow cycles (nodes)
- Split rainbow tests into test/rainbow/ directory with 9 numbered test files
- Each test runs forever until interrupted
- Added main.py to run all tests in sequence repeatedly
2025-10-26 20:19:21 +13:00
b13ec01561 Add flicker and n_chase patterns, increase test brightness to 255, add test suites 2025-10-26 18:49:45 +13:00
83cb34d6a8 Add sine brightness pattern 2025-10-26 00:15:53 +13:00
c9449a6d86 Add circle loading pattern 2025-10-25 23:28:01 +13:00
059bd41a59 convert blink to use a thread 2025-10-25 19:53:16 +13:00
d8e853183b main: enforce event-driven behavior; run selected pattern once per message; clarify comments; fix pattern lookup 2025-09-17 20:20:41 +12:00
8cfb3e156b patterns: add rainbow, specto, and radiate (out then dark-out)
radiate: origins every n1, step by delay, stop when full, dark wave outward, ensure strip off at end, run once

alternating: use n1 as ON width and n2 as OFF width; phase via self.step

pulse: attack (n1), hold (delay), decay (n2); stop at end

tests: add specto sweep (n1_sequence) and radiate demo; include n index per message; use nested {name:{...}} schema; support iterations/repeat-delay
2025-09-16 22:28:51 +12:00
d599af271b patterns: alternating uses n1 (on) and n2 (off); ensure visible ON color; return delay; phase via self.step
test: WS client sends nested {name:{...}}; add iterations and repeat-delay; include n per message; use n1/n2 for alternating
2025-09-16 21:22:47 +12:00