FastLED
3.9.15
Loading...
Searching...
No Matches
WS2816.ino
Go to the documentation of this file.
1
7
8
#include <FastLED.h>
9
10
// How many leds in your strip?
11
#define NUM_LEDS 1
12
13
14
#define DATA_PIN 3
15
16
17
// Define the array of leds
18
CRGB
leds
[
NUM_LEDS
];
19
20
void
setup
() {
21
// Uncomment/edit one of the following lines for your leds arrangement.
22
// ## Clockless types ##
23
FastLED
.addLeds<WS2816,
DATA_PIN
>(
leds
,
NUM_LEDS
);
// GRB ordering is assumed
24
}
25
26
void
loop
() {
27
// Turn the LED on, then pause
28
leds
[0] =
CRGB::Red
;
29
FastLED
.show();
30
delay(500);
31
// Now turn the LED off, then pause
32
leds
[0] =
CRGB::Black
;
33
FastLED
.show();
34
delay(500);
35
}
setup
void setup()
Definition
AnalogOutput.ino:65
loop
void loop()
Definition
AnalogOutput.ino:54
NUM_LEDS
#define NUM_LEDS
Definition
Animartrix.ino:79
leds
fl::CRGB leds[NUM_LEDS]
Definition
Animartrix.ino:93
DATA_PIN
#define DATA_PIN
Definition
ClientReal.h:82
FastLED
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition
FastLED.cpp.hpp:75
CRGB
fl::CRGB CRGB
Definition
crgb.h:25
fl::CRGB::Red
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition
crgb.h:622
fl::CRGB::Black
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition
crgb.h:510
examples
WS2816
WS2816.ino
Generated on Tue Jun 16 2026 00:06:58 for FastLED by
1.13.2