Updated Mapping (markdown)
This commit is contained in:
parent
3a39ab43c7
commit
16e1866eb9
12
Mapping.md
12
Mapping.md
|
@ -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
|
||||
]}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue