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

◆ geti16Previous()

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

Definition at line 60 of file wave_simulation_real.cpp.

60 {
61 if (x >= length) {
62 FASTLED_WARN("Out of range.");
63 return 0;
64 }
65 const int16_t *prev = (whichGrid == 0) ? grid2.get() : grid1.get();
66 return prev[x + 1];
67}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
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.