Implement full parameter sending on pattern change and periodic updates

- Send all parameters when pattern changes (may require 2 packets if >200 bytes)
- Send periodic parameter updates every 8 beats to keep bars synchronized
- Beat packets remain minimal for performance
- All packets stay under 230-byte limit
This commit is contained in:
2025-09-18 21:58:39 +12:00
parent 36dfda74b2
commit fcbe9e9094
3 changed files with 200 additions and 21 deletions

View File

@@ -199,14 +199,16 @@ class App:
"pulse": "💥",
"flicker": "",
"alternating": "↔️",
"n_chase": "🏃",
"n chase": "🏃",
"rainbow": "🌈",
"radiate": "🌟",
"sequential\npulse": "🔄",
"alternating\nphase": "",
"-": "",
}
bank1_patterns = [
"pulse", "flicker", "alternating", "n_chase",
"rainbow", "radiate", "-", "-",
"pulse", "flicker", "alternating", "n chase",
"rainbow", "radiate", "sequential\npulse", "alternating\nphase",
"-", "-", "-", "-",
"-", "-", "-", "-",
]