ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
tm1638
output
tm1638_output_led.cpp
Go to the documentation of this file.
1
#include "
tm1638_output_led.h
"
2
#include "
esphome/core/log.h
"
3
4
namespace
esphome
{
5
namespace
tm1638 {
6
7
static
const
char
*
const
TAG
=
"tm1638.led"
;
8
9
void
TM1638OutputLed::write_state
(
bool
state
) {
tm1638_
->
set_led
(
led_
,
state
); }
10
11
void
TM1638OutputLed::dump_config
() {
12
LOG_BINARY_OUTPUT(
this
);
13
ESP_LOGCONFIG(TAG,
" LED: %d"
,
led_
);
14
}
15
16
}
// namespace tm1638
17
}
// namespace esphome
esphome::tm1638::TM1638Component::set_led
uint8_t uint8_t void set_led(int led_pos, bool led_on_off)
Definition
tm1638.cpp:115
esphome::tm1638::TM1638OutputLed::tm1638_
TM1638Component * tm1638_
Definition
tm1638_output_led.h:20
esphome::tm1638::TM1638OutputLed::dump_config
void dump_config() override
Definition
tm1638_output_led.cpp:11
esphome::tm1638::TM1638OutputLed::led_
int led_
Definition
tm1638_output_led.h:21
esphome::tm1638::TM1638OutputLed::write_state
void write_state(bool state) override
Definition
tm1638_output_led.cpp:9
state
bool state
Definition
fan.h:0
log.h
esphome::spi::TAG
const char *const TAG
Definition
spi.cpp:8
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
tm1638_output_led.h
Generated by
1.12.0