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

◆ getu8()

uint8_t fl::WaveSimulation1D::getu8 ( size_t x) const

Definition at line 256 of file wave_simulation.cpp.

256 {
257 int16_t value = geti16(x);
258 if (sim->getHalfDuplex()) {
259 uint16_t v2 = static_cast<uint16_t>(value);
260 switch (mU8Mode) {
262 return half_duplex_blend_linear(v2);
265 }
266 }
267 return static_cast<uint8_t>(((static_cast<uint16_t>(value) + 32768)) >> 8);
268}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
int16_t geti16(size_t x) const
U8EasingFunction mU8Mode
fl::scoped_ptr< WaveSimulation1D_Real > sim
@ WAVE_U8_MODE_LINEAR
@ WAVE_U8_MODE_SQRT

References geti16(), mU8Mode, sim, fl::WAVE_U8_MODE_LINEAR, fl::WAVE_U8_MODE_SQRT, and x.

+ Here is the call graph for this function: