Skip to content

Commit

Permalink
Fix rp2040_pio_led_strip color modes (#4887)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed May 24, 2023
1 parent 4141100 commit 2e8b4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/rp2040_pio_led_strip/led_strip.h
Expand Up @@ -55,7 +55,7 @@ class RP2040PIOLEDStripLightOutput : public light::AddressableLight {
int32_t size() const override { return this->num_leds_; }
light::LightTraits get_traits() override {
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});
return traits;
}
Expand Down

0 comments on commit 2e8b4fb

Please sign in to comment.