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 99 of file wave_simulation_real.cpp.

99 {
100 if (x >= length) {
101 FASTLED_WARN("warning X value too high");
102 return;
103 }
104 int16_t *curr = (whichGrid == 0) ? grid1.data() : grid2.data();
105 curr[x + 1] = float_to_fixed(value);
106}
int x
Definition Audio.ino:71
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: