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.get() : grid1.get();
84 return prev[x + 1];
85}
int x
Definition Audio.ino:71
fl::scoped_array< int16_t > grid2
fl::scoped_array< int16_t > grid1
#define FASTLED_WARN
Definition warn.h:7

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