15#include "math_macros.h"
21#define COLOR_ORDER GRB
28void make_map(
int stepx,
int stepy,
int num, std::vector<pair_xy_float>* _map) {
31 std::vector<pair_xy_float>& map = *_map;
32 for (int16_t i = 0; i < num; i++) {
40 for (
CRGB& c : leds) {
43 for (
CRGB& c : leds2) {
47 std::vector<pair_xy_float> map;
48 make_map(1, 1, NUM_LEDS, &map);
51 std::vector<pair_xy_float> map2;
52 make_map(-1, -1, NUM_LEDS, &map2);
56 .setScreenMap(screenmap);
59 .setScreenMap(screenmap2);
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void setBrightness(uint8_t scale)
Set the global brightness scaling.
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Representation of an RGB pixel (Red, Green, Blue)