mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 17:54:13 +01:00
esp32_rmt_led_strip bugfixes (#6506)
This commit is contained in:
parent
0ba4e8c0ba
commit
857b8ef363
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ class ESP32RMTLEDStripLightOutput : public light::AddressableLight {
|
||||||
protected:
|
protected:
|
||||||
light::ESPColorView get_view_internal(int32_t index) const override;
|
light::ESPColorView get_view_internal(int32_t index) const override;
|
||||||
|
|
||||||
size_t get_buffer_size_() const { return this->num_leds_ * (3 + this->is_rgbw_); }
|
size_t get_buffer_size_() const { return this->num_leds_ * (this->is_rgbw_ || this->is_wrgb_ ? 4 : 3); }
|
||||||
|
|
||||||
uint8_t *buf_{nullptr};
|
uint8_t *buf_{nullptr};
|
||||||
uint8_t *effect_data_{nullptr};
|
uint8_t *effect_data_{nullptr};
|
||||||
|
|
|
@ -48,7 +48,7 @@ CHIPSETS = {
|
||||||
"WS2812": LEDStripTimings(400, 1000, 1000, 400),
|
"WS2812": LEDStripTimings(400, 1000, 1000, 400),
|
||||||
"SK6812": LEDStripTimings(300, 900, 600, 600),
|
"SK6812": LEDStripTimings(300, 900, 600, 600),
|
||||||
"APA106": LEDStripTimings(350, 1360, 1360, 350),
|
"APA106": LEDStripTimings(350, 1360, 1360, 350),
|
||||||
"SM16703": LEDStripTimings(300, 900, 1360, 350),
|
"SM16703": LEDStripTimings(300, 900, 900, 300),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue