Space Holdings Nebula12B (#20821)

* info.json: apply friendly formatting

* rename LAYOUT_all to LAYOUT_ortho_4x3
This commit is contained in:
James Young 2023-05-09 17:33:25 -07:00 committed by GitHub
parent 075c08733e
commit 8819793f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 19 deletions

View File

@ -21,24 +21,27 @@
"diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {
"LAYOUT_all": "LAYOUT_ortho_4x3"
},
"layouts": {
"LAYOUT_all": {
"LAYOUT_ortho_4x3": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"label": "7", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "8", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "9", "matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"label": "4", "matrix": [1, 0], "x": 0, "y": 1},
{"label": "5", "matrix": [1, 1], "x": 1, "y": 1},
{"label": "6", "matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"label": "1", "matrix": [2, 0], "x": 0, "y": 2},
{"label": "2", "matrix": [2, 1], "x": 1, "y": 2},
{"label": "3", "matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [3, 0], "x": 0, "y": 3},
{"matrix": [3, 1], "x": 1, "y": 3},
{"matrix": [3, 2], "x": 2, "y": 3}
{"label": "Fn", "matrix": [3, 0], "x": 0, "y": 3},
{"label": "0", "matrix": [3, 1], "x": 1, "y": 3},
{"label": ".", "matrix": [3, 2], "x": 2, "y": 3}
]
}
}

View File

@ -16,13 +16,13 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all( /* Base */
[0] = LAYOUT_ortho_4x3( /* Base */
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3,
MO(1), KC_P0, KC_PDOT),
[1] = LAYOUT_all( /* FN */
[1] = LAYOUT_ortho_4x3( /* FN */
RGB_TOG, RGB_MOD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,

View File

@ -16,25 +16,25 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all( /* Base */
[0] = LAYOUT_ortho_4x3( /* Base */
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3,
MO(1), KC_P0, KC_PDOT),
[1] = LAYOUT_all( /* FN */
[1] = LAYOUT_ortho_4x3( /* FN */
RGB_TOG, RGB_MOD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_PENT),
[2] = LAYOUT_all( /* Empty for dynamic keymaps */
[2] = LAYOUT_ortho_4x3( /* Empty for dynamic keymaps */
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS),
[3] = LAYOUT_all( /* Empty for dynamic keymaps */
[3] = LAYOUT_ortho_4x3( /* Empty for dynamic keymaps */
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,