mirror of
https://github.com/esphome/esphome.git
synced 2025-01-09 06:11:44 +01:00
Fix rp2040_pio_led_strip color modes (#4887)
This commit is contained in:
parent
4141100b1c
commit
2e8b4fbdc8
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class RP2040PIOLEDStripLightOutput : public light::AddressableLight {
|
||||||
int32_t size() const override { return this->num_leds_; }
|
int32_t size() const override { return this->num_leds_; }
|
||||||
light::LightTraits get_traits() override {
|
light::LightTraits get_traits() override {
|
||||||
auto traits = light::LightTraits();
|
auto traits = light::LightTraits();
|
||||||
this->is_rgbw_ ? traits.set_supported_color_modes({light::ColorMode::RGB, light::ColorMode::RGB_WHITE})
|
this->is_rgbw_ ? traits.set_supported_color_modes({light::ColorMode::RGB_WHITE, light::ColorMode::WHITE})
|
||||||
: traits.set_supported_color_modes({light::ColorMode::RGB});
|
: traits.set_supported_color_modes({light::ColorMode::RGB});
|
||||||
return traits;
|
return traits;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue