8#define STRIP_DATA_PIN 1
9#define STRIP_CLOCK_PIN 2
11CRGB leds[NUM_LEDS] = {0};
19uint8_t wrap_8bit(
int i) {
31 for (
int i = 0; i < NUM_LEDS; i++) {
32 uint8_t brightness = map(i, 0, NUM_LEDS - 1, 0, 255);
33 CRGB c(brightness, brightness, brightness);
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
@ APA102
APA102 LED chipset.
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.
Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
Representation of an RGB pixel (Red, Green, Blue)