19#include "fl/screenmap.h"
20#include "fl/math_macros.h"
26#define COLOR_ORDER GRB
33void make_map(
int stepx,
int stepy,
int num, std::vector<pair_xy_float>* _map) {
36 std::vector<pair_xy_float>& map = *_map;
37 for (int16_t i = 0; i < num; i++) {
38 map.push_back(pair_xy_float{x, y});
45 for (
CRGB& c : leds) {
48 for (
CRGB& c : leds2) {
52 std::vector<pair_xy_float> map;
53 make_map(1, 1, NUM_LEDS, &map);
54 ScreenMap screenmap = ScreenMap(map.data(), map.size());
56 std::vector<pair_xy_float> map2;
57 make_map(-1, -1, NUM_LEDS, &map2);
58 ScreenMap screenmap2 = ScreenMap(map2.data(), map2.size());
61 .setScreenMap(screenmap);
64 .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)