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

◆ sin16lut()

static FASTLED_FORCE_INLINE i16 fl::sin16lut ( u16 angle)
static

Definition at line 54 of file sin32.h.

54 {
55 u8 angle256 = angle / 256;
56 i32 subAngle = angle % 256;
57 return (sinArray[angle256] * (256 - subAngle) +
58 sinArray[angle256 + 1] * subAngle) /
59 256;
60}
unsigned char u8
Definition int.h:17
const i16 * sinArray
Definition sin32.cpp:46

References FASTLED_FORCE_INLINE, and sinArray.