FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ set()

void fl::WaveSimulation1D_Real::set ( size_t x,
float value )

Definition at line 81 of file wave_simulation_real.cpp.

81 {
82 if (x >= length) {
83 FASTLED_WARN("warning X value too high");
84 return;
85 }
86 int16_t *curr = (whichGrid == 0) ? grid1.get() : grid2.get();
87 curr[x + 1] = float_to_fixed(value);
88}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
fl::scoped_array< int16_t > grid2
fl::scoped_array< int16_t > grid1
int16_t float_to_fixed(float f)
#define FASTLED_WARN
Definition warn.h:7

References FASTLED_WARN, fl::wave_detail::float_to_fixed(), grid1, grid2, length, whichGrid, and x.

+ Here is the call graph for this function: