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

◆ setup()

void setup ( )

Definition at line 105 of file Luminova.h.

105 {
108 FastLED.setBrightness(BRIGHTNESS);
109 FastLED.clear(true);
110 // When user adjusts UI, reflect into model speed
111 // Provide screen map to UI with a specific LED diameter
114 : fl::XYMap::constructRectangularGrid(WIDTH, HEIGHT);
115 fl::ScreenMap screenmap = xy.toScreenMap();
116 screenmap.setDiameter(0.15f);
117 controller->setScreenMap(screenmap);
118 // init particles as "dead"
119 for (int i = 0; i < MAXP; ++i)
120 ps[i].alive = false;
121}
#define COLOR_ORDER
#define NUM_LEDS
fl::CRGB leds[NUM_LEDS]
#define BRIGHTNESS
fl::ScreenMap screenmap
#define DATA_PIN
Definition ClientReal.h:82
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CLEDController * controller
#define kMatrixSerpentineLayout
unsigned int xy(unsigned int x, unsigned int y)
#define WIDTH
#define LED_TYPE
#define HEIGHT
static XYMap constructSerpentine(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
Definition xymap.cpp.hpp:53
fl::CLEDController CLEDController
static const int MAXP
Definition Luminova.h:56
P ps[MAXP]
Definition Luminova.h:57
Base definition for an LED controller.
Definition crgb.hpp:179

References BRIGHTNESS, COLOR_ORDER, fl::XYMap::constructRectangularGrid(), fl::XYMap::constructSerpentine(), controller, DATA_PIN, FastLED, HEIGHT, kMatrixSerpentineLayout, LED_TYPE, leds, MAXP, NUM_LEDS, ps, screenmap, WIDTH, and xy().

+ Here is the call graph for this function: