13#define STRIP_0_DATA_PIN 1
14#define STRIP_0_CLOCK_PIN 2
15#define STRIP_1_DATA_PIN 3
16#define STRIP_1_CLOCK_PIN 4
19CRGB leds_hd[NUM_LEDS] = {0};
20CRGB leds[NUM_LEDS] = {0};
41uint8_t wrap_8bit(
int i) {
53 for (
int i = 0; i < NUM_LEDS; i++) {
54 uint8_t brightness = map(i, 0, NUM_LEDS - 1, 0, 255);
55 CRGB c(brightness, brightness, brightness);
57 CRGB c_gamma_corrected = software_gamma(c);
58 leds[i] = c_gamma_corrected;
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
@ HD107HD
Same as APA102, but in turbo 40-mhz mode.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
@ RGB
Red, Green, Blue (0012)
LIB8STATIC uint8_t dim8_raw(uint8_t x)
Adjust a scaling value for dimming.
Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
Representation of an RGB pixel (Red, Green, Blue)
uint8_t r
Red channel value.
uint8_t g
Green channel value.
uint8_t b
Blue channel value.