|
FastLED 3.9.15
|
| LIB8STATIC u8 fl::squarewave8 | ( | u8 | in, |
| u8 | pulsewidth = 128 ) |
Square wave generator.
if in < pulsewidth then output is 255 if in >= pulsewidth then output is 0
| in | input value |
| pulsewidth | width of the output pulse |
Definition at line 22 of file squarewave.h.
References FL_NOEXCEPT, and LIB8STATIC.