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

◆ setup()

void setup ( )

Definition at line 96 of file Fire2023.ino.

96 {
97
98 //Serial.begin(115200);
99 // Adjust this for you own setup. Use the hardware SPI pins if possible.
100 // On Teensy 3.1/3.2 the pins are 11 & 13
101 // Details here: https://github.com/FastLED/FastLED/wiki/SPI-Hardware-or-Bit-banging
102 // In case you see flickering / glitching leds, reduce the data rate to 12 MHZ or less
103 auto screenMap = makeScreenMap();
104 FastLED.addLeds<NEOPIXEL, PIXELPIN>(leds, NUM_LEDS).setScreenMap(screenMap); // Pin für Neopixel
105 FastLED.setBrightness(BRIGHTNESS);
106 FastLED.setDither(DISABLE_DITHER);
107}
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
fl::ScreenMap screenMap
ScreenMap makeScreenMap()
Definition Fire2023.ino:118
#define PIXELPIN
Definition Fire2023.ino:36
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:155
#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: