aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/dts/layouts/common/numpad/24_key.dtsi
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2024-09-27 19:25:29 -0500
committerPete Johanson <[email protected]>2024-11-06 11:35:51 -0700
commitcf2c46734ddff6bfaf35d7a638c9099185b8e9d2 (patch)
treeac60418f66423acd0158dcccc1c65d0fc12978c7 /app/dts/layouts/common/numpad/24_key.dtsi
parente6c1219f0cb705d6b2f60641cf21ac4161241449 (diff)
downloadzmk-cf2c46734ddff6bfaf35d7a638c9099185b8e9d2.tar.gz
zmk-cf2c46734ddff6bfaf35d7a638c9099185b8e9d2.zip
feat(boards): Add numpad layouts
Added physical layouts for the following variants of numpads: - With and without extra top row - 2U plus key or 1U plus and backspace keys - 2U 0 key or 1U 0 and 00 keys - Full 1U grid/macropad layout Other layouts exist, such as "southpaw" horizontally mirrored layouts, and layouts with a fifth column, but those seem to be much less common.
Diffstat (limited to 'app/dts/layouts/common/numpad/24_key.dtsi')
-rw-r--r--app/dts/layouts/common/numpad/24_key.dtsi50
1 files changed, 50 insertions, 0 deletions
diff --git a/app/dts/layouts/common/numpad/24_key.dtsi b/app/dts/layouts/common/numpad/24_key.dtsi
new file mode 100644
index 0000000000..c410a53285
--- /dev/null
+++ b/app/dts/layouts/common/numpad/24_key.dtsi
@@ -0,0 +1,50 @@
+#include <layouts/common/numpad/position_map.dtsi>
+#include <physical_layouts.dtsi>
+
+/ {
+ layout_numpad_24_key: layout_numpad_24_key {
+ compatible = "zmk,physical-layout";
+ display-name = "24 Key Numpad";
+
+ keys // w h x y rot rx ry
+ = <&key_physical_attrs 100 100 0 0 0 0 0>
+ , <&key_physical_attrs 100 100 100 0 0 0 0>
+ , <&key_physical_attrs 100 100 200 0 0 0 0>
+ , <&key_physical_attrs 100 100 300 0 0 0 0>
+ , <&key_physical_attrs 100 100 0 125 0 0 0>
+ , <&key_physical_attrs 100 100 100 125 0 0 0>
+ , <&key_physical_attrs 100 100 200 125 0 0 0>
+ , <&key_physical_attrs 100 100 300 125 0 0 0>
+ , <&key_physical_attrs 100 100 0 225 0 0 0>
+ , <&key_physical_attrs 100 100 100 225 0 0 0>
+ , <&key_physical_attrs 100 100 200 225 0 0 0>
+ , <&key_physical_attrs 100 100 300 225 0 0 0>
+ , <&key_physical_attrs 100 100 0 325 0 0 0>
+ , <&key_physical_attrs 100 100 100 325 0 0 0>
+ , <&key_physical_attrs 100 100 200 325 0 0 0>
+ , <&key_physical_attrs 100 100 300 325 0 0 0>
+ , <&key_physical_attrs 100 100 0 425 0 0 0>
+ , <&key_physical_attrs 100 100 100 425 0 0 0>
+ , <&key_physical_attrs 100 100 200 425 0 0 0>
+ , <&key_physical_attrs 100 100 300 425 0 0 0>
+ , <&key_physical_attrs 100 100 0 525 0 0 0>
+ , <&key_physical_attrs 100 100 100 525 0 0 0>
+ , <&key_physical_attrs 100 100 200 525 0 0 0>
+ , <&key_physical_attrs 100 100 300 525 0 0 0>
+ ;
+ };
+};
+
+&layouts_common_numpad_position_map {
+ layout_numpad_24_key {
+ physical-layout = <&layout_numpad_24_key>;
+ positions
+ = < 0 1 2 3>
+ , < 4 5 6 7>
+ , < 8 9 10 11>
+ , <12 13 14 15>
+ , <16 17 18 19>
+ , <20 21 22 23>
+ ;
+ };
+};