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

◆ update()

uint8_t fl::TimeLinear::update ( uint32_t now)
inlineoverridevirtual

Implements fl::TimeAlpha.

Definition at line 116 of file time_alpha.h.

116 {
117 bool not_started = (mEnd == 0) && (mStart == 0);
118 if (not_started) {
119 // if we have not started, we are not active
120 return 0;
121 }
122 uint8_t out = time_alpha8(now, mStart, mEnd);
123 return out;
124 }
uint32_t mEnd
Definition time_alpha.h:129
uint32_t mStart
Definition time_alpha.h:127
uint8_t time_alpha8(uint32_t now, uint32_t start, uint32_t end)
Definition time_alpha.cpp:8

References mEnd, mStart, and fl::time_alpha8().

+ Here is the call graph for this function: