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
binary_sensor
tm1638_key.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/binary_sensor/binary_sensor.h
"
4
#include "../tm1638.h"
5
6
namespace
esphome
{
7
namespace
tm1638 {
8
9
class
TM1638Key
:
public
binary_sensor::BinarySensor
,
public
KeyListener
{
10
public
:
11
void
set_keycode
(uint8_t key_code) {
key_code_
= key_code; };
12
void
keys_update
(uint8_t keys)
override
;
13
14
protected
:
15
uint8_t
key_code_
{0};
16
};
17
18
}
// namespace tm1638
19
}
// namespace esphome
esphome::tm1638::KeyListener
Definition:
tm1638.h:14
esphome::tm1638::TM1638Key
Definition:
tm1638_key.h:9
binary_sensor.h
esphome::tm1638::TM1638Key::set_keycode
void set_keycode(uint8_t key_code)
Definition:
tm1638_key.h:11
esphome::tm1638::TM1638Key::keys_update
void keys_update(uint8_t keys) override
Definition:
tm1638_key.cpp:6
esphome::tm1638::TM1638Key::key_code_
uint8_t key_code_
Definition:
tm1638_key.h:15
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::binary_sensor::BinarySensor
Base class for all binary_sensor-type classes.
Definition:
binary_sensor.h:37
Generated by
1.8.13