From 2d45e5e4b464d0fc7e83d4065da9e797c7c4d580 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 30 Nov 2022 06:38:02 +0000 Subject: Add ortho_3x3 community layout (#19210) --- .../default/ortho_3x3/default_ortho_3x3/keymap.c | 18 ++++++++++++++++++ layouts/default/ortho_3x3/info.json | 22 ++++++++++++++++++++++ layouts/default/ortho_3x3/layout.json | 3 +++ layouts/default/ortho_3x3/readme.md | 3 +++ layouts/default/readme.md | 11 +++++++++++ 5 files changed, 57 insertions(+) create mode 100644 layouts/default/ortho_3x3/default_ortho_3x3/keymap.c create mode 100644 layouts/default/ortho_3x3/info.json create mode 100644 layouts/default/ortho_3x3/layout.json create mode 100644 layouts/default/ortho_3x3/readme.md (limited to 'layouts') diff --git a/layouts/default/ortho_3x3/default_ortho_3x3/keymap.c b/layouts/default/ortho_3x3/default_ortho_3x3/keymap.c new file mode 100644 index 0000000000..fbcca233bd --- /dev/null +++ b/layouts/default/ortho_3x3/default_ortho_3x3/keymap.c @@ -0,0 +1,18 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┬───┬───┐ + * │ A │ B │ C │ + * ├───┼───┼───┤ + * │ D │ E │ F │ + * ├───┼───┼───┤ + * │ G │ H │ I │ + * └───┴───┴───┘ + */ + [0] = LAYOUT_ortho_3x3( + KC_A, KC_B, KC_C, + KC_D, KC_E, KC_F, + KC_G, KC_H, KC_I + ) +}; diff --git a/layouts/default/ortho_3x3/info.json b/layouts/default/ortho_3x3/info.json new file mode 100644 index 0000000000..4e0def90f4 --- /dev/null +++ b/layouts/default/ortho_3x3/info.json @@ -0,0 +1,22 @@ +{ + "keyboard_name": "3x3 ortholinear layout", + "url": "", + "maintainer": "qmk", + "layouts": { + "LAYOUT_ortho_3x3": { + "layout": [ + {"x":0, "y":0}, + {"x":1, "y":0}, + {"x":2, "y":0}, + + {"x":0, "y":1}, + {"x":1, "y":1}, + {"x":2, "y":1}, + + {"x":0, "y":2}, + {"x":1, "y":2}, + {"x":2, "y":2} + ] + } + } +} diff --git a/layouts/default/ortho_3x3/layout.json b/layouts/default/ortho_3x3/layout.json new file mode 100644 index 0000000000..7986a26a76 --- /dev/null +++ b/layouts/default/ortho_3x3/layout.json @@ -0,0 +1,3 @@ +["","",""], +["","",""], +["","",""] diff --git a/layouts/default/ortho_3x3/readme.md b/layouts/default/ortho_3x3/readme.md new file mode 100644 index 0000000000..b6b2053565 --- /dev/null +++ b/layouts/default/ortho_3x3/readme.md @@ -0,0 +1,3 @@ +# ortho_3x3 + + LAYOUT_ortho_3x3 diff --git a/layouts/default/readme.md b/layouts/default/readme.md index 0d2182e671..8390281796 100644 --- a/layouts/default/readme.md +++ b/layouts/default/readme.md @@ -1059,6 +1059,17 @@ LAYOUT_ortho_2x6 └───┴───┴───┴───┴───┴───┘ ``` +``` +LAYOUT_ortho_3x3 +┌───┬───┬───┐ +│ │ │ │ +├───┼───┼───┤ +│ │ │ │ +├───┼───┼───┤ +│ │ │ │ +└───┴───┴───┘ +``` + ``` LAYOUT_ortho_3x10 ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ -- cgit v1.2.3