Loading [MathJax]/extensions/tex2jax.js
SensESP 3.1.0
Universal Signal K sensor toolkit ESP32
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sensesp::LEDPattern Class Reference

#include <sensesp/system/led_blinker.h>

Public Member Functions

 LEDPattern ()
 
 LEDPattern (const std::vector< LEDPatternFragment > &fragments)
 
 LEDPattern (const std::initializer_list< LEDPatternFragment > &fragments)
 
LEDPatternoperator= (const LEDPattern &other)
 
bool apply (CRGB &crgb, bool oneshot=false)
 

Protected Attributes

std::vector< LEDPatternFragmentfragments_
 
uint32_t current_fragment_idx_ = 0
 
unsigned long fragment_begin_ms_ = 0
 

Detailed Description

Definition at line 125 of file led_blinker.h.

Constructor & Destructor Documentation

◆ LEDPattern() [1/3]

sensesp::LEDPattern::LEDPattern ( )
inline

Definition at line 127 of file led_blinker.h.

◆ LEDPattern() [2/3]

sensesp::LEDPattern::LEDPattern ( const std::vector< LEDPatternFragment > & fragments)
inline

Definition at line 128 of file led_blinker.h.

◆ LEDPattern() [3/3]

sensesp::LEDPattern::LEDPattern ( const std::initializer_list< LEDPatternFragment > & fragments)
inline

Definition at line 130 of file led_blinker.h.

Member Function Documentation

◆ apply()

bool sensesp::LEDPattern::apply ( CRGB & crgb,
bool oneshot = false )
inline

Definition at line 141 of file led_blinker.h.

Here is the caller graph for this function:

◆ operator=()

LEDPattern & sensesp::LEDPattern::operator= ( const LEDPattern & other)
inline

Definition at line 136 of file led_blinker.h.

Member Data Documentation

◆ current_fragment_idx_

uint32_t sensesp::LEDPattern::current_fragment_idx_ = 0
protected

Definition at line 169 of file led_blinker.h.

◆ fragment_begin_ms_

unsigned long sensesp::LEDPattern::fragment_begin_ms_ = 0
protected

Definition at line 170 of file led_blinker.h.

◆ fragments_

std::vector<LEDPatternFragment> sensesp::LEDPattern::fragments_
protected

Definition at line 168 of file led_blinker.h.


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