37 esph_log_config(TAG,
" Data rate: %uMHz", (
unsigned) (this->
data_rate_ / 1000000));
39 esph_log_config(TAG,
" Data rate: %ukHz", (
unsigned) (this->
data_rate_ / 1000));
46#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_VERBOSE
51 esph_log_v(TAG,
"write_state: buf = %s", strbuf);
void mark_failed()
Mark this component as failed.
An STL allocator that uses SPI or internal RAM.
ESPColorAccessor * accessor_
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.
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.
void spi_setup() override
void write_array(const uint8_t *data, size_t length)
light::LightTraits get_traits() override
light::CorrectedBufferColorAccessor internal_accessor_
void dump_config() override
void write_state(light::LightState *state) override
SpiLedStrip(uint16_t num_leds)
constexpr size_t COLOR_DATA_OFFSET
constexpr size_t BUFFER_PADDING
char * format_hex_pretty_to(char *buffer, size_t buffer_size, const uint8_t *data, size_t length, char separator)
Format byte array as uppercase hex to buffer (base implementation).