From 2adb1262186279a1add35638355498f4701cacc4 Mon Sep 17 00:00:00 2001 From: Logan Date: Tue, 23 Jan 2024 23:04:36 -0800 Subject: [PATCH 1/3] Compensator VIA json definitions --- v3/compensator/compensator.json | 396 ++++++++++++++++++++++++++++++++ 1 file changed, 396 insertions(+) create mode 100644 v3/compensator/compensator.json diff --git a/v3/compensator/compensator.json b/v3/compensator/compensator.json new file mode 100644 index 0000000000..39c7cd0e64 --- /dev/null +++ b/v3/compensator/compensator.json @@ -0,0 +1,396 @@ +{ + "name": "Compensator", + "vendorId": "0x564B", + "productId": "0x0001", + "matrix": { "rows": 8, "cols": 16 }, + "layouts": { + "labels": [ + "Split Left Shift", + "Split Right Shift", + "Split Left Numpad Plus", + "Split Left Numpad Enter", + "Split Left Numpad 0", + "Split Right Numpad Plus", + "Split Right Numpad Enter", + "Split Right Numpad 0", + ["Bottom Row", "7u Spacebar", "Split Spacebar", "10U Spacebar"] + ], + "keymap": [ + [ + "0,0", + "0,1", + { + "x": 0.25, + "c": "#aaaaaa", + "h": 2 + }, + "5,0\n\n\n2,0", + { + "c": "#cccccc" + }, + "4,1", + "0,2", + "0,3", + { + "x": 0.25 + }, + "4,2", + "4,3", + "0,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.5 + }, + "0,5", + { + "c": "#cccccc" + }, + "4,4", + "4,5", + "0,6", + "0,7", + "4,6", + "4,7", + "0,8", + "0,9", + "4,8", + "4,9", + "0,10", + "0,11", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "4,10", + { + "x": 0.25, + "c": "#cccccc" + }, + "4,11", + "0,12", + "0,13", + { + "x": 0.25 + }, + "4,12", + "4,13", + "0,14", + { + "c": "#aaaaaa", + "h": 2 + }, + "1,15\n\n\n5,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "4,14", + "4,15" + ], + [ + "1,0", + "1,1", + { + "x": 1.25 + }, + "5,1", + "1,2", + "1,3", + { + "x": 0.25 + }, + "5,2", + "5,3", + "1,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.75 + }, + "1,5", + { + "c": "#cccccc" + }, + "5,4", + "5,5", + "1,6", + "1,7", + "5,6", + "5,7", + "1,8", + "1,9", + "5,8", + "5,9", + "1,10", + { + "c": "#777777", + "w": 2.25 + }, + "1,11", + { + "x": 0.25, + "c": "#cccccc" + }, + "5,11", + "1,12", + "1,13", + { + "x": 0.25 + }, + "5,12", + "5,13", + "1,14", + { + "x": 1.25 + }, + "5,14", + "5,15" + ], + [ + "2,0", + "2,1", + { + "x": 0.25, + "c": "#aaaaaa", + "h": 2 + }, + "7,0\n\n\n3,0", + { + "c": "#cccccc" + }, + "6,1", + "2,2", + "2,3", + { + "x": 0.25 + }, + "6,2", + { + "c": "#777777" + }, + "6,3", + { + "c": "#cccccc" + }, + "2,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 2.25 + }, + "2,5\n\n\n0,0", + { + "c": "#cccccc" + }, + "6,5", + "2,6", + "2,7", + "6,6", + "6,7", + "2,8", + "2,9", + "6,8", + "6,9", + "2,10", + { + "c": "#aaaaaa", + "w": 2.75 + }, + "2,11\n\n\n1,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "6,11", + { + "c": "#777777" + }, + "2,12", + { + "c": "#cccccc" + }, + "2,13", + { + "x": 0.25 + }, + "6,12", + "6,13", + "2,14", + { + "c": "#aaaaaa", + "h": 2 + }, + "3,15\n\n\n6,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "6,14", + "6,15" + ], + [ + "3,0", + "3,1", + { + "x": 1.25 + }, + "7,1", + { + "c": "#aaaaaa", + "w": 2 + }, + "3,3\n\n\n4,0", + { + "x": 0.25, + "c": "#777777" + }, + "7,2", + "7,3", + "3,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.5 + }, + "3,5", + { + "x": 1, + "w": 1.5 + }, + "3,6\n\n\n8,0", + { + "c": "#cccccc", + "w": 7 + }, + "3,8\n\n\n8,0", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "3,10\n\n\n8,0", + { + "x": 1, + "w": 1.5 + }, + "7,10", + { + "x": 0.25, + "c": "#777777" + }, + "7,11", + "3,12", + "3,13", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 2 + }, + "7,12\n\n\n7,0", + { + "c": "#cccccc" + }, + "3,14", + { + "x": 1.25 + }, + "7,14", + "7,15" + ], + [ + { + "y": 0.25, + "x": 2.25, + "c": "#aaaaaa" + }, + "4,0\n\n\n2,1", + { + "x": 1 + }, + "3,2\n\n\n4,1", + "3,3\n\n\n4,1", + { + "x": 22 + }, + "7,12\n\n\n7,1", + "7,13\n\n\n7,1", + { + "x": 1 + }, + "0,15\n\n\n5,1" + ], + [ + { + "x": 2.25 + }, + "5,0\n\n\n2,1", + { + "x": 6.5, + "w": 1.25 + }, + "2,5\n\n\n0,1", + "6,4\n\n\n0,1", + { + "x": 10, + "w": 1.75 + }, + "2,11\n\n\n1,1", + "6,10\n\n\n1,1", + { + "x": 6.5 + }, + "1,15\n\n\n5,1" + ], + [ + { + "x": 2.25 + }, + "6,0\n\n\n3,1", + { + "x": 9, + "w": 1.5 + }, + "3,6\n\n\n8,1", + { + "c": "#cccccc", + "w": 2.75 + }, + "3,7\n\n\n8,1", + { + "w": 1.5 + }, + "3,8\n\n\n8,1", + { + "w": 2.75 + }, + "3,9\n\n\n8,1", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "3,10\n\n\n8,1", + { + "x": 9 + }, + "2,15\n\n\n6,1" + ], + [ + { + "x": 2.25 + }, + "7,0\n\n\n3,1", + { + "x": 9, + "c": "#cccccc", + "w": 10 + }, + "3,8\n\n\n8,2", + { + "x": 9, + "c": "#aaaaaa" + }, + "3,15\n\n\n6,1" + ] + ] + } +} From fd6755980d40f7281d63d83e9000c4eb0a45bcc0 Mon Sep 17 00:00:00 2001 From: Logan Date: Sat, 27 Jan 2024 16:00:37 -0800 Subject: [PATCH 2/3] Fixed split definitions and added V2 json --- src/compensator/compensator.json | 397 +++++++++++++++++++++++++++++++ v3/compensator/compensator.json | 12 +- 2 files changed, 403 insertions(+), 6 deletions(-) create mode 100644 src/compensator/compensator.json diff --git a/src/compensator/compensator.json b/src/compensator/compensator.json new file mode 100644 index 0000000000..004f324a38 --- /dev/null +++ b/src/compensator/compensator.json @@ -0,0 +1,397 @@ +{ + "name": "Compensator", + "vendorId": "0x564B", + "productId": "0x0001", + "lighting": "none", + "matrix": { "rows": 8, "cols": 16 }, + "layouts": { + "labels": [ + "Split Left Shift", + "Split Right Shift", + "Split Left Numpad Plus", + "Split Left Numpad Enter", + "Split Left Numpad 0", + "Split Right Numpad Plus", + "Split Right Numpad Enter", + "Split Right Numpad 0", + ["Bottom Row", "7u Spacebar", "Split Spacebar", "10U Spacebar"] + ], + "keymap": [ + [ + "0,0", + "0,1", + { + "x": 0.25, + "c": "#aaaaaa", + "h": 2 + }, + "4,0\n\n\n2,0", + { + "c": "#cccccc" + }, + "4,1", + "0,2", + "0,3", + { + "x": 0.25 + }, + "4,2", + "4,3", + "0,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.5 + }, + "0,5", + { + "c": "#cccccc" + }, + "4,4", + "4,5", + "0,6", + "0,7", + "4,6", + "4,7", + "0,8", + "0,9", + "4,8", + "4,9", + "0,10", + "0,11", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "4,10", + { + "x": 0.25, + "c": "#cccccc" + }, + "4,11", + "0,12", + "0,13", + { + "x": 0.25 + }, + "4,12", + "4,13", + "0,14", + { + "c": "#aaaaaa", + "h": 2 + }, + "0,15\n\n\n5,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "4,14", + "4,15" + ], + [ + "1,0", + "1,1", + { + "x": 1.25 + }, + "5,1", + "1,2", + "1,3", + { + "x": 0.25 + }, + "5,2", + "5,3", + "1,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.75 + }, + "1,5", + { + "c": "#cccccc" + }, + "5,4", + "5,5", + "1,6", + "1,7", + "5,6", + "5,7", + "1,8", + "1,9", + "5,8", + "5,9", + "1,10", + { + "c": "#777777", + "w": 2.25 + }, + "1,11", + { + "x": 0.25, + "c": "#cccccc" + }, + "5,11", + "1,12", + "1,13", + { + "x": 0.25 + }, + "5,12", + "5,13", + "1,14", + { + "x": 1.25 + }, + "5,14", + "5,15" + ], + [ + "2,0", + "2,1", + { + "x": 0.25, + "c": "#aaaaaa", + "h": 2 + }, + "6,0\n\n\n3,0", + { + "c": "#cccccc" + }, + "6,1", + "2,2", + "2,3", + { + "x": 0.25 + }, + "6,2", + { + "c": "#777777" + }, + "6,3", + { + "c": "#cccccc" + }, + "2,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 2.25 + }, + "2,5\n\n\n0,0", + { + "c": "#cccccc" + }, + "6,5", + "2,6", + "2,7", + "6,6", + "6,7", + "2,8", + "2,9", + "6,8", + "6,9", + "2,10", + { + "c": "#aaaaaa", + "w": 2.75 + }, + "2,11\n\n\n1,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "6,11", + { + "c": "#777777" + }, + "2,12", + { + "c": "#cccccc" + }, + "2,13", + { + "x": 0.25 + }, + "6,12", + "6,13", + "2,14", + { + "c": "#aaaaaa", + "h": 2 + }, + "2,15\n\n\n6,0", + { + "x": 0.25, + "c": "#cccccc" + }, + "6,14", + "6,15" + ], + [ + "3,0", + "3,1", + { + "x": 1.25 + }, + "7,1", + { + "c": "#aaaaaa", + "w": 2 + }, + "3,2\n\n\n4,0", + { + "x": 0.25, + "c": "#777777" + }, + "7,2", + "7,3", + "3,4", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 1.5 + }, + "3,5", + { + "x": 1, + "w": 1.5 + }, + "3,6\n\n\n8,0", + { + "c": "#cccccc", + "w": 7 + }, + "3,8\n\n\n8,0", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "3,10\n\n\n8,0", + { + "x": 1, + "w": 1.5 + }, + "7,10", + { + "x": 0.25, + "c": "#777777" + }, + "7,11", + "3,12", + "3,13", + { + "x": 0.25, + "c": "#aaaaaa", + "w": 2 + }, + "7,13\n\n\n7,0", + { + "c": "#cccccc" + }, + "3,14", + { + "x": 1.25 + }, + "7,14", + "7,15" + ], + [ + { + "y": 0.25, + "x": 2.25, + "c": "#aaaaaa" + }, + "4,0\n\n\n2,1", + { + "x": 1 + }, + "3,2\n\n\n4,1", + "3,3\n\n\n4,1", + { + "x": 22 + }, + "7,12\n\n\n7,1", + "7,13\n\n\n7,1", + { + "x": 1 + }, + "0,15\n\n\n5,1" + ], + [ + { + "x": 2.25 + }, + "5,0\n\n\n2,1", + { + "x": 6.5, + "w": 1.25 + }, + "2,5\n\n\n0,1", + "6,4\n\n\n0,1", + { + "x": 10, + "w": 1.75 + }, + "2,11\n\n\n1,1", + "6,10\n\n\n1,1", + { + "x": 6.5 + }, + "1,15\n\n\n5,1" + ], + [ + { + "x": 2.25 + }, + "6,0\n\n\n3,1", + { + "x": 9, + "w": 1.5 + }, + "3,6\n\n\n8,1", + { + "c": "#cccccc", + "w": 2.75 + }, + "3,7\n\n\n8,1", + { + "w": 1.5 + }, + "3,8\n\n\n8,1", + { + "w": 2.75 + }, + "3,9\n\n\n8,1", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "3,10\n\n\n8,1", + { + "x": 9 + }, + "2,15\n\n\n6,1" + ], + [ + { + "x": 2.25 + }, + "7,0\n\n\n3,1", + { + "x": 9, + "c": "#cccccc", + "w": 10 + }, + "3,8\n\n\n8,2", + { + "x": 9, + "c": "#aaaaaa" + }, + "3,15\n\n\n6,1" + ] + ] + } +} diff --git a/v3/compensator/compensator.json b/v3/compensator/compensator.json index 39c7cd0e64..572670a5e5 100644 --- a/v3/compensator/compensator.json +++ b/v3/compensator/compensator.json @@ -24,7 +24,7 @@ "c": "#aaaaaa", "h": 2 }, - "5,0\n\n\n2,0", + "4,0\n\n\n2,0", { "c": "#cccccc" }, @@ -80,7 +80,7 @@ "c": "#aaaaaa", "h": 2 }, - "1,15\n\n\n5,0", + "0,15\n\n\n5,0", { "x": 0.25, "c": "#cccccc" @@ -155,7 +155,7 @@ "c": "#aaaaaa", "h": 2 }, - "7,0\n\n\n3,0", + "6,0\n\n\n3,0", { "c": "#cccccc" }, @@ -221,7 +221,7 @@ "c": "#aaaaaa", "h": 2 }, - "3,15\n\n\n6,0", + "2,15\n\n\n6,0", { "x": 0.25, "c": "#cccccc" @@ -240,7 +240,7 @@ "c": "#aaaaaa", "w": 2 }, - "3,3\n\n\n4,0", + "3,2\n\n\n4,0", { "x": 0.25, "c": "#777777" @@ -286,7 +286,7 @@ "c": "#aaaaaa", "w": 2 }, - "7,12\n\n\n7,0", + "7,13\n\n\n7,0", { "c": "#cccccc" }, From 5bb06b5501b6068d2abff4b428b2ab0e99324a42 Mon Sep 17 00:00:00 2001 From: Logan Date: Wed, 21 Feb 2024 14:43:37 -0800 Subject: [PATCH 3/3] removed v2 definition --- src/compensator/compensator.json | 397 ------------------------------- 1 file changed, 397 deletions(-) delete mode 100644 src/compensator/compensator.json diff --git a/src/compensator/compensator.json b/src/compensator/compensator.json deleted file mode 100644 index 004f324a38..0000000000 --- a/src/compensator/compensator.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "name": "Compensator", - "vendorId": "0x564B", - "productId": "0x0001", - "lighting": "none", - "matrix": { "rows": 8, "cols": 16 }, - "layouts": { - "labels": [ - "Split Left Shift", - "Split Right Shift", - "Split Left Numpad Plus", - "Split Left Numpad Enter", - "Split Left Numpad 0", - "Split Right Numpad Plus", - "Split Right Numpad Enter", - "Split Right Numpad 0", - ["Bottom Row", "7u Spacebar", "Split Spacebar", "10U Spacebar"] - ], - "keymap": [ - [ - "0,0", - "0,1", - { - "x": 0.25, - "c": "#aaaaaa", - "h": 2 - }, - "4,0\n\n\n2,0", - { - "c": "#cccccc" - }, - "4,1", - "0,2", - "0,3", - { - "x": 0.25 - }, - "4,2", - "4,3", - "0,4", - { - "x": 0.25, - "c": "#aaaaaa", - "w": 1.5 - }, - "0,5", - { - "c": "#cccccc" - }, - "4,4", - "4,5", - "0,6", - "0,7", - "4,6", - "4,7", - "0,8", - "0,9", - "4,8", - "4,9", - "0,10", - "0,11", - { - "c": "#aaaaaa", - "w": 1.5 - }, - "4,10", - { - "x": 0.25, - "c": "#cccccc" - }, - "4,11", - "0,12", - "0,13", - { - "x": 0.25 - }, - "4,12", - "4,13", - "0,14", - { - "c": "#aaaaaa", - "h": 2 - }, - "0,15\n\n\n5,0", - { - "x": 0.25, - "c": "#cccccc" - }, - "4,14", - "4,15" - ], - [ - "1,0", - "1,1", - { - "x": 1.25 - }, - "5,1", - "1,2", - "1,3", - { - "x": 0.25 - }, - "5,2", - "5,3", - "1,4", - { - "x": 0.25, - "c": "#aaaaaa", - "w": 1.75 - }, - "1,5", - { - "c": "#cccccc" - }, - "5,4", - "5,5", - "1,6", - "1,7", - "5,6", - "5,7", - "1,8", - "1,9", - "5,8", - "5,9", - "1,10", - { - "c": "#777777", - "w": 2.25 - }, - "1,11", - { - "x": 0.25, - "c": "#cccccc" - }, - "5,11", - "1,12", - "1,13", - { - "x": 0.25 - }, - "5,12", - "5,13", - "1,14", - { - "x": 1.25 - }, - "5,14", - "5,15" - ], - [ - "2,0", - "2,1", - { - "x": 0.25, - "c": "#aaaaaa", - "h": 2 - }, - "6,0\n\n\n3,0", - { - "c": "#cccccc" - }, - "6,1", - "2,2", - "2,3", - { - "x": 0.25 - }, - "6,2", - { - "c": "#777777" - }, - "6,3", - { - "c": "#cccccc" - }, - "2,4", - { - "x": 0.25, - "c": "#aaaaaa", - "w": 2.25 - }, - "2,5\n\n\n0,0", - { - "c": "#cccccc" - }, - "6,5", - "2,6", - "2,7", - "6,6", - "6,7", - "2,8", - "2,9", - "6,8", - "6,9", - "2,10", - { - "c": "#aaaaaa", - "w": 2.75 - }, - "2,11\n\n\n1,0", - { - "x": 0.25, - "c": "#cccccc" - }, - "6,11", - { - "c": "#777777" - }, - "2,12", - { - "c": "#cccccc" - }, - "2,13", - { - "x": 0.25 - }, - "6,12", - "6,13", - "2,14", - { - "c": "#aaaaaa", - "h": 2 - }, - "2,15\n\n\n6,0", - { - "x": 0.25, - "c": "#cccccc" - }, - "6,14", - "6,15" - ], - [ - "3,0", - "3,1", - { - "x": 1.25 - }, - "7,1", - { - "c": "#aaaaaa", - "w": 2 - }, - "3,2\n\n\n4,0", - { - "x": 0.25, - "c": "#777777" - }, - "7,2", - "7,3", - "3,4", - { - "x": 0.25, - "c": "#aaaaaa", - "w": 1.5 - }, - "3,5", - { - "x": 1, - "w": 1.5 - }, - "3,6\n\n\n8,0", - { - "c": "#cccccc", - "w": 7 - }, - "3,8\n\n\n8,0", - { - "c": "#aaaaaa", - "w": 1.5 - }, - "3,10\n\n\n8,0", - { - "x": 1, - "w": 1.5 - }, - "7,10", - { - "x": 0.25, - "c": "#777777" - }, - "7,11", - "3,12", - "3,13", - { - "x": 0.25, - "c": "#aaaaaa", - "w": 2 - }, - "7,13\n\n\n7,0", - { - "c": "#cccccc" - }, - "3,14", - { - "x": 1.25 - }, - "7,14", - "7,15" - ], - [ - { - "y": 0.25, - "x": 2.25, - "c": "#aaaaaa" - }, - "4,0\n\n\n2,1", - { - "x": 1 - }, - "3,2\n\n\n4,1", - "3,3\n\n\n4,1", - { - "x": 22 - }, - "7,12\n\n\n7,1", - "7,13\n\n\n7,1", - { - "x": 1 - }, - "0,15\n\n\n5,1" - ], - [ - { - "x": 2.25 - }, - "5,0\n\n\n2,1", - { - "x": 6.5, - "w": 1.25 - }, - "2,5\n\n\n0,1", - "6,4\n\n\n0,1", - { - "x": 10, - "w": 1.75 - }, - "2,11\n\n\n1,1", - "6,10\n\n\n1,1", - { - "x": 6.5 - }, - "1,15\n\n\n5,1" - ], - [ - { - "x": 2.25 - }, - "6,0\n\n\n3,1", - { - "x": 9, - "w": 1.5 - }, - "3,6\n\n\n8,1", - { - "c": "#cccccc", - "w": 2.75 - }, - "3,7\n\n\n8,1", - { - "w": 1.5 - }, - "3,8\n\n\n8,1", - { - "w": 2.75 - }, - "3,9\n\n\n8,1", - { - "c": "#aaaaaa", - "w": 1.5 - }, - "3,10\n\n\n8,1", - { - "x": 9 - }, - "2,15\n\n\n6,1" - ], - [ - { - "x": 2.25 - }, - "7,0\n\n\n3,1", - { - "x": 9, - "c": "#cccccc", - "w": 10 - }, - "3,8\n\n\n8,2", - { - "x": 9, - "c": "#aaaaaa" - }, - "3,15\n\n\n6,1" - ] - ] - } -}