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)
CRGB leds[NUM_LEDS]
#define NUM_LEDS
CPixelView< CRGB > CRGBSet
CPixelView specialized for CRGB pixel arrays - the most commonly used pixel view type.
Definition pixelset.h:59
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:569
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:679
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86
See also
CPixelView for full API documentation

Definition at line 59 of file pixelset.h.