FastLED 3.9.15
Loading...
Searching...
No Matches
FxPride2015.ino
Go to the documentation of this file.
1
10
11#include <FastLED.h>
12#include "fx/1d/pride2015.h"
13#include "fl/screenmap.h"
14
15using namespace fl;
16
17#define DATA_PIN 3
18#define LED_TYPE WS2811
19#define COLOR_ORDER GRB
20#define NUM_LEDS 200
21#define BRIGHTNESS 255
22
25
26void setup() {
28
29 // tell FastLED about the LED strip configuration
31 .setCorrection(TypicalLEDStrip)
32 .setScreenMap(screenMap)
33 .setDither(BRIGHTNESS < 255);
34
35 // set master brightness control
36 FastLED.setBrightness(BRIGHTNESS);
37}
38
39void loop() {
40 pride.draw(Fx::DrawContext(millis(), leds));
41 FastLED.show();
42}
CRGB leds[NUM_LEDS]
#define NUM_LEDS
#define DATA_PIN
#define BRIGHTNESS
Definition Blur.ino:8
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:74
central include file for FastLED, defines the CFastLED class/object
void setup()
Pride2015 pride(NUM_LEDS)
Definition Pride2015.ino:44
void loop()
#define COLOR_ORDER
Definition advanced.h:42
#define LED_TYPE
Definition advanced.h:41
_DrawContext DrawContext
Definition fx.h:21
static ScreenMap DefaultStrip(int numLeds, float cm_between_leds=1.5f, float cm_led_diameter=0.2f, float completion=.9f)
Definition screenmap.h:40
fl::ScreenMap screenMap
Definition Corkscrew.h:103
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:19
IMPORTANT!
Definition crgb.h:20
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86