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

◆ setup()

void setup ( )

Definition at line 44 of file WasmScreenCoords.ino.

44 {
45 for (CRGB& c : leds) {
46 c = CRGB::Blue;
47 }
48 for (CRGB& c : leds2) {
49 c = CRGB::Red;
50 }
51 FastLED.setBrightness(255);
52 std::vector<pair_xy_float> map;
53 make_map(1, 1, NUM_LEDS, &map);
54 ScreenMap screenmap = ScreenMap(map.data(), map.size());
55
56 std::vector<pair_xy_float> map2;
57 make_map(-1, -1, NUM_LEDS, &map2);
58 ScreenMap screenmap2 = ScreenMap(map2.data(), map2.size());
59
61 .setScreenMap(screenmap);
62
64 .setScreenMap(screenmap2);
65}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
#define NUM_LEDS
Definition Apa102.ino:6
CRGB leds2[lengths[RedStrip]]
#define COLOR_ORDER
#define LED_PIN
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
void make_map(int stepx, int stepy, int num, std::vector< pair_xy_float > *_map)
WS2811 controller class.
Definition FastLED.h:241
long map(long x, long in_min, long in_max, long out_min, long out_max)
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
Definition crgb.h:501
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
Definition crgb.h:611
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References CRGB::Blue, COLOR_ORDER, FastLED, LED_PIN, leds, leds2, make_map(), NUM_LEDS, and CRGB::Red.

+ Here is the call graph for this function: