| 71 | } |
| 72 | |
| 73 | void setup() { |
| 74 | Serial.begin(115200); |
| 75 | Serial.println("FastLED Ease16InOutQuad Demo - Simple Curve Visualization"); |
| 76 | |
| 77 | // Add LEDs and set screen map |
| 78 | auto *controller = |
| 79 | &FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS); |
| 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 | } |
| 94 | |
| 95 | void loop() { |
| 96 | // Clear the matrix using fl::clear for LedsXY |
nothing calls this directly
no test coverage detected