Skip to content

Commit

Permalink
keebzdotnet FMe Layout Additionns (qmk#20696)
Browse files Browse the repository at this point in the history
* add matrix_diagram.md

* add LAYOUT_1x2u with reference keymap

* add LAYOUT_2x1u with reference keymap
  • Loading branch information
noroadsleft committed May 4, 2023
1 parent 4efd6a8 commit a662d36
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 0 deletions.
35 changes: 35 additions & 0 deletions keyboards/keebzdotnet/fme/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,41 @@
{"matrix": [2, 1], "x": 3, "y": 2, "w": 2},
{"matrix": [0, 1], "x": 4, "y": 3}
]
},
"LAYOUT_1x2u": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [1, 3], "x": 1, "y": 0},
{"matrix": [1, 4], "x": 2, "y": 0},
{"matrix": [1, 2], "x": 3, "y": 0},
{"matrix": [1, 0], "x": 4, "y": 0},

{"matrix": [1, 1], "x": 0.25, "y": 1},
{"matrix": [0, 4], "x": 1.25, "y": 1},
{"matrix": [0, 2], "x": 2.25, "y": 1},
{"matrix": [0, 3], "x": 3.25, "y": 1, "w": 1.75},

{"matrix": [2, 2], "x": 0.25, "y": 2, "w": 2.75},
{"matrix": [2, 1], "x": 3, "y": 2, "w": 2}
]
},
"LAYOUT_2x1u": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [1, 3], "x": 1, "y": 0},
{"matrix": [1, 4], "x": 2, "y": 0},
{"matrix": [1, 2], "x": 3, "y": 0},
{"matrix": [1, 0], "x": 4, "y": 0},

{"matrix": [1, 1], "x": 0.25, "y": 1},
{"matrix": [0, 4], "x": 1.25, "y": 1},
{"matrix": [0, 2], "x": 2.25, "y": 1},
{"matrix": [0, 3], "x": 3.25, "y": 1, "w": 1.75},

{"matrix": [2, 2], "x": 0.25, "y": 2, "w": 2.75},
{"matrix": [3, 2], "x": 3, "y": 2},
{"matrix": [0, 1], "x": 4, "y": 2}
]
}
}
}
33 changes: 33 additions & 0 deletions keyboards/keebzdotnet/fme/keymaps/default_1x2u/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
Copyright 2021 keebnewb
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT_1x2u(
KC_F, KC_U, KC_C, KC_K, KC_BSPC,
KC_Y, KC_O, KC_U, MO(1),
KC_SPC, KC_SPC
),

[1] = LAYOUT_1x2u(
QK_BOOT, _______, _______, _______, KC_DEL,
_______, _______, _______, _______,
_______, _______
),

};
33 changes: 33 additions & 0 deletions keyboards/keebzdotnet/fme/keymaps/default_2x1u/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
Copyright 2021 keebnewb
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http:https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[0] = LAYOUT_2x1u(
KC_F, KC_U, KC_C, KC_K, KC_BSPC,
KC_Y, KC_O, KC_U, MO(1),
KC_SPC, KC_SPC, KC_SPC
),

[1] = LAYOUT_2x1u(
QK_BOOT, _______, _______, _______, KC_DEL,
_______, _______, _______, _______,
_______, _______, _______
),

};
14 changes: 14 additions & 0 deletions keyboards/keebzdotnet/fme/matrix_diagram.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Matrix Diagram for keebzdotnet FMe

```
┌───┬───┬───┬───┬───┐
│00 │13 │14 │12 │10 │
└┬──┴┬──┴┬──┴┬──┴───┤
│11 │04 │02 │03 │
├───┴───┴──┬┴──┬───┤
│22 │32 │01 │ ┐
└──────────┴───┴───┘ ├─ 2x1u or
┌───────┐ │ 1x2u
│21 │ ┘
└───────┘
```

0 comments on commit a662d36

Please sign in to comment.