MoonModules / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi! MoonModules adds features on top of upstream.
https://mm.kno.wled.ge
European Union Public License 1.2
228 stars 70 forks source link

Re-allow ledmap.json to be a valid map for 2D #17

Closed troyhacks closed 1 year ago

troyhacks commented 1 year ago

If we have an existing ledmap.json file with no number, still allow this to be treated as a map for 2D.

This restores the function of ledmap.json for "load by default if it exists" - which assists with E1.31 streaming remapping and other functionality that needs a map on startup.

Still allows for ledmap[1..9].json to be selected and used, but does mean that if the ledmap.json file exists, this is always the map for "Default" - so no option to set back to a pure sequential map.

I don't feel like that breaks any functionality as you can just remove the ledmap.json file if you want to use a default sequential map and optionally manually selected ledmap#.json files.

troyhacks commented 1 year ago

Closing request as the code around all of this is very much in flux at the moment. 👍