Status LED

See Application::make_status_led().

API Reference

class StatusLEDComponent : public Component

Public Functions

StatusLEDComponent(GPIOPin *pin)
void setup()

Where the component’s initialization should happen.

Analogous to Arduino’s setup(). This method is guaranteed to only be called once. Defaults to doing nothing.

void dump_config()
void loop()

This method will be called repeatedly.

Analogous to Arduino’s loop(). setup() is guaranteed to be called before this. Defaults to doing nothing.

float get_setup_priority() const

priority of setup().

higher -> executed earlier

Defaults to 0.

The setup priority of this component

float get_loop_priority() const

priority of loop().

higher -> executed earlier

Defaults to 0.

The loop priority of this component

Protected Attributes

GPIOPin *pin_
StatusLEDComponent *global_status_led