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

◆ geti16Previous()

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

Definition at line 275 of file wave_simulation.cpp.

275 {
276 if (!has(x))
277 return 0;
278 uint8_t mult = MAX(1, mMultiplier);
279 int32_t sum = 0;
280 for (uint32_t i = 0; i < mult; ++i) {
281 sum += mSim->geti16Previous(x * mult + i);
282 }
283 return static_cast<int16_t>(sum / mult);
284}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:82
fl::scoped_ptr< WaveSimulation1D_Real > mSim
bool has(size_t x) const
#define MAX(a, b)
Definition math_macros.h:11

References has(), MAX, mMultiplier, mSim, and x.

Referenced by geti16All().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: