FastLED 3.9.15
Loading...
Searching...
No Matches
FxPride2015.ino
Go to the documentation of this file.
1#include <FastLED.h>
2#include "fx/1d/pride2015.h"
3
4using namespace fl;
5
6#define DATA_PIN 3
7#define LED_TYPE WS2811
8#define COLOR_ORDER GRB
9#define NUM_LEDS 200
10#define BRIGHTNESS 255
11
14
15void setup() {
16 delay(3000); // 3 second delay for recovery
17
18 // tell FastLED about the LED strip configuration
20 .setCorrection(TypicalLEDStrip)
21 .setDither(BRIGHTNESS < 255);
22
23 // set master brightness control
24 FastLED.setBrightness(BRIGHTNESS);
25}
26
27void loop() {
28 pride.draw(Fx::DrawContext(millis(), leds));
29 FastLED.show();
30}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
#define BRIGHTNESS
Definition Blur.ino:8
#define COLOR_ORDER
#define LED_TYPE
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
central include file for FastLED, defines the CFastLED class/object
void setup()
Pride2015 pride(NUM_LEDS)
void loop()
_DrawContext DrawContext
Definition fx.h:21
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19
Implements a simple red square effect for 2D LED grids.
Definition crgb.h:16
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54