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

◆ setup()

void setup ( )

Definition at line 93 of file BilinearCompression.ino.

93 {
94 Serial.begin(115200);
95 auto screenmap = xyMap.toScreenMap();
96 screenmap.setDiameter(.2);
97 FastLED.addLeds<NEOPIXEL, 2>(leds, xyMap.getTotal()).setScreenMap(screenmap);
98 auto screenmap2 = xyMap_Dst.toScreenMap();
99 screenmap.setDiameter(.5);
100 screenmap2.addOffsetY(-HEIGHT / 2);
101 FastLED.addLeds<NEOPIXEL, 3>(leds_downscaled, xyMap_Dst.getTotal())
102 .setScreenMap(screenmap2);
104 // Initialize wave simulation. Please don't use static constructors, keep it
105 // in setup().
106 trigger.click();
108}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
XYMap xyMap_Dst(WIDTH/2, HEIGHT/2, false)
XYMap xyMap(WIDTH, HEIGHT, false)
WaveEffect wave_fx
void setupUiCallbacks()
UIButton trigger("Trigger")
#define HEIGHT
CRGB leds_downscaled[NUM_LEDS/4]
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
LED controller for WS2812 LEDs with GRB color order.
Definition FastLED.h:146
WaveEffect NewWaveSimulation2D(const XYMap xymap)
Definition wave.cpp:42

References FastLED, HEIGHT, leds, leds_downscaled, NewWaveSimulation2D(), setupUiCallbacks(), trigger, wave_fx, xyMap, and xyMap_Dst.

+ Here is the call graph for this function: