FastLED 3.9.15
Loading...
Searching...
No Matches
WS2816.ino

Note that the WS2816 has a 4 bit gamma correction built in.

Note that the WS2816 has a 4 bit gamma correction built in. As of 3.9.12, no gamma correction in FastLED is applied. However, in the future this could change to improve the color accuracy.

#include <FastLED.h>
// How many leds in your strip?
#define NUM_LEDS 1
#define DATA_PIN 3
// Define the array of leds
void setup() {
// Uncomment/edit one of the following lines for your leds arrangement.
// ## Clockless types ##
FastLED.addLeds<WS2816, DATA_PIN>(leds, NUM_LEDS); // GRB ordering is assumed
}
void loop() {
// Turn the LED on, then pause
FastLED.show();
delay(500);
// Now turn the LED off, then pause
FastLED.show();
delay(500);
}
void setup()
void loop()
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
central include file for FastLED, defines the CFastLED class/object
WS2816 controller class.
Definition FastLED.h:201
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:611
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:499
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54