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

◆ loop()

void loop ( )

Definition at line 63 of file simple.h.

63 {
65 triggered = button.clicked();
66 if (triggered) {
67 FL_WARN("Triggered");
68 }
69 x = pointX.as_int();
70 y = pointY.as_int();
71 leds[xyMap(x, y)] = fl::CRGB(255, 0, 0);
72
73 FastLED.show();
74}
fl::XYMap xyMap
fl::CRGB leds[NUM_LEDS]
int y
Definition simple.h:93
bool triggered
Definition simple.h:94
int x
Definition simple.h:92
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UISlider pointY("Point Y", HEIGHT/2.0f, 0.0f, HEIGHT - 1, 1.0f)
fl::UISlider pointX("Point X", WIDTH/2.0f, 0.0f, WIDTH - 1, 1.0f)
#define FL_WARN(X)
Definition log.h:276
fl::CRGB CRGB
Definition video.h:15
void clear(CRGB(&arr)[N])
Definition clear.h:12
fl::UIButton button("Button")

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

+ Here is the call graph for this function: