ESPHome
2024.11.0
esphome
esphome
components
status_led
status_led.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/core/hal.h
"
5
6
namespace
esphome
{
7
namespace
status_led {
8
9
class
StatusLED
:
public
Component
{
10
public
:
11
explicit
StatusLED
(
GPIOPin
*pin);
12
13
void
pre_setup
();
14
void
dump_config
()
override
;
15
void
loop
()
override
;
16
float
get_setup_priority
()
const override
;
17
float
get_loop_priority
()
const override
;
18
19
protected
:
20
GPIOPin
*
pin_
;
21
};
22
23
extern
StatusLED
*
global_status_led
;
// NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
24
25
}
// namespace status_led
26
}
// namespace esphome
esphome::status_led::StatusLED::StatusLED
StatusLED(GPIOPin *pin)
Definition:
status_led.cpp:12
esphome::status_led::StatusLED::pre_setup
void pre_setup()
Definition:
status_led.cpp:13
esphome::status_led::StatusLED::loop
void loop() override
Definition:
status_led.cpp:22
hal.h
esphome::Component
Definition:
component.h:68
esphome::status_led::StatusLED::get_loop_priority
float get_loop_priority() const override
Definition:
status_led.cpp:32
esphome::status_led::StatusLED
Definition:
status_led.h:9
esphome::status_led::StatusLED::pin_
GPIOPin * pin_
Definition:
status_led.h:20
esphome::status_led::StatusLED::get_setup_priority
float get_setup_priority() const override
Definition:
status_led.cpp:31
esphome::status_led::global_status_led
StatusLED * global_status_led
Definition:
status_led.cpp:10
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::GPIOPin
Definition:
gpio.h:50
esphome::status_led::StatusLED::dump_config
void dump_config() override
Definition:
status_led.cpp:18
Generated by
1.8.13