// SPDX-License-Identifier: BSD-2-Clause #include "led_controller.h" // Internal LED buffer — FastLED writes to this array, then pushes it to the strip. static CRGB leds[NUM_LEDS]; void leds_begin() { FastLED.addLeds(leds, NUM_LEDS); FastLED.setBrightness(MAX_BRIGHTNESS); FastLED.clear(true); // clear + show: strip starts fully off } void leds_apply_color(CRGB color) { #if ACTIVE_PATTERN == PATTERN_SOLID // All LEDs show the same color. fill_solid(leds, NUM_LEDS, color); // To add a new pattern, add a new #define in config.h and a new branch here. // The pattern receives 'leds', 'NUM_LEDS', and the blended 'color' for this frame. #endif } void leds_show() { FastLED.show(); }