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

◆ setup()

void setup ( )

Definition at line 73 of file EaseInOut.h.

73 {
74 Serial.begin(115200);
75 Serial.println("FastLED Ease16InOutQuad Demo - Simple Curve Visualization");
76
77 // Add LEDs and set screen map
78 auto *controller =
80
81 // Convert XYMap to ScreenMap and set it on the controller
82 fl::ScreenMap screenMap = xyMap.toScreenMap();
83 screenMap.setDiameter(.5); // Set LED diameter for visualization
84 controller->setScreenMap(screenMap);
85
86 // Configure FastLED
87 FastLED.setBrightness(BRIGHTNESS);
88 FastLED.setCorrection(TypicalLEDStrip);
89 FastLED.setDither(BRIGHTNESS < 255);
90
91 // Set default dropdown selection to "In-Out Quad" (index 3)
92 easeTypeDropdown.setSelectedIndex(3);
93}
#define COLOR_ORDER
fl::XYMap xyMap
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define BRIGHTNESS
#define DATA_PIN
Definition ClientReal.h:82
fl::UIDropdown easeTypeDropdown("Ease Type", easeOptions)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
#define LED_TYPE
fl::ScreenMap screenMap
Definition Corkscrew.h:101
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
Definition color.h:15
#define Serial
Definition serial.h:304

References BRIGHTNESS, COLOR_ORDER, controller, DATA_PIN, easeTypeDropdown(), FastLED, LED_TYPE, leds, NUM_LEDS, screenMap, Serial, TypicalLEDStrip, and xyMap.

+ Here is the call graph for this function: