~ruther/qmk_firmware

b520b352f952d83eb67187c0e062ce8f0dff1f79 — Sergey Vlasov 2 years ago 884be6c
preonic/rev3{,_drop}: Fix layouts with 2u keys (#21114)

Apparently layouts with 2u keys were not correctly converted into the
`info.json` format (the old C layout macros used the arguments for such
keys multiple times to cover all possible 1u locations; this is not
supported in `info.json`, and the single matrix location for 2u keys was
chosen incorrectly in some cases).  Fix the layout definitions to match
the real PCB wiring.
2 files changed, 6 insertions(+), 6 deletions(-)

M keyboards/preonic/rev3/info.json
M keyboards/preonic/rev3_drop/info.json
M keyboards/preonic/rev3/info.json => keyboards/preonic/rev3/info.json +4 -4
@@ 90,7 90,7 @@
                {"matrix": [8, 2], "x": 2, "y": 4},
                {"matrix": [9, 3], "x": 3, "y": 4},
                {"matrix": [9, 4], "x": 4, "y": 4},
                {"matrix": [9, 5], "x": 5, "y": 4, "w": 2},
                {"matrix": [9, 0], "x": 5, "y": 4, "w": 2},
                {"matrix": [9, 1], "x": 7, "y": 4},
                {"matrix": [9, 2], "x": 8, "y": 4},
                {"matrix": [8, 3], "x": 9, "y": 4},


@@ 223,7 223,7 @@
                {"matrix": [8, 1], "x": 1, "y": 4},
                {"matrix": [8, 2], "x": 2, "y": 4},
                {"matrix": [9, 3], "x": 3, "y": 4},
                {"matrix": [9, 4], "x": 4, "y": 4, "w": 2},
                {"matrix": [9, 5], "x": 4, "y": 4, "w": 2},
                {"matrix": [9, 0], "x": 6, "y": 4},
                {"matrix": [9, 1], "x": 7, "y": 4},
                {"matrix": [9, 2], "x": 8, "y": 4},


@@ 290,8 290,8 @@
                {"matrix": [8, 1], "x": 1, "y": 4},
                {"matrix": [8, 2], "x": 2, "y": 4},
                {"matrix": [9, 3], "x": 3, "y": 4},
                {"matrix": [9, 4], "x": 4, "y": 4, "w": 2},
                {"matrix": [9, 0], "x": 6, "y": 4, "w": 2},
                {"matrix": [9, 5], "x": 4, "y": 4, "w": 2},
                {"matrix": [9, 1], "x": 6, "y": 4, "w": 2},
                {"matrix": [9, 2], "x": 8, "y": 4},
                {"matrix": [8, 3], "x": 9, "y": 4},
                {"matrix": [8, 4], "x": 10, "y": 4},

M keyboards/preonic/rev3_drop/info.json => keyboards/preonic/rev3_drop/info.json +2 -2
@@ 89,7 89,7 @@
                {"matrix": [8, 2], "x": 2, "y": 4},
                {"matrix": [9, 3], "x": 3, "y": 4},
                {"matrix": [9, 4], "x": 4, "y": 4},
                {"matrix": [9, 5], "x": 5, "y": 4, "w": 2},
                {"matrix": [9, 0], "x": 5, "y": 4, "w": 2},
                {"matrix": [9, 1], "x": 7, "y": 4},
                {"matrix": [9, 2], "x": 8, "y": 4},
                {"matrix": [8, 3], "x": 9, "y": 4},


@@ 290,7 290,7 @@
                {"matrix": [8, 2], "x": 2, "y": 4},
                {"matrix": [9, 3], "x": 3, "y": 4},
                {"matrix": [9, 5], "x": 4, "y": 4, "w": 2},
                {"matrix": [9, 0], "x": 6, "y": 4, "w": 2},
                {"matrix": [9, 1], "x": 6, "y": 4, "w": 2},
                {"matrix": [9, 2], "x": 8, "y": 4},
                {"matrix": [8, 3], "x": 9, "y": 4},
                {"matrix": [8, 4], "x": 10, "y": 4},

Do not follow this link