arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

Berry `Leds` uses native WS2812 driver by default #21406

Closed s-hadinger closed 4 months ago

s-hadinger commented 4 months ago

Description:

Improve coexistence between native WS2812 feature and Berry Leds.

You can now initialize var leds = Leds() (with no parameter) to take by default the GPIO and size configures in Tasmota (WS2812-1 and Pixels size).

For backwards compatibility, it also uses the native driver if the GPIO configured is the same as the WS2812-1 in template.

Additionally:

Checklist:

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass