FastLED 3.9.3
Loading...
Searching...
No Matches
Pride2015.ino
1#include <FastLED.h>
2#include "fx/1d/pride2015.hpp"
3
4#define DATA_PIN 3
5#define LED_TYPE WS2811
6#define COLOR_ORDER GRB
7#define NUM_LEDS 200
8#define BRIGHTNESS 255
9
10CRGB leds[NUM_LEDS];
11Pride2015Ref pride = Pride2015Ref::New(NUM_LEDS);
12
13void setup() {
14 delay(3000); // 3 second delay for recovery
15
16 // tell FastLED about the LED strip configuration
17 FastLED.addLeds<LED_TYPE,DATA_PIN,COLOR_ORDER>(leds, NUM_LEDS)
18 .setCorrection(TypicalLEDStrip)
19 .setDither(BRIGHTNESS < 255);
20
21 // set master brightness control
22 FastLED.setBrightness(BRIGHTNESS);
23}
24
25void loop() {
26 pride->draw(Fx::DrawContext(millis(), leds));
27 FastLED.show();
28}
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:33
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
Definition FastLED.h:722
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
Definition FastLED.cpp:82
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Definition FastLED.cpp:67
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19
Animated, ever-changing rainbows (Pride2015 effect)
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:39