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

◆ triggerRipple()

void triggerRipple ( WaveSimulation1D & waveSim,
int x )

Definition at line 49 of file Wave.ino.

49 {
50
51 for (int i = x - 1; i <= x + 1; i++) {
52 if (i < 0 || i >= NUM_LEDS)
53 continue;
54 waveSim.setf(i, -1.f);
55 }
56}
#define NUM_LEDS
Definition Apa102.ino:6
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
WaveSimulation1D waveSim(NUM_LEDS, SuperSample::SUPER_SAMPLE_2X)

References NUM_LEDS, waveSim, and x.