ESPHome
2024.12.2
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