GMMK 2 WBG7 MCU compatibility (#16436)

* GMMK V2 QMK Compatibility

* fix problems

* Update keyboards/gmmk/gmmk2/config.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/config.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Fix a minor problem

* Optimize the code

* Update config.h

* Update

* Update config.h

* Update keyboards/gmmk/gmmk2/p96/ansi/keymaps/via/config.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update config.h

* Update keyboards/gmmk/gmmk2/p96/iso/keymaps/via/config.h

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update config.h

* Update keyboards/gmmk/gmmk2/p65/ansi/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/p96/ansi/keymaps/default/keymap.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/p96/ansi/keymaps/via/keymap.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/p96/ansi/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/p96/iso/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update keyboards/gmmk/gmmk2/p65/iso/rules.mk

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Update config.h

* Update config.h

* Update config.h

* Modify device pid

* Add gmmk2_p96 keyboard.

* Add gmmk2_p96 keyboard.

* Update led matrix.

* Update led matrix.

* Delete eeprom_flash.c

* Update keyboards/gmmk/gmmk2/p96/ansi/rules.mk

Co-authored-by: Nick Brassel <nick@tzarc.org>

* Update from qmk develop branch

* Increased compatibility with wear_leveling.

* Update config.h

Co-authored-by: Joy <chang.li@westberrytech.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
GloriousThrall
2022-07-12 02:30:54 -05:00
committed by GitHub
parent a768ec265d
commit bbd6ea977c
27 changed files with 1612 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#define ___ KC_NO
// ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Prt Del Ins PgUp PgDn
// ` 1 2 3 4 5 6 7 8 9 0 - = BSpc Num / * -
// Tab Q W E R T Y U I O P [ ] \\ 7 8 9 +
// Caps A S D F G H J K L ; ' Enter 4 5 6 +
// Sh_L Z X C V B N M , . / Sh_R Up 1 2 3 Enter
// Ct_L Win_L Alt_L SPACE Alt_R FN Ct_R Left Down Right 0 . Enter
// clang-format off
#define LAYOUT( \
k00, k10, k20, k30, k40, k50, k60, k70, k80, k90, ka0, kb0, kc0, kd0, k06, k16, k26, k36,\
k01, k11, k21, k31, k41, k51, k61, k71, k81, k91, ka1, kb1, kc1, kd1, k46, k56, k66, k76,\
k02, k12, k22, k32, k42, k52, k62, k72, k82, k92, ka2, kb2, kc2, kd2, k86, k96, ka6, kb6,\
k03, k13, k23, k33, k43, k53, k63, k73, k83, k93, ka3, kb3, kd3, ka7, kb7, kc7, \
k04, k24, k34, k44, k54, k64, k74, k84, k94, ka4, kb4, kd4, k17, k67, k77, k87, k97,\
k05, k15, k25, k65, k95, ka5, kc5, k07, k27, k37, k47, k57 \
)\
{\
{ k00, k01, k02, k03, k04, k05, k06, k07},\
{ k10, k11, k12, k13, ___, k15, k16, k17},\
{ k20, k21, k22, k23, k24, k25, k26, k27},\
{ k30, k31, k32, k33, k34, ___, k36, k37},\
{ k40, k41, k42, k43, k44, ___, k46, k47},\
{ k50, k51, k52, k53, k54, ___, k56, k57},\
{ k60, k61, k62, k63, k64, k65, k66, k67},\
{ k70, k71, k72, k73, k74, ___, k76, k77},\
{ k80, k81, k82, k83, k84, ___, k86, k87},\
{ k90, k91, k92, k93, k94, k95, k96, k97},\
{ ka0, ka1, ka2, ka3, ka4, ka5, ka6, ka7},\
{ kb0, kb1, kb2, kb3, kb4, ___, kb6, kb7},\
{ kc0, kc1, kc2, ___, ___, kc5, ___, kc7},\
{ kd0, kd1, kd2, kd3, kd4, ___, ___, ___} \
}

