FastLED 3.9.15
Loading...
Searching...
No Matches

◆ CRGBSet

CPixelView specialized for CRGB pixel arrays - the most commonly used pixel view type.

CRGBSet provides all the functionality of CPixelView optimized for CRGB pixels. This is the primary interface for working with LED strips in FastLED.

Quick Start:

// Basic operations
pixels[0] = CRGB::Red;
pixels.fill_solid(CRGB::Blue);
pixels.fadeToBlackBy(64);
// Advanced effects
pixels(0, 10).fill_rainbow(0, 25); // Rainbow on first 10 LEDs
pixels(20, 10).blur1d(128); // Blur segment (reverse order)
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
fl::CRGB CRGB
Definition crgb.h:25
CPixelView< CRGB > CRGBSet
CPixelView specialized for CRGB pixel arrays - the most commonly used pixel view type.
Definition pixelset.h:51
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:622
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:512
See also
CPixelView for full API documentation

Definition at line 51 of file pixelset.h.