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>
15 lines
472 B
C
15 lines
472 B
C
// SPDX-License-Identifier: BSD-2-Clause
|
|
#pragma once
|
|
#include <FastLED.h>
|
|
#include "config.h"
|
|
|
|
// Initialize the LED strip. Call once in setup().
|
|
void leds_begin();
|
|
|
|
// Apply 'color' to all LEDs using the pattern defined in config.h (ACTIVE_PATTERN).
|
|
// Call leds_show() afterwards to push the update to the physical strip.
|
|
void leds_apply_color(CRGB color);
|
|
|
|
// Flush the LED buffer to the physical strip. Call once per frame after leds_apply_color().
|
|
void leds_show();
|