View File

@@ -0,0 +1,21 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define PRODUCT_ID 0x504B

View File

@@ -0,0 +1,119 @@
{
"keyboard_name": "GMMK V2 96 ANSI",
"url": "http://www.pcgamingrace.com",
"maintainer": "GloriousThrall",
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "ESC", "x": 0, "y": 0 },
{ "label": "F1", "x": 1.25, "y": 0 },
{ "label": "F2", "x": 2.25, "y": 0 },
{ "label": "F3", "x": 3.25, "y": 0 },
{ "label": "F4", "x": 4.25, "y": 0 },
{ "label": "F5", "x": 5.5, "y": 0 },
{ "label": "F6", "x": 6.5, "y": 0 },
{ "label": "F7", "x": 7.5, "y": 0 },
{ "label": "F8", "x": 8.5, "y": 0 },
{ "label": "F9", "x": 9.75, "y": 0 },
{ "label": "F10", "x": 10.75, "y": 0 },
{ "label": "F11", "x": 11.75, "y": 0 },
{ "label": "F12", "x": 12.75, "y": 0 },
{ "label": "Printscreen", "x": 14, "y": 0 },
{ "label": "Delete", "x": 15.5, "y": 0 },
{ "label": "Insert", "x": 16.5, "y": 0 },
{ "label": "Page Up", "x": 17.5, "y": 0 },
{ "label": "Page Down", "x": 18.5, "y": 0 },
{ "label": "`", "x": 0, "y": 1 },
{ "label": "1", "x": 1, "y": 1 },
{ "label": "2", "x": 2, "y": 1 },
{ "label": "3", "x": 3, "y": 1 },
{ "label": "4", "x": 4, "y": 1 },
{ "label": "5", "x": 5, "y": 1 },
{ "label": "6", "x": 6, "y": 1 },
{ "label": "7", "x": 7, "y": 1 },
{ "label": "8", "x": 8, "y": 1 },
{ "label": "9", "x": 9, "y": 1 },
{ "label": "0", "x": 10, "y": 1 },
{ "label": "-", "x": 11, "y": 1 },
{ "label": "=", "x": 12, "y": 1 },
{ "label": "Backspace", "x": 13, "y": 1, "w": 2},
{ "label": "Num Lock", "x": 15.5, "y": 1 },
{ "label": "/", "x": 16.5, "y": 1 },
{ "label": "*", "x": 17.5, "y": 1 },
{ "label": "-", "x": 18.5, "y": 1 },
{ "label": "Tab", "x": 0, "y": 2, "w": 1.5},
{ "label": "Q", "x": 1.5, "y": 2 },
{ "label": "W", "x": 2.5, "y": 2 },
{ "label": "E", "x": 3.5, "y": 2 },
{ "label": "R", "x": 4.5, "y": 2 },
{ "label": "T", "x": 5.5, "y": 2 },
{ "label": "Y", "x": 6.5, "y": 2 },
{ "label": "U", "x": 7.5, "y": 2 },
{ "label": "I", "x": 8.5, "y": 2 },
{ "label": "O", "x": 9.5, "y": 2 },
{ "label": "P", "x": 10.5, "y": 2 },
{ "label": "[", "x": 11.5, "y": 2 },
{ "label": "]", "x": 12.5, "y": 2 },
{ "label": "\\", "x": 13.5, "y": 2 , "w": 1.25},
{ "label": "7", "x": 15.5, "y": 2 },
{ "label": "8", "x": 16.5, "y": 2 },
{ "label": "9", "x": 17.5, "y": 2, "w": 1.5},
{ "label": "+", "x": 18.5, "y": 2 ,"h":2},
{ "label": "Caps Lock", "x": 0, "y": 3, "w": 1.75},
{ "label": "A", "x": 1.75, "y": 3 },
{ "label": "S", "x": 2.75, "y": 3 },
{ "label": "D", "x": 3.75, "y": 3 },
{ "label": "F", "x": 4.75, "y": 3 },
{ "label": "G", "x": 5.75, "y": 3 },
{ "label": "H", "x": 6.75, "y": 3 },
{ "label": "J", "x": 7.75, "y": 3 },
{ "label": "K", "x": 8.75, "y": 3 },
{ "label": "L", "x": 9.75, "y": 3 },
{ "label": ";", "x": 10.75, "y": 3 },
{ "label": "'", "x": 11.75, "y": 3 },
{ "label": "Enter", "x": 12.75, "y": 3, "w": 2.25 },
{ "label": "4", "x": 15.5, "y": 3 },
{ "label": "5", "x": 16.5, "y": 3 },
{ "label": "6", "x": 17.5, "y": 3 },
{ "label": "Shift", "x": 0, "y": 4, "w": 2.25},
{ "label": "Z", "x": 2.25, "y": 4 },
{ "label": "X", "x": 3.25, "y": 4 },
{ "label": "C", "x": 4.25, "y": 4 },
{ "label": "V", "x": 5.25, "y": 4 },
{ "label": "B", "x": 6.25, "y": 4 },
{ "label": "N", "x": 7.25, "y": 4 },
{ "label": "M", "x": 8.25, "y": 4 },
{ "label": ",", "x": 9.25, "y": 4 },
{ "label": ".", "x": 10.25, "y": 4 },
{ "label": "/", "x": 11.25, "y": 4 },
{ "label": "Shift", "x": 12.25, "y": 4, "w": 1.75},
{ "label": "Up", "x": 14.25, "y": 4 },
{ "label": "1", "x": 15.5, "y": 4 },
{ "label": "2", "x": 16.5, "y": 4 },
{ "label": "3", "x": 17.5, "y": 4 },
{ "label": "Enter", "x": 18.5, "y": 4 ,"h":2},
{ "label": "Ctrl", "x": 0, "y": 5, "w": 1.25},
{ "label": "Win", "x": 1.25, "y": 5, "w": 1.25},
{ "label": "Alt", "x": 2.5, "y": 5, "w": 1.25},
{ "label": "Space", "x": 3.75, "y": 5, "w": 6.25},
{ "label": "Alt", "x": 10, "y": 5 },
{ "label": "FN", "x": 11, "y": 5 },
{ "label": "Ctrl", "x": 12, "y": 5 },
{ "label": "Left", "x": 13.25, "y": 5 },
{ "label": "Down", "x": 14.25, "y": 5 },
{ "label": "Right", "x": 15.25, "y": 5 },
{ "label": "0", "x": 16.5, "y": 5 },
{ "label": ".", "x": 17.5, "y": 5 }
]
}
}
}

