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

◆ loop()

void loop ( )

Definition at line 59 of file simple.h.

59 {
61 triggered = button.clicked();
62 if (triggered) {
63 FASTLED_WARN("Triggered");
64 }
65 x = pointX.as_int();
66 y = pointY.as_int();
67 leds[xyMap(x, y)] = CRGB(255, 0, 0);
68
69 FastLED.show();
70}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
int y
Definition Audio.ino:72
bool triggered
Definition Audio.ino:73
int x
Definition Audio.ino:71
XYMap xyMap(WIDTH, HEIGHT, false)
CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:58
UIButton button("Trigger")
void clear(CRGB(&arr)[N])
Definition clear.h:8
UISlider pointX("Point X", WIDTH/2.0f, 0.0f, WIDTH - 1, 1.0f)
UISlider pointY("Point Y", HEIGHT/2.0f, 0.0f, HEIGHT - 1, 1.0f)
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55
#define FASTLED_WARN
Definition warn.h:7

References button, fl::clear(), FastLED, FASTLED_WARN, leds, pointX(), pointY(), triggered, x, xyMap, and y.

+ Here is the call graph for this function: