FastLED 3.9.15
Loading...
Searching...
No Matches
FxPride2015.ino
Go to the documentation of this file.
1// @filter: (memory is large)
2
12
13#include <FastLED.h>
14#include "fl/fx/1d/pride2015.h"
15#include "fl/math/screenmap.h"
16
17
18#define DATA_PIN 3
19#define LED_TYPE WS2811
20#define COLOR_ORDER GRB
21#define NUM_LEDS 200
22#define BRIGHTNESS 255
23
26
27void setup() {
29
30 // tell FastLED about the LED strip configuration
32 .setCorrection(TypicalLEDStrip)
33 .setScreenMap(screenMap)
34 .setDither(BRIGHTNESS < 255);
35
36 // set master brightness control
37 FastLED.setBrightness(BRIGHTNESS);
38}
39
40void loop() {
42 FastLED.show();
43}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define BRIGHTNESS
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void setup()
fl::Pride2015 pride(NUM_LEDS)
Definition Pride2015.ino:44
void loop()
#define LED_TYPE
::fl::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) FL_NOEXCEPT
fl::ScreenMap screenMap
Definition Corkscrew.h:101
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38