Skip to content

Commit

Permalink
GG Keyboards Genesis: Layout Macro update and clean-up (#14606)
Browse files Browse the repository at this point in the history
* Genesis Hotswap: rename LAYOUT to LAYOUT_tkl_ansi

* Genesis Hotswap: delete blank layers from default keymap

Results in a smaller compiled firmware size.

* Genesis Hotswap: tidy-up via keymap

Fixes the visual alignment of keycodes.

* Genesis Hotswap: specify Hotswap in info.json

* Genesis Hotswap: enable Community Layout support

* Genesis Hotswap: remove KBFirmware Parser references

* Genesis Hotswap: specify Hotswap in config.h

* Genesis Solder: correct keyboard layout

* Genesis Solder: rename LAYOUT to LAYOUT_all

I don't actually know with certainty that this *is* LAYOUT_all, but in the absence of more concrete information, I'm going with this.

* Genesis Solder: delete blank layers from default keymap

Results in a smaller compiled firmware size.

* Genesis Solder: tidy-up via keymap

Fixes the visual alignment of keycodes.

* Genesis Solder: specify Hotswap in info.json

* Genesis Solder: add LAYOUT_tkl_ansi

* Genesis Solder: enable Community Layout support

* Genesis Solder: remove KBFirmware Parser references

* Genesis Solder: specify Solder in config.h
  • Loading branch information
noroadsleft committed Sep 26, 2021
1 parent 532cfd5 commit 14f0a41
Show file tree
Hide file tree
Showing 14 changed files with 234 additions and 167 deletions.
5 changes: 1 addition & 4 deletions keyboards/ggkeyboards/genesis/hotswap/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define PRODUCT_ID 0xD4D3
#define DEVICE_VER 0x0001
#define MANUFACTURER GG Keyboards
#define PRODUCT Genesis
#define PRODUCT Genesis Hotswap

/* key matrix size */
#define MATRIX_ROWS 6
Expand All @@ -45,6 +45,3 @@
{ F0, F1, F2, F3, F4, F5, F6, F7, A0, A1, A2, A3, A4, A5, A6, A7, C6, C7 }

#define DIODE_DIRECTION COL2ROW

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
5 changes: 0 additions & 5 deletions keyboards/ggkeyboards/genesis/hotswap/hotswap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* Copyright 2021 Steven Phillips (Spooknik)
*
* This program is free software: you can redistribute it and/or modify
Expand All @@ -16,7 +15,3 @@
*/

#include "hotswap.h"

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/

5 changes: 1 addition & 4 deletions keyboards/ggkeyboards/genesis/hotswap/hotswap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "quantum.h"

// clang-format off
#define LAYOUT( \
#define LAYOUT_tkl_ansi( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0F, K0G, K0H, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2F, K2G, K2H, \
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3F, K3G, K3H, \
Expand All @@ -34,6 +34,3 @@
{ KC_NO, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, K5B, K5C, KC_NO, KC_NO, KC_NO, K5G, KC_NO }, \
{ K60, K61, KC_NO, K63, KC_NO, KC_NO, K66, KC_NO, KC_NO, KC_NO, K6A, K6B, K6C, K6D, KC_NO, K6F, K6G, K6H } \
}

// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
13 changes: 10 additions & 3 deletions keyboards/ggkeyboards/genesis/hotswap/info.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"keyboard_name": "Genesis",
"keyboard_name": "Genesis Hotswap",
"url": "",
"maintainer": "Spooknik",
"layout_aliases": {
"LAYOUT": "LAYOUT_tkl_ansi"
},
"layouts": {
"LAYOUT": {
"LAYOUT_tkl_ansi": {
"layout": [
{"label":"K00 (C5,F0)", "x":0, "y":0},
{"label":"K01 (C5,F1)", "x":2, "y":0},
Expand All @@ -21,6 +24,7 @@
{"label":"K0F (C5,A7)", "x":15.25, "y":0},
{"label":"K0G (C5,C6)", "x":16.25, "y":0},
{"label":"K0H (C5,C7)", "x":17.25, "y":0},

{"label":"K20 (C4,F0)", "x":0, "y":1.5},
{"label":"K21 (C4,F1)", "x":1, "y":1.5},
{"label":"K22 (C4,F2)", "x":2, "y":1.5},
Expand All @@ -38,6 +42,7 @@
{"label":"K2F (C4,A7)", "x":15.25, "y":1.5},
{"label":"K2G (C4,C6)", "x":16.25, "y":1.5},
{"label":"K2H (C4,C7)", "x":17.25, "y":1.5},

{"label":"K30 (C3,F0)", "x":0, "y":2.5, "w":1.5},
{"label":"K31 (C3,F1)", "x":1.5, "y":2.5},
{"label":"K32 (C3,F2)", "x":2.5, "y":2.5},
Expand All @@ -55,6 +60,7 @@
{"label":"K3F (C3,A7)", "x":15.25, "y":2.5},
{"label":"K3G (C3,C6)", "x":16.25, "y":2.5},
{"label":"K3H (C3,C7)", "x":17.25, "y":2.5},

{"label":"K40 (C2,F0)", "x":0, "y":3.5, "w":1.75},
{"label":"K42 (C2,F2)", "x":1.75, "y":3.5},
{"label":"K43 (C2,F3)", "x":2.75, "y":3.5},
Expand All @@ -68,6 +74,7 @@
{"label":"K4B (C2,A3)", "x":10.75, "y":3.5},
{"label":"K4C (C2,A4)", "x":11.75, "y":3.5},
{"label":"K4D (C2,A5)", "x":12.75, "y":3.5, "w":2.25},

{"label":"K51 (C1,F1)", "x":0, "y":4.5, "w":2.25},
{"label":"K52 (C1,F2)", "x":2.25, "y":4.5},
{"label":"K53 (C1,F3)", "x":3.25, "y":4.5},
Expand All @@ -81,6 +88,7 @@
{"label":"K5B (C1,A3)", "x":11.25, "y":4.5},
{"label":"K5C (C1,A4)", "x":12.25, "y":4.5, "w":2.75},
{"label":"K5G (C1,C6)", "x":16.25, "y":4.5},

{"label":"K60 (C0,F0)", "x":0, "y":5.5, "w":1.25},
{"label":"K61 (C0,F1)", "x":1.25, "y":5.5, "w":1.25},
{"label":"K63 (C0,F3)", "x":2.5, "y":5.5, "w":1.25},
Expand All @@ -95,5 +103,4 @@
]
}
}
,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/"
}
23 changes: 3 additions & 20 deletions keyboards/ggkeyboards/genesis/hotswap/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,24 @@
* 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(
[0] = LAYOUT_tkl_ansi(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, KC_LGUI, MO(1), KC_LCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
[1] = LAYOUT_tkl_ansi(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[3] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),

};
15 changes: 7 additions & 8 deletions keyboards/ggkeyboards/genesis/hotswap/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,39 @@
* 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(
[0] = LAYOUT_tkl_ansi(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_LALT, KC_LGUI, MO(1), KC_LCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
[1] = LAYOUT_tkl_ansi(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT(
[2] = LAYOUT_tkl_ansi(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[3] = LAYOUT(
[3] = LAYOUT_tkl_ansi(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
};
};
3 changes: 1 addition & 2 deletions keyboards/ggkeyboards/genesis/hotswap/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output

# generated by KBFirmware JSON to QMK Parser
# https://noroadsleft.github.io/kbf_qmk_converter/
LAYOUTS = tkl_ansi
6 changes: 1 addition & 5 deletions keyboards/ggkeyboards/genesis/solder/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define PRODUCT_ID 0xD4D2
#define DEVICE_VER 0x0001
#define MANUFACTURER GG Keyboards
#define PRODUCT Genesis
#define PRODUCT Genesis Solder

/* key matrix size */
#define MATRIX_ROWS 6
Expand All @@ -43,7 +43,3 @@
#define MATRIX_COL_PINS { F0, F1, F2, F3, F4, F5, F6, F7, A0, A1, A2, A3, A4, A5, A6, A7, C6, C7 }

#define DIODE_DIRECTION COL2ROW


// generated by KBFirmware JSON to QMK Parser
// https://noroadsleft.github.io/kbf_qmk_converter/
Loading

0 comments on commit 14f0a41

Please sign in to comment.