ESPHome
2025.2.2
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
d
e
f
i
j
l
m
n
p
q
r
s
t
u
v
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
d
o
p
s
t
v
w
+
Enumerations
b
c
e
f
i
m
n
p
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Functions
_
a
l
m
o
s
t
u
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
esphome
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
{
8
namespace
tm1638 {
9
10
class
TM1638OutputLed
:
public
output::BinaryOutput
,
public
Component
{
11
public
:
12
void
dump_config
()
override
;
13
14
void
set_tm1638
(
TM1638Component
*tm1638) {
tm1638_
= tm1638; }
15
void
set_lednum
(
int
led) {
led_
= led; }
16
17
protected
:
18
void
write_state
(
bool
state
)
override
;
19
20
TM1638Component
*
tm1638_
;
21
int
led_
;
22
};
23
24
}
// namespace tm1638
25
}
// namespace esphome
esphome::tm1638::TM1638Component
Definition:
tm1638.h:23
esphome::tm1638::TM1638OutputLed
Definition:
tm1638_output_led.h:10
esphome::Component
Definition:
component.h:68
binary_output.h
esphome::tm1638::TM1638OutputLed::set_lednum
void set_lednum(int led)
Definition:
tm1638_output_led.h:15
esphome::output::BinaryOutput
Definition:
binary_output.h:18
esphome::tm1638::TM1638OutputLed::led_
int led_
Definition:
tm1638_output_led.h:21
esphome::tm1638::TM1638OutputLed::set_tm1638
void set_tm1638(TM1638Component *tm1638)
Definition:
tm1638_output_led.h:14
esphome::tm1638::TM1638OutputLed::dump_config
void dump_config() override
Definition:
tm1638_output_led.cpp:11
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
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
state
bool state
Definition:
fan.h:34
Generated by
1.8.13