From ba93584d440b3d75c732511961c8a7c0de8396e8 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Fri, 23 Dec 2022 18:41:30 +0800 Subject: [PATCH] lotus: Enable VIA on the ANSI layout Signed-off-by: Daniel Schaefer --- keyboards/lotus/kle/README.md | 14 ++ keyboards/lotus/kle/ansi_via.json | 359 ++++++++++++++++++++++++++++++ keyboards/lotus/rules.mk | 2 + 3 files changed, 375 insertions(+) create mode 100644 keyboards/lotus/kle/ansi_via.json diff --git a/keyboards/lotus/kle/README.md b/keyboards/lotus/kle/README.md index 0e7600c6b1..c26c1f91f8 100644 --- a/keyboards/lotus/kle/README.md +++ b/keyboards/lotus/kle/README.md @@ -3,3 +3,17 @@ These files are generated by modeling our keyboard layouts in [KLE](http://www.keyboard-layout-editor.com). That is then exported and converted to the format for `info.json`. But to continue editing them, I kept the files here. Might be useful for the future. + +| Layout | Standard KLE Layout | VIA KLE Layout | VIA Design | +| ------ | -------------------- | --------------- | ----------------- | +| ANSI | `ansi_layout.json` | `ansi_via.json` | `via_design.json` | +| ISO | `iso_layout.json` | | | +| JIS | `jis_layout.json` | | | +| Numpad | `numpad_layout.json` | | | + +- The Standard KLE Layout is just downloaded from KLE. +- The VIA KLE Layout has matrix positions as labels instead of the actual key labels. +- VIA Design is the VIA KLE layout embedded in to a VIA compatible JSON file. + +The VIA Design file can be imported into VIA, then it will discover the +keyboard. This should be submitted to the VIA [keyboard repository](https://github.com/the-via/keyboards). diff --git a/keyboards/lotus/kle/ansi_via.json b/keyboards/lotus/kle/ansi_via.json new file mode 100644 index 0000000000..23406f1d4d --- /dev/null +++ b/keyboards/lotus/kle/ansi_via.json @@ -0,0 +1,359 @@ +[ + [ + { + "w": 1.25, + "h": 0.5 + }, + "7,5", + { + "x": 0.25, + "h": 0.5 + }, + "3,5", + { + "x": 0.25, + "h": 0.5 + }, + "2,5", + { + "x": 0.25, + "h": 0.5 + }, + "6,4", + { + "x": 0.25, + "h": 0.5 + }, + "3,4", + { + "x": 0.25, + "h": 0.5 + }, + "4,10", + { + "x": 0.25, + "h": 0.5 + }, + "3,10", + { + "x": 0.25, + "h": 0.5 + }, + "2,10", + { + "x": 0.25, + "h": 0.5 + }, + "1,15", + { + "x": 0.25, + "h": 0.5 + }, + "3,11", + { + "x": 0.25, + "h": 0.5 + }, + "4,8", + { + "x": 0.25, + "h": 0.5 + }, + "6,8", + { + "x": 0.25, + "h": 0.5 + }, + "3,15", + { + "x": 0.25, + "w": 1.75, + "h": 0.5 + }, + "0,1" + ], + [ + { + "y": -0.25 + }, + "4,2", + { + "x": 0.25 + }, + "5,2", + { + "x": 0.25 + }, + "5,5", + { + "x": 0.25 + }, + "5,4", + { + "x": 0.25 + }, + "5,6", + { + "x": 0.25 + }, + "4,6", + { + "x": 0.25 + }, + "4,7", + { + "x": 0.25 + }, + "5,7", + { + "x": 0.25 + }, + "5,10", + { + "x": 0.25 + }, + "5,8", + { + "x": 0.25 + }, + "4,13", + { + "x": 0.25 + }, + "2,13", + { + "x": 0.25 + }, + "4,14", + { + "x": 0.25, + "w": 2 + }, + "5,14" + ], + [ + { + "y": 0.25, + "w": 1.5 + }, + "3,2", + { + "x": 0.25 + }, + "0,2", + { + "x": 0.25 + }, + "6,5", + { + "x": 0.25 + }, + "2,4", + { + "x": 0.25 + }, + "6,6", + { + "x": 0.25 + }, + "3,6", + { + "x": 0.25 + }, + "3,7", + { + "x": 0.25 + }, + "6,7", + { + "x": 0.25 + }, + "6,10", + { + "x": 0.25 + }, + "3,8", + { + "x": 0.25 + }, + "5,13", + { + "x": 0.25 + }, + "6,13", + { + "x": 0.25 + }, + "6,14", + { + "x": 0.25, + "w": 1.5 + }, + "2,8" + ], + [ + { + "y": 0.25, + "w": 1.75 + }, + "4,4", + { + "x": 0.25 + }, + "7,2", + { + "x": 0.25 + }, + "4,5", + { + "x": 0.25 + }, + "7,14", + { + "x": 0.25 + }, + "7,6", + { + "x": 0.25 + }, + "2,6", + { + "x": 0.25 + }, + "2,7", + { + "x": 0.25 + }, + "7,7", + { + "x": 0.25 + }, + "7,10", + { + "x": 0.25 + }, + "7,8", + { + "x": 0.25 + }, + "7, 13", + { + "x": 0.25 + }, + "0,14", + { + "x": 0.25, + "w": 2.5 + }, + "1,14" + ], + [ + { + "y": 0.25, + "w": 2.5 + }, + "1,9", + { + "x": 0.25 + }, + "1,5", + { + "x": 0.25 + }, + "0,5", + { + "x": 0.25 + }, + "0,0", + { + "x": 0.25 + }, + "0,6", + { + "x": 0.25 + }, + "1,6", + { + "x": 0.25 + }, + "1,7", + { + "x": 0.25 + }, + "0,7", + { + "x": 0.25 + }, + "0,10", + { + "x": 0.25 + }, + "0,8", + { + "x": 0.25 + }, + "0,13", + { + "x": 0.25, + "w": 3 + }, + "0,9" + ], + [ + { + "y": 0.25, + "w": 1.25 + }, + "1,12", + { + "x": 0.25 + }, + "2,2", + { + "x": 0.25 + }, + "3,1", + { + "x": 0.25 + }, + "1,3", + { + "x": 0.25, + "w": 6 + }, + "1,4", + { + "x": 0.25 + }, + "0,3", + { + "x": 0.25 + }, + "0,12", + { + "x": 0.25, + "w": 1.25 + }, + "6,11", + { + "x": 0.25, + "w": 1.25, + "h": 0.5 + }, + "1,13", + { + "x": 0.25, + "w": 1.25 + }, + "2,15" + ], + [ + { + "y": -0.5, + "x": 15.5, + "w": 1.25, + "h": 0.5 + }, + "1,8" + ] +] \ No newline at end of file diff --git a/keyboards/lotus/rules.mk b/keyboards/lotus/rules.mk index 7dfc28df48..e8a0e977c2 100644 --- a/keyboards/lotus/rules.mk +++ b/keyboards/lotus/rules.mk @@ -1,3 +1,5 @@ +VIA_ENABLE = yes + EXTRAKEY_ENABLE = yes # Audio control and System control SERIAL_DRIVER = vendor