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

◆ setup()

void setup ( )

Definition at line 75 of file EaseInOut.h.

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

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

+ Here is the call graph for this function: