FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 63 of file FxGfx2Video.ino.

63 {
64 delay(1000); // sanity delay
66 .setCorrection(TypicalLEDStrip)
67 .setScreenMap(xymap);
68 FastLED.setBrightness(BRIGHTNESS);
69
70 // Create memory-backed file handle for streaming video
72
73 video.begin(memoryStream);
74 // Add the video effect to the FxEngine
75 fxEngine.addFx(video);
76}
#define COLOR_ORDER
fl::FxEngine fxEngine(NUM_LEDS)
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define LED_PIN
#define BRIGHTNESS
XYMap xymap
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
const uint32_t BUFFER_SIZE
fl::Video video(NUM_LEDS, 2.0f)
fl::memorybufPtr memoryStream
#define LED_TYPE
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
Definition delay.h:98
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

References BRIGHTNESS, BUFFER_SIZE, COLOR_ORDER, FastLED, fxEngine, LED_PIN, LED_TYPE, leds, fl::make_shared(), memoryStream, NUM_LEDS, TypicalLEDStrip, video, and xymap.

+ Here is the call graph for this function: