diff --git a/esphome/components/fastled_base/__init__.py b/esphome/components/fastled_base/__init__.py index 1e70e14f10..11e8423258 100644 --- a/esphome/components/fastled_base/__init__.py +++ b/esphome/components/fastled_base/__init__.py @@ -40,9 +40,6 @@ async def new_fastled_light(config): if CONF_MAX_REFRESH_RATE in config: cg.add(var.set_max_refresh_rate(config[CONF_MAX_REFRESH_RATE])) + cg.add_library("fastled/FastLED", "3.9.16") await light.register_light(var, config) - # https://github.com/FastLED/FastLED/blob/master/library.json - # 3.3.3 has an issue on ESP32 with RMT and fastled_clockless: - # https://github.com/esphome/issues/issues/1375 - cg.add_library("fastled/FastLED", "3.3.2") return var diff --git a/esphome/components/fastled_base/fastled_light.cpp b/esphome/components/fastled_base/fastled_light.cpp index 486364d0c0..3ecdee61b1 100644 --- a/esphome/components/fastled_base/fastled_light.cpp +++ b/esphome/components/fastled_base/fastled_light.cpp @@ -34,7 +34,7 @@ void FastLEDLightOutput::write_state(light::LightState *state) { this->mark_shown_(); ESP_LOGVV(TAG, "Writing RGB values to bus..."); - this->controller_->showLeds(); + this->controller_->showLeds(this->state_parent_->current_values.get_brightness() * 255); } } // namespace fastled_base diff --git a/platformio.ini b/platformio.ini index 656202e372..a2d5d27faf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -63,7 +63,7 @@ lib_deps = Wire ; i2c (Arduino built-int) heman/AsyncMqttClient-esphome@1.0.0 ; mqtt esphome/ESPAsyncWebServer-esphome@3.3.0 ; web_server_base - fastled/FastLED@3.3.2 ; fastled_base + fastled/FastLED@3.9.16 ; fastled_base mikalhart/TinyGPSPlus@1.0.2 ; gps freekode/TM1651@1.0.1 ; tm1651 glmnet/Dsmr@0.7 ; dsmr