blink1-control
|
#include <PatternCommand.hpp>
Public Member Functions | |
FadeCommand (blink1_lib::PatternLineN fadeParams) | |
void | execute (blink1_lib::Blink1Device &device) override |
Public Attributes | |
blink1_lib::PatternLineN | fadeParams |
Fades the blink(1) device (1 or all LEDs, depending on the value of N in fadeParams) to a new color according to the parameters passed in the constructor
|
explicit |
Constructor
fadeParams | Information about the fade (color and duration) |
|
overridevirtual |
Executes the fade command on the given device.
device | The blink(1) device to execute on |
Implements blink1_control::config::PatternCommand.
blink1_lib::PatternLineN blink1_control::config::FadeCommand::fadeParams |
All information needed to do the fade is held in this object