ESPHome 2025.5.0
Loading...
Searching...
No Matches
adalight_light_effect.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <vector>
8
9namespace esphome {
10namespace 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:
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
unsigned int get_frame_size_(int led_count) const
void blank_all_leds_(light::AddressableLight &it)
Frame parse_frame_(light::AddressableLight &it)
void reset_frame_(light::AddressableLight &it)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7