Updated Mapping (markdown)

This commit is contained in:
Aircoookie 2021-05-06 02:29:23 +02:00
parent 3a39ab43c7
commit 16e1866eb9
1 changed files with 6 additions and 6 deletions

View File

@ -11,20 +11,20 @@ Use this edit page to create a file called `ledmap.json`.
`ledmap.json` file needs to be a JSON formatted file with the the key being "map" and the value being an array of numbers representing the new order of pixels. The _position_ of values in the array is the "natural" order of LEDs and the value entered is the new position.
The ArduinoJSON library is *****extremely***** white-space sensitive.
If your `ledmap.json` file is not working, check for white-spaces where they should not be.
If your `ledmap.json` file is not working, check for white-spaces where they should not be. The LED positions are zero-indexed.
### Examples
In the below example (formatted multiple ways), we remap a strip of four LEDs from a physical order of 1 2 3 4 into a new order of 1 3 2 4.
In the below example (formatted multiple ways), we remap a strip of four LEDs from a physical order of 0 1 2 3 into a new order of 0 2 1 3.
{"map":[1,3,2,4]}
{"map":[0,2,1,3]}
{"map":[
1,3,2,4
0,2,1,3
]}
{"map":[
1,3,
2,4
0,2,
1,3
]}