35#define NUM_LEDS ((WIDTH) * (HEIGHT))
36#define IS_SERPINTINE true
41UIDescription description(
"Shows the use of the Wave2d effect. By default the wave is cyclical on the x-axis and waves will spill over to the other side.");
111 uint32_t idx =
xyMap.mapToIndex(
x,
y);
112 leds[idx] =
CRGB(value8, value8, value8);
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
UISlider extraFrames("Extra Frames", 0.0f, 0.0f, 8.0f, 1.0f)
UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
UIDescription description("Shows the use of the Wave2d effect. By default the wave is cyclical on the x-axis and waves will spill over to the other side.")
UISlider superSample("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)
UICheckbox autoTrigger("Auto Trigger", true)
UICheckbox xCyclical("X Is Cyclical", true)
void triggerRipple(WaveSimulation2D &waveSim)
UITitle title("Wave2D Demo")
UISlider dampening("Dampening", 9.0f, 0.0f, 20.0f, 0.1f)
WaveSimulation2D waveSim(WIDTH, HEIGHT, SUPER_SAMPLE_4X)
UIGroup waveSimControls("Wave Simulation", slider, dampening, halfDuplex, superSample, xCyclical)
SuperSample getSuperSample()
UIButton button("Trigger")
UIGroup triggerControls("Trigger Controls", button, autoTrigger, extraFrames)
UICheckbox halfDuplex("Half Duplex", true)
LED controller for WS2812 LEDs with GRB color order.
UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
UICheckbox halfDuplex("Half Duplex", false)
WaveSimulation1D waveSim(NUM_LEDS, SuperSample::SUPER_SAMPLE_2X)
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
UISlider superSample("SuperSampleExponent", 0.f, 0.f, 3.f, 1.f)
UISlider extraFrames("Extra Frames", 1.0f, 0.0f, 8.0f, 1.0f)
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
UIButton button("Button")
Representation of an RGB pixel (Red, Green, Blue)