FastLED 3.9.15
Loading...
Searching...
No Matches

◆ sin16lut()

static FASTLED_FORCE_INLINE int16_t fl::sin16lut ( uint16_t angle)
static

Definition at line 54 of file sin32.h.

55{
56 uint8_t angle256 = angle / 256;
57 int32_t subAngle = angle % 256;
58 return (sinArray[angle256] * (256 - subAngle) + sinArray[angle256 + 1] * subAngle) / 256;
59}
const int16_t * sinArray
Definition sin32.cpp:31

References FASTLED_FORCE_INLINE, and sinArray.