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

#include <PatternCommand.hpp>

Inheritance diagram for blink1_control::config::WaitCommand:
blink1_control::config::PatternCommand

Public Member Functions

 WaitCommand (std::chrono::milliseconds waitTime)
 
void execute (blink1_lib::Blink1Device &device) override
 

Public Attributes

std::chrono::milliseconds waitTime
 

Detailed Description

Simply sleeps for the specified time. Used to insert delays into patterns.

Constructor & Destructor Documentation

◆ WaitCommand()

blink1_control::config::WaitCommand::WaitCommand ( std::chrono::milliseconds  waitTime)
explicit

Constructor.

Parameters
waitTimeHow long to wait

Member Function Documentation

◆ execute()

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

Executes the sleep.

Parameters
deviceIgnored

Implements blink1_control::config::PatternCommand.

Member Data Documentation

◆ waitTime

std::chrono::milliseconds blink1_control::config::WaitCommand::waitTime

How long to wait


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