10static const uint8_t M5STACK_8ANGLE_NUM_LEDS = 9;
11static const uint8_t M5STACK_8ANGLE_BYTES_PER_LED = 4;
18 memset(this->
color_data_, 0xFF, M5STACK_8ANGLE_NUM_LEDS * M5STACK_8ANGLE_BYTES_PER_LED);
24 int32_t
size()
const override {
return M5STACK_8ANGLE_NUM_LEDS; }
34 uint8_t
color_data_[M5STACK_8ANGLE_NUM_LEDS * M5STACK_8ANGLE_BYTES_PER_LED];
Helper class to easily give an object a parent of type T.
ESPColorAccessor * accessor_
ESPColorCorrection correction_
void clear_effect_data(size_t num_leds)
Zero the effect data of the first num_leds LEDs; does nothing before the effect data is allocated.
Color accessor backed by a buffer whose contents have color correction applied.
This class represents the communication layer between the front-end MQTT layer and the hardware outpu...
This class is used to represent the capabilities of a light.
M5Stack8AngleLightOutput()
light::LightTraits get_traits() override
uint8_t effect_data_[M5STACK_8ANGLE_NUM_LEDS]
light::CorrectedBufferColorAccessor internal_accessor_
int32_t size() const override
void write_state(light::LightState *state) override
uint8_t color_data_[M5STACK_8ANGLE_NUM_LEDS *M5STACK_8ANGLE_BYTES_PER_LED]
void clear_effect_data() override
static constexpr uint8_t RESERVED_WHITE
Value of w for an RGB LED strip that uses 4 bytes per led where the 4th byte is reserved.