FastLED 3.9.15
Loading...
Searching...
No Matches
fl::TimeRamp Class Reference

Detailed Description

Definition at line 63 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) FL_NOEXCEPT
 
RampPhase getCurrentPhase (u32 now) const FL_NOEXCEPT
 Get the current phase of the ramp.
 
bool isActive (u32 now) const FL_NOEXCEPT override
 
void trigger (u32 now) FL_NOEXCEPT override
 Call this when you want to (re)start the ramp cycle.
 
u8 update8 (u32 now) FL_NOEXCEPT override
 Compute current 0–255 output based on how much time has elapsed since trigger().
 
- Public Member Functions inherited from fl::TimeAlpha
virtual ~TimeAlpha () FL_NOEXCEPT=default
 
virtual u16 update16 (u32 now) FL_NOEXCEPT
 
virtual float updatef (u32 now) FL_NOEXCEPT
 

Private Attributes

u32 mFallingTime
 
u32 mFinishedFallingTime = 0
 
u32 mFinishedPlateauTime = 0
 
u32 mFinishedRisingTime = 0
 
u8 mLastValue = 0
 
u32 mLatchMs
 
u32 mRisingTime
 
u32 mStart = 0
 

The documentation for this class was generated from the following files: