FastLED 3.9.15
|
LIB8STATIC uint8_t triwave8 | ( | uint8_t | in | ) |
Triangle wave generator.
Useful for turning a one-byte ever-increasing value into a one-byte value that oscillates up and down.
On AVR this function takes just three cycles.
Definition at line 746 of file lib8tion.h.
References LIB8STATIC.
Referenced by cubicwave8(), and quadwave8().