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

◆ geti16()

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

Definition at line 208 of file wave_simulation.cpp.

208 {
209 if (!has(x))
210 return 0;
211 int32_t sum = 0;
212 for (uint32_t i = 0; i < multiplier; ++i) {
213 sum += sim->geti16(x * multiplier + i);
214 }
215 return static_cast<int16_t>(sum / multiplier);
216}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
bool has(size_t x) const
fl::scoped_ptr< WaveSimulation1D_Real > sim

References has(), multiplier, sim, and x.

Referenced by geti16All(), geti8(), and getu8().

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