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

◆ geti16()

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

Definition at line 51 of file wave_simulation_real.cpp.

51 {
52 if (x >= length) {
53 FASTLED_WARN("Out of range.");
54 return 0;
55 }
56 const int16_t *curr = (whichGrid == 0) ? grid1.get() : grid2.get();
57 return curr[x + 1];
58}
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.

Referenced by geti8(), and getu8().

+ Here is the caller graph for this function: