ESPHome  2024.5.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
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7