FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 60 of file FxLedmapper32x32.ino.

60 {
61 Serial.begin(115200);
62 Serial.println("FxLedmapper32x32 setup");
63
64 if (!filesystem.beginSd(CHIP_SELECT_PIN)) {
65 Serial.println("Failed to initialize file system.");
66 gError = true;
67 return;
68 }
69
70 if (!filesystem.readScreenMap("data/screenmap.json", "strip1", &screenMap)) {
71 Serial.println("Failed to read data/screenmap.json");
72 gError = true;
73 return;
74 }
75
77 .setCorrection(TypicalLEDStrip)
78 .setScreenMap(screenMap);
79 FastLED.setBrightness(DEFAULT_BRIGHTNESS);
80
81 video = filesystem.openVideo("data/video1.rgb", NUM_LEDS, VIDEO_FPS,
83 if (!video) {
84 FL_WARN("Failed to open data/video1.rgb");
85 gError = true;
86 return;
87 }
88
90 FastLED.show();
91 Serial.println("FxLedmapper32x32 ready");
92}
CRGB leds[1]
#define COLOR_ORDER
#define NUM_LEDS
#define LED_PIN
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::Video video(NUM_LEDS, 2.0f)
fl::FileSystem filesystem
#define VIDEO_FRAME_HISTORY
bool gError
#define VIDEO_FPS
#define CHIP_SELECT_PIN
#define DEFAULT_BRIGHTNESS
#define LED_TYPE
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NO_EXCEPT
Fill a range of LEDs with a solid color.
Definition fill.cpp.hpp:9
fl::ScreenMap screenMap
Definition Corkscrew.h:101
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
#define FL_WARN(...)
Definition log.h:440
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Definition crgb.h:517
#define Serial
Definition serial.h:304

References fl::CRGB::Black, CHIP_SELECT_PIN, COLOR_ORDER, DEFAULT_BRIGHTNESS, FastLED, filesystem, fill_solid(), FL_WARN, gError, LED_PIN, LED_TYPE, leds, NUM_LEDS, screenMap, Serial, TypicalLEDStrip, video, VIDEO_FPS, and VIDEO_FRAME_HISTORY.

+ Here is the call graph for this function: