SensESP 3.2.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::SystemStatusLed Class Reference

Monochromatic system status LED. More...

#include <sensesp/system/system_status_led.h>

Inheritance diagram for sensesp::SystemStatusLed:
[legend]

Public Member Functions

 SystemStatusLed (uint8_t pin, uint8_t brightness=255)
Public Member Functions inherited from sensesp::BaseSystemStatusLed
 BaseSystemStatusLed ()
ValueConsumer< SystemStatus > & get_system_status_consumer ()
ValueConsumer< int > & get_delta_tx_count_consumer ()

Protected Member Functions

void show () override
void set_brightness (uint8_t brightness) override
Protected Member Functions inherited from sensesp::BaseSystemStatusLed
virtual void set_wifi_no_ap ()
virtual void set_wifi_disconnected ()
virtual void set_ws_disconnected ()
virtual void set_ws_authorizing ()
virtual void set_ws_connecting ()
virtual void set_ws_connected ()

Protected Attributes

uint8_t pin_
PWMOutput pwm_output_ {pin_, -1, 2000, 8}
uint8_t brightness_
Protected Attributes inherited from sensesp::BaseSystemStatusLed
CRGB leds_ [1] = {CRGB::Black}
std::unique_ptr< LEDBlinkerblinker_

Additional Inherited Members

Public Attributes inherited from sensesp::BaseSystemStatusLed
LambdaConsumer< SystemStatussystem_status_consumer_

Detailed Description

Monochromatic system status LED.

Definition at line 108 of file system_status_led.h.

Constructor & Destructor Documentation

◆ SystemStatusLed()

sensesp::SystemStatusLed::SystemStatusLed ( uint8_t pin,
uint8_t brightness = 255 )
inline

Definition at line 110 of file system_status_led.h.

Here is the call graph for this function:

Member Function Documentation

◆ set_brightness()

void sensesp::SystemStatusLed::set_brightness ( uint8_t brightness)
inlineoverrideprotectedvirtual

Implements sensesp::BaseSystemStatusLed.

Definition at line 136 of file system_status_led.h.

◆ show()

void sensesp::SystemStatusLed::show ( )
inlineoverrideprotectedvirtual

Implements sensesp::BaseSystemStatusLed.

Definition at line 125 of file system_status_led.h.

Here is the call graph for this function:

Member Data Documentation

◆ brightness_

uint8_t sensesp::SystemStatusLed::brightness_
protected

Definition at line 124 of file system_status_led.h.

◆ pin_

uint8_t sensesp::SystemStatusLed::pin_
protected

Definition at line 120 of file system_status_led.h.

◆ pwm_output_

PWMOutput sensesp::SystemStatusLed::pwm_output_ {pin_, -1, 2000, 8}
protected

Definition at line 122 of file system_status_led.h.


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