25#define NUM_LEDS ((WIDTH) * (HEIGHT))
26#define IS_SERPINTINE true
31UIDescription 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.");
97 uint32_t idx =
xyMap.mapToIndex(
x,
y);
98 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
UITitle title("Wave2D Demo")
XYMap xyMap(WIDTH, HEIGHT, IS_SERPINTINE)
UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
UICheckbox autoTrigger("Auto Trigger", true)
UISlider extraFrames("Extra Frames", 0.0f, 0.0f, 8.0f, 1.0f)
UISlider dampening("Dampening", 9.0f, 0.0f, 20.0f, 0.1f)
UICheckbox halfDuplex("Half Duplex", true)
UIButton button("Trigger")
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.")
SuperSample getSuperSample()
UISlider superSample("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)
UICheckbox xCyclical("X Is Cyclical", true)
WaveSimulation2D waveSim(WIDTH, HEIGHT, SUPER_SAMPLE_4X)
UISlider slider("Speed", 0.18f, 0.0f, 1.0f)
UISlider dampening("Dampening", 6.0f, 0.0f, 10.0f, 0.1f)
UICheckbox halfDuplex("Half Duplex", false)
WaveSimulation1D waveSim(NUM_LEDS, SuperSample::SUPER_SAMPLE_2X)
LED controller for WS2812 LEDs with GRB color order.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
Implements a simple red square effect for 2D LED grids.
Representation of an RGB pixel (Red, Green, Blue)
UICheckbox autoTrigger("Auto Trigger", true)
UIButton button("Trigger")
UICheckbox xCyclical("X Is Cyclical", false)
UISlider superSample("SuperSampleExponent", 1.f, 0.f, 3.f, 1.f)