ESPHome  2024.11.0
adalight_light_effect.h
Go to the documentation of this file.
1 #pragma once
2 
6 
7 #include <vector>
8 
9 namespace esphome {
10 namespace adalight {
11 
13  public:
14  AdalightLightEffect(const std::string &name);
15 
16  void start() override;
17  void stop() override;
18  void apply(light::AddressableLight &it, const Color &current_color) override;
19 
20  protected:
21  enum Frame {
25  };
26 
27  unsigned int get_frame_size_(int led_count) const;
31 
32  uint32_t last_ack_{0};
33  uint32_t last_byte_{0};
34  uint32_t last_reset_{0};
35  std::vector<uint8_t> frame_;
36 };
37 
38 } // namespace adalight
39 } // namespace esphome
void reset_frame_(light::AddressableLight &it)
const char * name
Definition: stm32flash.h:78
Frame parse_frame_(light::AddressableLight &it)
void blank_all_leds_(light::AddressableLight &it)
unsigned int get_frame_size_(int led_count) const
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7