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

◆ adjust() [2/2]

static FASTLED_FORCE_INLINE uint8_t DATA_NOP::adjust ( FASTLED_REGISTER uint8_t data,
FASTLED_REGISTER uint8_t scale )
inlinestatic

Hook called to adjust a byte of data before writing it to the output.

Parameters
datainput byte
scalescale value
Returns
input byte rescaled using scale8(uint8_t, uint8_t)

Definition at line 46 of file fastspi_types.h.

46{ return scale8(data, scale); }
UISlider scale("Scale", 4,.1, 4,.1)
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:34

References FASTLED_FORCE_INLINE, FASTLED_REGISTER, scale, and scale8().

+ Here is the call graph for this function: