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

◆ setup()

void setup ( )

Definition at line 94 of file Fire2023.ino.

94 {
95
96 //Serial.begin(115200);
97 // Adjust this for you own setup. Use the hardware SPI pins if possible.
98 // On Teensy 3.1/3.2 the pins are 11 & 13
99 // Details here: https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
100 // In case you see flickering / glitching leds, reduce the data rate to 12 MHZ or less
101 auto screenMap = makeScreenMap();
102 FastLED.addLeds<NEOPIXEL, PIXELPIN>(leds, NUM_LEDS).setScreenMap(screenMap); // Pin für Neopixel
103 FastLED.setBrightness(BRIGHTNESS);
104 FastLED.setDither(DISABLE_DITHER);
105}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
#define BRIGHTNESS
Definition Blur.ino:8
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
ScreenMap makeScreenMap()
Definition Fire2023.ino:116
#define PIXELPIN
Definition Fire2023.ino:34
ScreenMap screenMap
Definition FxSdCard.ino:60
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:138
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:11

References BRIGHTNESS, DISABLE_DITHER, FastLED, leds, makeScreenMap(), NUM_LEDS, PIXELPIN, and screenMap.

+ Here is the call graph for this function: