FastLED 3.9.15
|
LIB8STATIC uint8_t squarewave8 | ( | uint8_t | in, |
uint8_t | pulsewidth = 128 ) |
Square wave generator.
Useful for turning a one-byte ever-increasing value into a one-byte value that is either 0 or 255. The width of the output "pulse" is determined by the pulsewidth argument:
The output looking like:
in | input value |
pulsewidth | width of the output pulse |
Definition at line 802 of file lib8tion.h.
References LIB8STATIC.