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

◆ loop()

void loop ( )

Definition at line 64 of file simple.h.

64 {
66 triggered = button.clicked();
67 if (triggered) {
68 FASTLED_WARN("Triggered");
69 }
70 x = pointX.as_int();
71 y = pointY.as_int();
72 leds[xyMap(x, y)] = CRGB(255, 0, 0);
73
74 FastLED.show();
75}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
Definition FastLED.cpp:62
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:83
XYMap xyMap
Definition gfx.cpp:8
void clear(CRGB(&arr)[N])
Definition clear.h:13
bool triggered
Definition simple.h:54
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
UIButton button("Trigger")

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

+ Here is the call graph for this function: