blink1-control
blink1_control::config::FadeCommand Struct Reference

#include <PatternCommand.hpp>

Inheritance diagram for blink1_control::config::FadeCommand:
blink1_control::config::PatternCommand

Public Member Functions

 FadeCommand (blink1_lib::PatternLineN fadeParams)
 
void execute (blink1_lib::Blink1Device &device) override
 

Public Attributes

blink1_lib::PatternLineN fadeParams
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FadeCommand()

blink1_control::config::FadeCommand::FadeCommand ( blink1_lib::PatternLineN  fadeParams)
explicit

Constructor

Parameters
fadeParamsInformation about the fade (color and duration)

Member Function Documentation

◆ execute()

void blink1_control::config::FadeCommand::execute ( blink1_lib::Blink1Device &  device)
overridevirtual

Executes the fade command on the given device.

Parameters
deviceThe blink(1) device to execute on

Implements blink1_control::config::PatternCommand.

Member Data Documentation

◆ fadeParams

blink1_lib::PatternLineN blink1_control::config::FadeCommand::fadeParams

All information needed to do the fade is held in this object


The documentation for this struct was generated from the following file: