ESPHome
2024.3.1
esphome
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
tm1638_output_led.h
esphome::tm1638::TM1638Component::set_led
uint8_t uint8_t void set_led(int led_pos, bool led_on_off)
Definition:
tm1638.cpp:115
esphome::spi::TAG
const char *const TAG
Definition:
spi.cpp:8
esphome::tm1638::TM1638OutputLed::led_
int led_
Definition:
tm1638_output_led.h:21
esphome::tm1638::TM1638OutputLed::dump_config
void dump_config() override
Definition:
tm1638_output_led.cpp:11
esphome
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition:
a01nyub.cpp:7
esphome::tm1638::TM1638OutputLed::write_state
void write_state(bool state) override
Definition:
tm1638_output_led.cpp:9
esphome::tm1638::TM1638OutputLed::tm1638_
TM1638Component * tm1638_
Definition:
tm1638_output_led.h:20
log.h
state
bool state
Definition:
fan.h:34
Generated by
1.8.13