MCPcopy Create free account
hub / github.com/FastLED/FastLED / setup

Function setup

examples/ColorBoost/ColorBoost.h:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 fl::XYMap::constructRectangularGrid(WIDTH, HEIGHT);
57
58void setup() {
59
60 // tell FastLED about the LED strip configuration
61 FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS)
62 .setCorrection(TypicalLEDStrip)
63 .setScreenMap(xyMap);
64 // set master brightness control
65 FastLED.setBrightness(BRIGHTNESS);
66
67 // Set default dropdown selections
68 saturationFunction.setSelectedIndex(1); // "In Quad"
69 luminanceFunction.setSelectedIndex(0); // "None"
70}
71
72fl::EaseType getEaseType(int value) {
73 switch (value) {

Callers

nothing calls this directly

Calls 4

setScreenMapMethod · 0.45
setCorrectionMethod · 0.45
setBrightnessMethod · 0.45
setSelectedIndexMethod · 0.45

Tested by

no test coverage detected