View File

@@ -0,0 +1,46 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
enum custom_layers {
_BL,
_FL,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap _BL: Base Layer (Default Layer)
*/
[_BL] = LAYOUT(
KC_GESC, 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_DEL, KC_INS, KC_PGUP, KC_PGDN,
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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
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_P7, KC_P8, KC_P9, KC_PPLS,
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_P4, KC_P5, KC_P6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT),
/* Keymap _FL: Function Layer
*/
[_FL] = LAYOUT(
RESET, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MRWD, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLU, KC_VOLD, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, RGB_HUI, RGB_HUD, RGB_SPD, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, _______, _______, _______,
_______, UC_M_WI, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD, _______, _______)
};

View File

@@ -0,0 +1 @@
# ANSI GMMKV2 96% Layout

View File

@@ -0,0 +1,22 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
#define STM32_USB_USE_OTG1 TRUE

View File

@@ -0,0 +1,53 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
enum custom_layers {
_BL,
_FL,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap _BL: Base Layer (Default Layer)
*/
[_BL] = LAYOUT(
KC_GESC, 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_DEL, KC_INS, KC_PGUP, KC_PGDN,
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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
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_P7, KC_P8, KC_P9, KC_PPLS,
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_P4, KC_P5, KC_P6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT),
/* Keymap _FL: Function Layer
*/
[_FL] = LAYOUT(
RESET, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MRWD, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLU, KC_VOLD, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, RGB_HUI, RGB_HUD, RGB_SPD, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, _______, _______, _______,
_______, UC_M_WI, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD, _______, _______),
[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
};

View File

@@ -0,0 +1 @@
VIA_ENABLE = yes

View File

@@ -0,0 +1,23 @@
# GMMK V2 96% (ANSI)
A keyboard made and sold by Glorious LLC. Equipped with the WestBerry G7 ARM Cortex-M4 microcontroller
* Keyboard Maintainer: [GloriousThrall](https://github.com/GloriousThrall)
* Hardware Supported: GMMK V2
* Hardware Availability: [GloriousPCGaming.com](https://www.pcgamingrace.com)
Make example for this keyboard (after setting up your build environment):
make gmmk/gmmk2/p96/ansi:default
Flashing example for this keyboard:
make gmmk/gmmk2/p96/ansi:default:flash
To reset the board into bootloader mode, do one of the following:
* Hold the Reset switch mounted on the surface of the PCB while connecting the USB cable (remove the spacebar key and press and hold the pin on the right side)
* Hold the Escape key while connecting the USB cable (also erases persistent settings)
* Fn+Backslash will reset the board to bootloader mode if you have flashed the default QMK keymap
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

View File

@@ -0,0 +1,22 @@
# MCU name
MCU = WB32F3G71
# Bootloader selection
BOOTLOADER = wb32-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite.
MOUSEKEY_ENABLE = yes # Mouse keys.
EXTRAKEY_ENABLE = yes # Audio control and System control.
CONSOLE_ENABLE = no # Console for debug.
COMMAND_ENABLE = no # Commands for debug and configuration.
NKRO_ENABLE = yes # Enable NKRO Rollover.
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality.
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow.
AUDIO_ENABLE = no # Audio output.
RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects.
RGB_MATRIX_DRIVER = AW20216 # Enable RGB matrix effects.
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

View File

@@ -0,0 +1,130 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
/* USB Device descriptor parameter */
#define DEVICE_VER 0x0001
#define VENDOR_ID 0x320F
#define MANUFACTURER Glorious
#define PRODUCT GMMK 2 96
/* key matrix size */
#define MATRIX_ROWS 14
#define MATRIX_COLS 8
#define MATRIX_ROW_PINS \
{ B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12, B13 }
#define MATRIX_COL_PINS \
{ A0, A1, A2, A3, A4, A8, A9, A10 }
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Hold ESC on start up to clear EEPROM and boot into bootloader mode */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define TAP_CODE_DELAY 10
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define RGB_DISABLE_WHEN_USB_SUSPENDED
/* External spi flash */
#define EXTERNAL_FLASH_SPI_SLAVE_SELECT_PIN B14
#define WEAR_LEVELING_BACKING_SIZE 2048
/* SPI Config for LED Driver */
#define SPI_DRIVER SPIDQ
#define SPI_SCK_PIN A5
#define SPI_MOSI_PIN A7
#define SPI_MISO_PIN A6
#define DRIVER_1_CS A15
#define DRIVER_2_CS B15
#define DRIVER_1_EN C13
#define DRIVER_2_EN C13
#define DRIVER_COUNT 2
#define DRIVER_1_LED_TOTAL 66
#define DRIVER_2_LED_TOTAL 54
#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
// RGB Matrix Animation modes. Explicitly enabled
// For full list of effects, see:
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
#define ENABLE_RGB_MATRIX_ALPHAS_MODS
#define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
#define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_BREATHING
#define ENABLE_RGB_MATRIX_BAND_SAT
#define ENABLE_RGB_MATRIX_BAND_VAL
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
#define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
#define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
#define ENABLE_RGB_MATRIX_CYCLE_ALL
#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
#define ENABLE_RGB_MATRIX_DUAL_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_BEACON
#define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
#define ENABLE_RGB_MATRIX_RAINDROPS
#define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
#define ENABLE_RGB_MATRIX_HUE_BREATHING
#define ENABLE_RGB_MATRIX_HUE_PENDULUM
#define ENABLE_RGB_MATRIX_HUE_WAVE
#define ENABLE_RGB_MATRIX_PIXEL_RAIN
#define ENABLE_RGB_MATRIX_PIXEL_FLOW
#define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
#define ENABLE_RGB_MATRIX_TYPING_HEATMAP
#define ENABLE_RGB_MATRIX_DIGITAL_RAIN
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
#define ENABLE_RGB_MATRIX_SPLASH
#define ENABLE_RGB_MATRIX_MULTISPLASH
#define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
/* Send up to 4 key press events per scan */
#define QMK_KEYS_PER_SCAN 4
/* Set debounce time to 5ms */
#define DEBOUNCE 5
/* Force NKRO on boot up regardless of the setting saved in the EEPROM (uncomment to enable it) */
// #define FORCE_NKRO

View File

@@ -0,0 +1,29 @@
/* Copyright (C) 2021 Westberry Technology (ChangZhou) Corp., Ltd
*
* 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://www.gnu.org/licenses/>.
*/
/*
* This file was auto-generated by:
* `qmk chibios-confmigrate -i keyboards/wb_support/gmmk2/halconf.h -r platforms/chibios/boards/common/configs/halconf.h`
*/
#pragma once
#define HAL_USE_SPI TRUE
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
#include_next <halconf.h>

View File

@@ -0,0 +1,21 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define PRODUCT_ID 0x505A

View File

@@ -0,0 +1,120 @@
{
"keyboard_name": "GMMK V2 96 ISO",
"url": "http://www.pcgamingrace.com",
"maintainer": "GloriousThrall",
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "ESC", "x": 0, "y": 0 },
{ "label": "F1", "x": 1.25, "y": 0 },
{ "label": "F2", "x": 2.25, "y": 0 },
{ "label": "F3", "x": 3.25, "y": 0 },
{ "label": "F4", "x": 4.25, "y": 0 },
{ "label": "F5", "x": 5.5, "y": 0 },
{ "label": "F6", "x": 6.5, "y": 0 },
{ "label": "F7", "x": 7.5, "y": 0 },
{ "label": "F8", "x": 8.5, "y": 0 },
{ "label": "F9", "x": 9.75, "y": 0 },
{ "label": "F10", "x": 10.75, "y": 0 },
{ "label": "F11", "x": 11.75, "y": 0 },
{ "label": "F12", "x": 12.75, "y": 0 },
{ "label": "Printscreen", "x": 14, "y": 0 },
{ "label": "Delete", "x": 15.5, "y": 0 },
{ "label": "Insert", "x": 16.5, "y": 0 },
{ "label": "Page Up", "x": 17.5, "y": 0 },
{ "label": "Page Down", "x": 18.5, "y": 0 },
{ "label": "`", "x": 0, "y": 1 },
{ "label": "1", "x": 1, "y": 1 },
{ "label": "2", "x": 2, "y": 1 },
{ "label": "3", "x": 3, "y": 1 },
{ "label": "4", "x": 4, "y": 1 },
{ "label": "5", "x": 5, "y": 1 },
{ "label": "6", "x": 6, "y": 1 },
{ "label": "7", "x": 7, "y": 1 },
{ "label": "8", "x": 8, "y": 1 },
{ "label": "9", "x": 9, "y": 1 },
{ "label": "0", "x": 10, "y": 1 },
{ "label": "-", "x": 11, "y": 1 },
{ "label": "=", "x": 12, "y": 1 },
{ "label": "Backspace", "x": 13, "y": 1, "w": 2},
{ "label": "Num Lock", "x": 15.5, "y": 1 },
{ "label": "/", "x": 16.5, "y": 1 },
{ "label": "*", "x": 17.5, "y": 1 },
{ "label": "-", "x": 18.5, "y": 1 },
{ "label": "Tab", "x": 0, "y": 2, "w": 1.5},
{ "label": "Q", "x": 1.5, "y": 2 },
{ "label": "W", "x": 2.5, "y": 2 },
{ "label": "E", "x": 3.5, "y": 2 },
{ "label": "R", "x": 4.5, "y": 2 },
{ "label": "T", "x": 5.5, "y": 2 },
{ "label": "Y", "x": 6.5, "y": 2 },
{ "label": "U", "x": 7.5, "y": 2 },
{ "label": "I", "x": 8.5, "y": 2 },
{ "label": "O", "x": 9.5, "y": 2 },
{ "label": "P", "x": 10.5, "y": 2 },
{ "label": "[", "x": 11.5, "y": 2 },
{ "label": "]", "x": 12.5, "y": 2 },
{ "label": "Enter", "x": 13.5, "y": 2 ,"h":2, "w": 1.25},
{ "label": "7", "x": 15.5, "y": 2 },
{ "label": "8", "x": 16.5, "y": 2 },
{ "label": "9", "x": 17.5, "y": 2, "w": 1.5},
{ "label": "+", "x": 18.5, "y": 2 ,"h":2},
{ "label": "Caps Lock", "x": 0, "y": 3, "w": 1.75},
{ "label": "A", "x": 1.75, "y": 3 },
{ "label": "S", "x": 2.75, "y": 3 },
{ "label": "D", "x": 3.75, "y": 3 },
{ "label": "F", "x": 4.75, "y": 3 },
{ "label": "G", "x": 5.75, "y": 3 },
{ "label": "H", "x": 6.75, "y": 3 },
{ "label": "J", "x": 7.75, "y": 3 },
{ "label": "K", "x": 8.75, "y": 3 },
{ "label": "L", "x": 9.75, "y": 3 },
{ "label": ";", "x": 10.75, "y": 3 },
{ "label": "'", "x": 11.75, "y": 3 },
{ "label": "#", "x": 12.75, "y": 3 },
{ "label": "4", "x": 15.5, "y": 3 },
{ "label": "5", "x": 16.5, "y": 3 },
{ "label": "6", "x": 17.5, "y": 3 },
{ "label": "Shift", "x": 0, "y": 4, "w": 1.25},
{ "label": "\\", "x": 1.25, "y": 4 },
{ "label": "Z", "x": 2.25, "y": 4 },
{ "label": "X", "x": 3.25, "y": 4 },
{ "label": "C", "x": 4.25, "y": 4 },
{ "label": "V", "x": 5.25, "y": 4 },
{ "label": "B", "x": 6.25, "y": 4 },
{ "label": "N", "x": 7.25, "y": 4 },
{ "label": "M", "x": 8.25, "y": 4 },
{ "label": ",", "x": 9.25, "y": 4 },
{ "label": ".", "x": 10.25, "y": 4 },
{ "label": "/", "x": 11.25, "y": 4 },
{ "label": "Shift", "x": 12.25, "y": 4, "w": 1.75},
{ "label": "Up", "x": 14.25, "y": 4 },
{ "label": "1", "x": 15.5, "y": 4 },
{ "label": "2", "x": 16.5, "y": 4 },
{ "label": "3", "x": 17.5, "y": 4 },
{ "label": "Enter", "x": 18.5, "y": 4 ,"h":2},
{ "label": "Ctrl", "x": 0, "y": 5, "w": 1.25},
{ "label": "Win", "x": 1.25, "y": 5, "w": 1.25},
{ "label": "Alt", "x": 2.5, "y": 5, "w": 1.25},
{ "label": "Space", "x": 3.75, "y": 5, "w": 6.25},
{ "label": "Alt", "x": 10, "y": 5 },
{ "label": "FN", "x": 11, "y": 5 },
{ "label": "Ctrl", "x": 12, "y": 5 },
{ "label": "Left", "x": 13.25, "y": 5 },
{ "label": "Down", "x": 14.25, "y": 5 },
{ "label": "Right", "x": 15.25, "y": 5 },
{ "label": "0", "x": 16.5, "y": 5 },
{ "label": ".", "x": 17.5, "y": 5 }
]
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#define ___ KC_NO
// ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Prt Del Ins PgUp PgDn
// ` 1 2 3 4 5 6 7 8 9 0 - = BSpc Num / * -
// Tab Q W E R T Y U I O P [ ] Enter 7 8 9 +
// Caps A S D F G H J K L ; ' # Enter 4 5 6 +
// Sh_L \ Z X C V B N M , . / Sh_R Up 1 2 3 Enter
// Ct_L Win_L Alt_L SPACE Alt_R FN Ct_R Left Down Right 0 . Enter
// clang-format off
#define LAYOUT( \
k00, k10, k20, k30, k40, k50, k60, k70, k80, k90, ka0, kb0, kc0, kd0, k06, k16, k26, k36,\
k01, k11, k21, k31, k41, k51, k61, k71, k81, k91, ka1, kb1, kc1, kd1, k46, k56, k66, k76,\
k02, k12, k22, k32, k42, k52, k62, k72, k82, k92, ka2, kb2, kc2, kd3, k86, k96, ka6, kb6,\
k03, k13, k23, k33, k43, k53, k63, k73, k83, k93, ka3, kb3, kc3, ka7, kb7, kc7, \
k04, k14, k24, k34, k44, k54, k64, k74, k84, k94, ka4, kb4, kd4, k17, k67, k77, k87, k97,\
k05, k15, k25, k65, k95, ka5, kc5, k07, k27, k37, k47, k57 \
)\
{\
{ k00, k01, k02, k03, k04, k05, k06, k07},\
{ k10, k11, k12, k13, k14, k15, k16, k17},\
{ k20, k21, k22, k23, k24, k25, k26, k27},\
{ k30, k31, k32, k33, k34, ___, k36, k37},\
{ k40, k41, k42, k43, k44, ___, k46, k47},\
{ k50, k51, k52, k53, k54, ___, k56, k57},\
{ k60, k61, k62, k63, k64, k65, k66, k67},\
{ k70, k71, k72, k73, k74, ___, k76, k77},\
{ k80, k81, k82, k83, k84, ___, k86, k87},\
{ k90, k91, k92, k93, k94, k95, k96, k97},\
{ ka0, ka1, ka2, ka3, ka4, ka5, ka6, ka7},\
{ kb0, kb1, kb2, kb3, kb4, ___, kb6, kb7},\
{ kc0, kc1, kc2, kc3, ___, kc5, ___, kc7},\
{ kd0, kd1, ___, kd3, kd4, ___, ___, ___} \
}

View File

@@ -0,0 +1,44 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
#define _BL 0
#define _FL 1
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap _BL: Base Layer (Default Layer)
*/
[_BL] = LAYOUT(
KC_GESC, 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_DEL, KC_INS, KC_PGUP, KC_PGDN,
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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
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_ENT, KC_P7, KC_P8, KC_P9, KC_PPLS,
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_NUHS, KC_P4, KC_P5, KC_P6,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT),
/* Keymap _FL: Function Layer
*/
[_FL] = LAYOUT(
RESET, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MRWD, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLU, KC_VOLD, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, RGB_SAI, RGB_SAD, RGB_SPD, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, _______, _______, _______,
_______, UC_M_WI, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD, _______, _______)
};

