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

◆ geti16Previous()

int16_t fl::WaveSimulation1D_Real::geti16Previous ( size_t x) const

Definition at line 78 of file wave_simulation_real.cpp.

78 {
79 if (x >= length) {
80 FASTLED_WARN("Out of range.");
81 return 0;
82 }
83 const int16_t *prev = (whichGrid == 0) ? grid2.data() : grid1.data();
84 return prev[x + 1];
85}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, grid1, grid2, length, whichGrid, and x.