![]() |
FastFX
1.1.0
LED Strip Animation and Effects Framework for Arduino
|
#include <FFXAutoFader.h>
Public Member Functions | |
FFXAutoFader () | |
FFXAutoFader (uint8_t initValue) | |
virtual | ~FFXAutoFader () |
bool | isFading () |
bool | isUpdated () |
uint8_t | getTarget () |
void | setTarget (uint8_t newTarget) |
uint8_t | getValue () |
void | update (CRGBSet &pixels) |
virtual void | onUpdate (CRGBSet &pixels)=0 |
void | setInterval (uint16_t ms) |
uint16_t | getInterval () |
void | updateFader () |
FFXAutoFader - Abstract class to implement timed fading. Abstract method onUpdate( CRGBSet& ) should be overriden in descendant classes to implement the "effect". The update() method is included in looping to "track" the status of the fader. Target attribute always refers to the desired/set value (0-255), while the Value attribute refers to the current value. Upon a call to setTarget(), the fader will move consistently from its current value to the target value over the desired interval.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in FFXAFDimmer, and FFXAFXFader.
|
inline |
void FFXAutoFader::setTarget | ( | uint8_t | newTarget | ) |
|
inline |
void FFXAutoFader::updateFader | ( | ) |