11eb2584ef
Arduino Uno + WS2812B LED strip controller with a text-based lightshow system. Shows are defined as .txt files (hex color + fade duration per step), converted to PROGMEM headers by convert_all.py, and navigated at runtime via a debounced button (tap/double-tap/hold). BSD 2-Clause license. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
853 B
Plaintext
25 lines
853 B
Plaintext
// Example: party mode — rapid color flashes
|
|
//
|
|
// Trick: to HOLD a color for N ms, add a second step with the same color
|
|
// and set that step's duration to N. The "fade from red to red" is invisible.
|
|
//
|
|
// Format: #RRGGBB, duration_ms
|
|
|
|
#FF0000, 0 // snap to red
|
|
#FF0000, 150 // hold red 150ms
|
|
#FF8800, 0 // snap to orange
|
|
#FF8800, 150 // hold orange 150ms
|
|
#FFFF00, 0 // snap to yellow
|
|
#FFFF00, 150 // hold yellow 150ms
|
|
#00FF00, 0 // snap to green
|
|
#00FF00, 150 // hold green 150ms
|
|
#00FFFF, 0 // snap to cyan
|
|
#00FFFF, 150 // hold cyan 150ms
|
|
#0000FF, 0 // snap to blue
|
|
#0000FF, 150 // hold blue 150ms
|
|
#FF00FF, 0 // snap to magenta
|
|
#FF00FF, 150 // hold magenta 150ms
|
|
#FFFFFF, 0 // snap to white
|
|
#FFFFFF, 150 // hold white 150ms
|
|
#000000, 500 // fade to off — brief pause before looping
|