ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
tm1638
output
tm1638_output_led.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/output/binary_output.h
"
5
#include "
../tm1638.h
"
6
7
namespace
esphome::tm1638
{
8
9
class
TM1638OutputLed
:
public
output::BinaryOutput
,
public
Component
{
10
public
:
11
void
dump_config
()
override
;
12
13
void
set_tm1638
(
TM1638Component
*tm1638) {
tm1638_
= tm1638; }
14
void
set_lednum
(
int
led) {
led_
= led; }
15
16
protected
:
17
void
write_state
(
bool
state
)
override
;
18
19
TM1638Component
*
tm1638_
;
20
int
led_
;
21
};
22
23
}
// namespace esphome::tm1638
binary_output.h
esphome::Component
Definition
component.h:145
esphome::output::BinaryOutput
Definition
binary_output.h:17
esphome::tm1638::TM1638Component
Definition
tm1638.h:23
esphome::tm1638::TM1638OutputLed
Definition
tm1638_output_led.h:9
esphome::tm1638::TM1638OutputLed::tm1638_
TM1638Component * tm1638_
Definition
tm1638_output_led.h:19
esphome::tm1638::TM1638OutputLed::set_lednum
void set_lednum(int led)
Definition
tm1638_output_led.h:14
esphome::tm1638::TM1638OutputLed::set_tm1638
void set_tm1638(TM1638Component *tm1638)
Definition
tm1638_output_led.h:13
esphome::tm1638::TM1638OutputLed::dump_config
void dump_config() override
Definition
tm1638_output_led.cpp:10
esphome::tm1638::TM1638OutputLed::led_
int led_
Definition
tm1638_output_led.h:20
esphome::tm1638::TM1638OutputLed::write_state
void write_state(bool state) override
Definition
tm1638_output_led.cpp:8
component.h
state
bool state
Definition
fan.h:2
esphome::tm1638
Definition
tm1638_key.cpp:3
tm1638.h
Generated by
1.12.0