|
FastLED 3.9.15
|
Definition at line 55 of file time_alpha.h.
#include <time_alpha.h>
Inheritance diagram for fl::TimeRamp:
Collaboration diagram for fl::TimeRamp:Public Member Functions | |
| TimeRamp (u32 risingTime, u32 latchMs, u32 fallingTime) | |
| bool | isActive (u32 now) const override |
| void | trigger (u32 now) override |
| Call this when you want to (re)start the ramp cycle. | |
| void | trigger (u32 now, u32 risingTime, u32 latchMs, u32 fallingTime) |
| u8 | update8 (u32 now) override |
| Compute current 0–255 output based on how much time has elapsed since trigger(). | |
Public Member Functions inherited from fl::TimeAlpha | |
| virtual | ~TimeAlpha ()=default |
| virtual u16 | update16 (u32 now) |
| virtual float | updatef (u32 now) |
Private Attributes | |
| u32 | mFallingTime |
| u32 | mFinishedFallingTime = 0 |
| u32 | mFinishedPlateauTime = 0 |
| u32 | mFinishedRisingTime = 0 |
| u8 | mLastValue = 0 |
| u32 | mLatchMs |
| u32 | mRisingTime |
| u32 | mStart = 0 |