ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
m5stack_8angle_light.cpp
Go to the documentation of this file.
2
3#include "esphome/core/log.h"
4
6
7ESPHOME_LOG_TAG(TAG, "m5stack_8angle.light");
8
10 for (int i = 0; i < M5STACK_8ANGLE_NUM_LEDS;
11 i++) { // write one LED at a time, otherwise the message will be truncated
12 this->parent_->write_register(M5STACK_8ANGLE_REGISTER_RGB_24B + i * M5STACK_8ANGLE_BYTES_PER_LED,
13 this->internal_accessor_.color_data + i * M5STACK_8ANGLE_BYTES_PER_LED,
14 M5STACK_8ANGLE_BYTES_PER_LED);
15 }
16}
17
18} // namespace esphome::m5stack_8angle
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
Definition light_state.h:68
light::CorrectedBufferColorAccessor internal_accessor_
void write_state(light::LightState *state) override
bool state
Definition fan.h:2
ESPHOME_LOG_TAG(TAG, "m5stack_8angle.light")