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#include "fl/screenmap.h"
4
5using namespace fl;
6
7#define DATA_PIN 3
8#define LED_TYPE WS2811
9#define COLOR_ORDER GRB
10#define NUM_LEDS 200
11#define BRIGHTNESS 255
12
15
16void setup() {
18
19 // tell FastLED about the LED strip configuration
21 .setCorrection(TypicalLEDStrip)
22 .setScreenMap(screenMap)
23 .setDither(BRIGHTNESS < 255);
24
25 // set master brightness control
26 FastLED.setBrightness(BRIGHTNESS);
27}
28
29void loop() {
30 pride.draw(Fx::DrawContext(millis(), leds));
31 FastLED.show();
32}
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
fl::ScreenMap screenMap
void setup()
Pride2015 pride(NUM_LEDS)
void loop()
_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:33
@ 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:55