Frank 86b0eeafb7 Ledmaps loading bugfix (wrong size, memory corruption)
* File.readbytesuntil does not terminate strings. So the string buffer needs to be filled with zero's before reading.
* fix crashes (mem corruption) when ledmap file has too many / too few entries.
* initialize unused map places with "identity" (same led) mapping

before fix:
> Reading LED map from /ledmap1.json
> ("width": 60edmap1.json)  ("height": 90edmap1.json)
> resetSegments 1 60x90
> allocLeds (0,0 to 60,90), 16200 from 0
> allocLeds (0,0 to 60,90), 16200 from 6
> deserializeMap 60 x 90 customMappingTable alloc 5400 from 0

after:
> Reading LED map from /ledmap1.json
> ("width": 60)  ("height": 9)
> resetSegments 1 60x9
> allocLeds (0,0 to 60,9), 1620 from 0
> allocLeds (0,0 to 60,9), 1620 from 6
> deserializeMap 60 x 9
> deserializemap customMappingTable alloc 540 from 0
2024-02-20 15:10:25 +01:00
2024-01-29 16:07:54 +01:00
2021-06-14 01:58:12 +02:00
2024-02-08 00:17:00 +01:00
2022-11-09 17:59:31 +01:00
2023-12-29 17:28:52 +01:00
2020-06-22 00:09:00 +02:00
2023-07-26 12:31:24 +02:00
2024-01-29 16:07:54 +01:00
2024-01-29 16:07:54 +01:00
2023-07-25 22:01:13 +02:00

Welcome to WLED MoonModules!

image

MoonModules/WLED is a fork from Aircoookie/WLED which contains latest merge of v0.14 of WLED with additional features.

This fork is created by members of the Atuline/WLED team to make development against v0.14 possible while still preserving Atuline/WLED v0.13.x as a stable and supported version. The Atuline/WLED fork is also called WLED SR (Sound Reactive).

More info here: what-is-moonmodules

HTML tutorial Donations will be used to buy WLED related hardware, software or drinks shared with the contributors of this repo.

Contributing

We welcome contributions to this project! See contributing for more information.

We would like to have this repository in a polite and friendly atmosphere, so please be kind and respectful to others. For more details, look at Code of Conduct.

Disclaimer:

Using this software is the users responsibility as it is not bug free. Therefore contributors of this repo are not reliable for anything including but not limited to spontaneous combustion of the entire led strip, the house and the inevitable heat death of the universe

Description
No description provided
Readme EUPL-1.2 67 MiB
Languages
C++ 81.2%
HTML 7.3%
JavaScript 5.5%
C 2.9%
Python 1.5%
Other 1.5%