FastLED 3.9.15
Loading...
Searching...
No Matches
OctoWS2811Demo.h
Go to the documentation of this file.
1
2
3
7
8#define USE_OCTOWS2811
9#include <OctoWS2811.h>
10#include <FastLED.h>
11
12#define NUM_LEDS_PER_STRIP 64
13#define NUM_STRIPS 8
14
16
17// Pin layouts on the teensy 3:
18// OctoWS2811: 2,14,7,8,6,20,21,5
19
20void setup() {
22 FastLED.setBrightness(32);
23}
24
25void loop() {
26 static uint8_t hue = 0;
27 for(int i = 0; i < NUM_STRIPS; i++) {
28 for(int j = 0; j < NUM_LEDS_PER_STRIP; j++) {
29 leds[(i*NUM_LEDS_PER_STRIP) + j] = CHSV((32*i) + hue+j,192,255);
30 }
31 }
32
33 // Set the first n leds on each strip to show which strip it is
34 for(int i = 0; i < NUM_STRIPS; i++) {
35 for(int j = 0; j <= i; j++) {
37 }
38 }
39
40 hue++;
41
42 FastLED.show();
43 FastLED.delay(10);
44}
CRGB leds[NUM_LEDS]
uint8_t hue
#define NUM_LEDS_PER_STRIP
Definition ColorBoost.h:51
#define NUM_STRIPS
Definition ColorBoost.h:52
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
@ OCTOWS2811
Definition FastLED.h:139
central include file for FastLED, defines the CFastLED class/object
void setup()
void loop()
@ 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
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition hsv.h:15