FastLED 3.9.3
Loading...
Searching...
No Matches
Fast Math Functions

Detailed Description

Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.

Because of the AVR (Arduino) and ARM assembly language implementations provided, using these functions often results in smaller and faster code than the equivalent program using plain "C" arithmetic and logic.

Included are:

Lib8tion is pronounced like 'libation': lie-BAY-shun

Topics

 Basic Math Operations
 Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
 
 Dimming and Brightening Functions
 Functions to dim or brighten data.
 
 Easing Functions
 Specify the rate of change of a parameter over time.
 
 Fast Memory Functions for AVR
 Alternatives to memmove, memcpy, and memset that are faster on AVR than standard avr-libc 1.8.
 
 Fast Random Number Generators
 Fast 8-bit and 16-bit unsigned random number generators.
 
 Fast Trigonometry Functions
 Fast 8-bit and 16-bit approximations of sin(x) and cos(x).
 
 Float-to-Fixed and Fixed-to-Float Conversions
 Functions to convert between floating point and fixed point types.
 
 Linear Interpolation
 Fast linear interpolation functions, such as could be used for Perlin noise, etc.
 
 Scaling Functions
 Fast, efficient 8-bit scaling functions specifically designed for high-performance LED programming.
 
 Waveform Beat Generators
 Waveform generators that reset at a given number of "beats per minute" (BPM).
 
 Waveform Generators
 General purpose wave generator functions.