View File

@@ -0,0 +1 @@
# ISO GMMKV2 96% Layout

View File

@@ -0,0 +1,22 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
#define STM32_USB_USE_OTG1 TRUE

View File

@@ -0,0 +1,51 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
#define _BL 0
#define _FL 1
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap _BL: Base Layer (Default Layer)
*/
[_BL] = LAYOUT(
KC_GESC, 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_DEL, KC_INS, KC_PGUP, KC_PGDN,
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_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
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_ENT, KC_P7, KC_P8, KC_P9, KC_PPLS,
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_NUHS, KC_P4, KC_P5, KC_P6,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT),
/* Keymap _FL: Function Layer
*/
[_FL] = LAYOUT(
RESET, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MRWD, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLU, KC_VOLD, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, RGB_SAI, RGB_SAD, RGB_SPD, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, _______, _______, _______,
_______, UC_M_WI, _______, _______, _______, _______, _______, RGB_RMOD, RGB_VAD, RGB_MOD, _______, _______),
[2] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
};

View File

@@ -0,0 +1 @@
VIA_ENABLE = yes

View File

@@ -0,0 +1,23 @@
# GMMK V2 96% (ISO)
A keyboard made and sold by Glorious LLC. Equipped with the WestBerry G7 ARM Cortex-M4 microcontroller
* Keyboard Maintainer: [GloriousThrall](https://github.com/GloriousThrall)
* Hardware Supported: GMMK V2
* Hardware Availability: [GloriousPCGaming.com](https://www.pcgamingrace.com)
Make example for this keyboard (after setting up your build environment):
make gmmk/gmmk2/p96/iso:default
Flashing example for this keyboard:
make gmmk/gmmk2/p96/iso:default:flash
To reset the board into bootloader mode, do one of the following:
* Hold the Reset switch mounted on the surface of the PCB while connecting the USB cable (remove the spacebar key and press and hold the pin on the right side)
* Hold the Escape key while connecting the USB cable (also erases persistent settings)
* Fn+Backslash will reset the board to bootloader mode if you have flashed the default QMK keymap
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

View File

@@ -0,0 +1,22 @@
# MCU name
MCU = WB32F3G71
# Bootloader selection
BOOTLOADER = wb32-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite.
MOUSEKEY_ENABLE = yes # Mouse keys.
EXTRAKEY_ENABLE = yes # Audio control and System control.
CONSOLE_ENABLE = no # Console for debug.
COMMAND_ENABLE = no # Commands for debug and configuration.
NKRO_ENABLE = yes # Enable NKRO Rollover.
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality.
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow.
AUDIO_ENABLE = no # Audio output.
RGB_MATRIX_ENABLE = yes # Enable RGB matrix effects.
RGB_MATRIX_DRIVER = AW20216 # Enable RGB matrix effects.
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = spi_flash

View File

@@ -0,0 +1,30 @@
/* Copyright (C) 2021 Westberry Technology (ChangZhou) Corp., Ltd
*
* 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://www.gnu.org/licenses/>.
*/
/*
* This file was auto-generated by:
* `qmk chibios-confmigrate -i keyboards/wb_support/gmmk2/mcuconf.h -r platforms/chibios/GENERIC_WB32_F3G71XX/configs/mcuconf.h`
*/
#pragma once
#include_next <mcuconf.h>
#undef WB32_SPI_USE_QSPI
#define WB32_SPI_USE_QSPI TRUE
#undef WB32_SPI_USE_SPIM2
#define WB32_SPI_USE_SPIM2 TRUE

View File

@@ -0,0 +1,17 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#include "p96.h"

View File

@@ -0,0 +1,25 @@
/* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com>
*
* 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://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#if defined(KEYBOARD_gmmk_gmmk2_p96_ansi)
# include "ansi/ansi.h"
#elif defined(KEYBOARD_gmmk_gmmk2_p96_iso)
# include "iso/iso.h"
#endif // GMMK V2 revisions