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

◆ setup()

void setup ( )

Definition at line 105 of file Fire2023.h.

105 {
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}
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define BRIGHTNESS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define PIXELPIN
Definition Fire2023.h:45
fl::ScreenMap makeScreenMap()
Definition Fire2023.h:127
#define DISABLE_DITHER
Disable dithering.
Definition dither_mode.h:10
fl::ScreenMap screenMap
Definition Corkscrew.h:101

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

+ Here is the call graph for this function: