ESPHome  2024.5.4
custom_light_output.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include <vector>
7 
8 namespace esphome {
9 namespace custom {
10 
12  public:
13  CustomLightOutputConstructor(const std::function<std::vector<light::LightOutput *>()> &init) {
14  this->outputs_ = init();
15  }
16 
17  light::LightOutput *get_light(int i) { return this->outputs_[i]; }
18 
19  protected:
20  std::vector<light::LightOutput *> outputs_;
21 };
22 
23 } // namespace custom
24 } // namespace esphome
Interface to write LightStates to hardware.
Definition: light_output.h:12
std::vector< light::LightOutput * > outputs_
CustomLightOutputConstructor(const std::function< std::vector< light::LightOutput *>()> &init)
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
Definition: a01nyub.cpp:7
void init()
Definition: core.cpp:80