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

Function setup

examples/Fire2023/Fire2023.h:105–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103fl::ScreenMap makeScreenMap();
104
105void setup() {
106
107 //Serial.begin(115200);
108 // Adjust this for you own setup. Use the hardware SPI pins if possible.
109 // On Teensy 3.1/3.2 the pins are 11 & 13
110 // Details here: https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
111 // In case you see flickering / glitching leds, reduce the data rate to 12 MHZ or less
112 auto screenMap = makeScreenMap();
113 FastLED.addLeds<NEOPIXEL, PIXELPIN>(leds, NUM_LEDS).setScreenMap(screenMap); // Pin für Neopixel
114 FastLED.setBrightness(BRIGHTNESS);
115 FastLED.setDither(DISABLE_DITHER);
116}
117
118void Fire2023(uint32_t now);
119

Callers

nothing calls this directly

Calls 4

setDitherMethod · 0.80
makeScreenMapFunction · 0.70
setScreenMapMethod · 0.45
setBrightnessMethod · 0.45

Tested by

no test coverage detected