FastLED 3.9.15
Loading...
Searching...
No Matches
FxDemoReel100.ino
Go to the documentation of this file.
1// @filter: (memory is large)
2
12
13#include <FastLED.h>
15#include "fl/math/screenmap.h"
16
17#define DATA_PIN 3
18//#define CLK_PIN 4
19#define LED_TYPE WS2811
20#define COLOR_ORDER GRB
21#define NUM_LEDS 64
22
24
25#define BRIGHTNESS 96
26#define FRAMES_PER_SECOND 120
27#define USES_RGBW 0
28
29#if USES_RGBW
31#else
32fl::Rgbw rgbwMode = fl::RgbwInvalid(); // No RGBW mode, just use RGB.
33#endif
34
36
37void setup() {
39
40 // tell FastLED about the LED strip configuration
42 .setCorrection(TypicalLEDStrip)
43 .setScreenMap(screenMap)
44 .setRgbw(rgbwMode);
45
46 // set master brightness control
47 FastLED.setBrightness(BRIGHTNESS);
48}
49
50void loop()
51{
52 // Run the DemoReel100 draw function
54
55 // send the 'leds' array out to the actual LED strip
56 FastLED.show();
57 // insert a delay to keep the framerate modest
58 FastLED.delay(1000/FRAMES_PER_SECOND);
59}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define BRIGHTNESS
#define DATA_PIN
Definition ClientReal.h:82
#define FRAMES_PER_SECOND
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::DemoReel100Ptr demoReel
void setup()
fl::Rgbw rgbwMode
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.
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38