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

◆ InitGraphics()

void InitGraphics ( )

Definition at line 10 of file gfx.cpp.

10 {
11 // set the brightness
12 auto* controller = &FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds + 5, NUM_LEDS - 5);
13 fl::ScreenMap screenMap = xyMap.toScreenMap();
14 controller->setScreenMap(screenMap);
15 // use this line only when using a custom size matrix
16 // FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds2, CUSTOM_HEIGHT *
17 // CUSTOM_WIDTH);
18 FastLED.setBrightness(BRIGHTNESS);
19 FastLED.setDither(0);
20}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
XYMap xyMap(WIDTH, HEIGHT, false)
#define BRIGHTNESS
Definition Blur.ino:8
#define COLOR_ORDER
#define LED_PIN
#define CHIPSET
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
fl::ScreenMap screenMap
CLEDController * controller

References BRIGHTNESS, CHIPSET, COLOR_ORDER, controller, FastLED, LED_PIN, leds, NUM_LEDS, screenMap, and xyMap.

Referenced by InitFunky().

+ Here is the caller graph for this function: