ESPHome
2024.12.2
esphome
esphome
components
key_provider
key_provider.cpp
Go to the documentation of this file.
1
#include "
key_provider.h
"
2
3
namespace
esphome
{
4
namespace
key_provider {
5
6
void
KeyProvider::add_on_key_callback
(std::function<
void
(uint8_t)> &&callback) {
7
this->
key_callback_
.add(std::move(callback));
8
}
9
10
void
KeyProvider::send_key_
(uint8_t key) { this->
key_callback_
.call(key); }
11
12
}
// namespace key_provider
13
}
// namespace esphome
esphome::key_provider::KeyProvider::send_key_
void send_key_(uint8_t key)
Definition:
key_provider.cpp:10
esphome::key_provider::KeyProvider::key_callback_
CallbackManager< void(uint8_t)> key_callback_
Definition:
key_provider.h:17
esphome::key_provider::KeyProvider::add_on_key_callback
void add_on_key_callback(std::function< void(uint8_t)> &&callback)
Definition:
key_provider.cpp:6
key_provider.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
Generated by
1.8.13