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

Function setup

examples/XYPath/direct.h:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53fl::XYPathPtr heartPath = fl::XYPath::NewHeartPath(WIDTH, HEIGHT);
54
55void setup() {
56 Serial.begin(115200);
57 auto screenmap = xyMap.toScreenMap();
58 screenmap.setDiameter(.2);
59 FastLED.addLeds<NEOPIXEL, 2>(leds, NUM_LEDS).setScreenMap(screenmap);
60}
61
62void loop() {
63 // leds(x,y) = fl::CRGB(255, 0, 0);

Callers

nothing calls this directly

Calls 4

setDiameterMethod · 0.80
beginMethod · 0.45
toScreenMapMethod · 0.45
setScreenMapMethod · 0.45

Tested by

no test coverage detected