ESPHome  2024.11.0
key_provider.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace esphome {
7 namespace key_provider {
8 
10 class KeyProvider {
11  public:
12  void add_on_key_callback(std::function<void(uint8_t)> &&callback);
13 
14  protected:
15  void send_key_(uint8_t key);
16 
18 };
19 
20 } // namespace key_provider
21 } // namespace esphome
interface for components that provide keypresses
Definition: key_provider.h:10
CallbackManager< void(uint8_t)> key_callback_
Definition: key_provider.h:17
void add_on_key_callback(std::function< void(uint8_t)> &&callback)
Definition: key_provider.cpp:6
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7