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

◆ sin16lut()

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

Definition at line 53 of file sin32.h.

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

References FASTLED_FORCE_INLINE, and sinArray.