forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GreatPad macropad under gkeyboard (qmk#22696)
* Add GreatPad under gkeyboard Add GreatPad macropad * Update keyboards/gkeyboard/greatpad/config.h Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/greatpad.c Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/info.json Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/info.json Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/keymaps/default/keymap.c Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/keymaps/default/keymap.c Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/keymaps/via/keymap.c Co-authored-by: jack <0x6a73@protonmail.com> * Update keyboards/gkeyboard/greatpad/keymaps/via/keymap.c Co-authored-by: jack <0x6a73@protonmail.com> * Add a license header Add a license header to glcdfont.c * Update glcdfont.c * delete file * Revert "delete file" This reverts commit 388e6f0. * Update keyboards/gkeyboard/greatpad/mcuconf.h Co-authored-by: jack <0x6a73@protonmail.com> * Update .vscode/settings.json Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/gkeyboard/greatpad/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Enable encoder Enable encoder in file info.json * Update keyboards/gkeyboard/greatpad/greatpad.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update info.json Run qmk format-json -i file info.json --------- Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
- Loading branch information
1 parent
39f06c3
commit e97ec68
Showing
12 changed files
with
1,061 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2023 gkeyboard (@gkeyboard) | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#define OLED_DISPLAY_128X64 | ||
#define I2C1_SCL_PIN GP21 | ||
#define I2C1_SDA_PIN GP20 | ||
#define I2C_DRIVER I2CD0 | ||
#define OLED_BRIGHTNESS 128 | ||
#define OLED_FONT_H "lib/glcdfont.c" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright 2023 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
#pragma once | ||
|
||
#define HAL_USE_I2C TRUE | ||
|
||
#include_next <halconf.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"manufacturer": "gkeyboard", | ||
"keyboard_name": "GreatPad", | ||
"maintainer": "gkeyboard", | ||
"bootloader": "rp2040", | ||
"diode_direction": "COL2ROW", | ||
"dynamic_keymap": { | ||
"layer_count": 10 | ||
}, | ||
"encoder": { | ||
"rotary": [ | ||
{"pin_a": "GP25", "pin_b": "GP26"}, | ||
{"pin_a": "GP0", "pin_b": "GP1"} | ||
] | ||
}, | ||
"features": { | ||
"bootmagic": true, | ||
"command": false, | ||
"console": false, | ||
"encoder": true, | ||
"extrakey": true, | ||
"mousekey": true, | ||
"nkro": true, | ||
"oled": true, | ||
"rgb_matrix": true | ||
}, | ||
"matrix_pins": { | ||
"cols": ["GP24", "GP23", "GP16", "GP11", "GP10"], | ||
"rows": ["GP6", "GP5", "GP4", "GP3", "GP2"] | ||
}, | ||
"processor": "RP2040", | ||
"rgb_matrix": { | ||
"animations": { | ||
"alphas_mods": true, | ||
"band_pinwheel_sat": true, | ||
"band_pinwheel_val": true, | ||
"band_sat": true, | ||
"band_spiral_sat": true, | ||
"band_spiral_val": true, | ||
"band_val": true, | ||
"breathing": true, | ||
"cycle_all": true, | ||
"cycle_left_right": true, | ||
"cycle_out_in": true, | ||
"cycle_out_in_dual": true, | ||
"cycle_pinwheel": true, | ||
"cycle_spiral": true, | ||
"cycle_up_down": true, | ||
"digital_rain": true, | ||
"dual_beacon": true, | ||
"gradient_left_right": true, | ||
"gradient_up_down": true, | ||
"hue_breathing": true, | ||
"hue_pendulum": true, | ||
"hue_wave": true, | ||
"jellybean_raindrops": true, | ||
"multisplash": true, | ||
"pixel_flow": true, | ||
"pixel_fractal": true, | ||
"pixel_rain": true, | ||
"rainbow_beacon": true, | ||
"rainbow_moving_chevron": true, | ||
"rainbow_pinwheels": true, | ||
"raindrops": true, | ||
"solid_color": true, | ||
"solid_multisplash": true, | ||
"solid_reactive": true, | ||
"solid_reactive_cross": true, | ||
"solid_reactive_multicross": true, | ||
"solid_reactive_multinexus": true, | ||
"solid_reactive_multiwide": true, | ||
"solid_reactive_nexus": true, | ||
"solid_reactive_simple": true, | ||
"solid_reactive_wide": true, | ||
"solid_splash": true, | ||
"splash": true, | ||
"typing_heatmap": true | ||
}, | ||
"driver": "ws2812", | ||
"layout": [ | ||
{"matrix": [1, 0], "x": 0, "y": 0, "flags": 4}, | ||
{"matrix": [1, 1], "x": 56, "y": 0, "flags": 4}, | ||
{"matrix": [1, 2], "x": 112, "y": 0, "flags": 4}, | ||
{"matrix": [1, 3], "x": 168, "y": 0, "flags": 4}, | ||
{"matrix": [1, 4], "x": 224, "y": 0, "flags": 4}, | ||
{"matrix": [2, 0], "x": 0, "y": 21, "flags": 4}, | ||
{"matrix": [2, 1], "x": 56, "y": 21, "flags": 4}, | ||
{"matrix": [2, 2], "x": 112, "y": 21, "flags": 4}, | ||
{"matrix": [2, 3], "x": 168, "y": 21, "flags": 4}, | ||
{"matrix": [2, 4], "x": 224, "y": 21, "flags": 4}, | ||
{"matrix": [3, 0], "x": 0, "y": 43, "flags": 4}, | ||
{"matrix": [3, 1], "x": 56, "y": 43, "flags": 4}, | ||
{"matrix": [3, 2], "x": 112, "y": 43, "flags": 4}, | ||
{"matrix": [3, 3], "x": 168, "y": 43, "flags": 4}, | ||
{"matrix": [3, 4], "x": 224, "y": 43, "flags": 4}, | ||
{"matrix": [4, 0], "x": 0, "y": 64, "flags": 4}, | ||
{"matrix": [4, 1], "x": 56, "y": 64, "flags": 4}, | ||
{"matrix": [4, 2], "x": 112, "y": 64, "flags": 4}, | ||
{"matrix": [4, 3], "x": 168, "y": 64, "flags": 4}, | ||
{"matrix": [4, 4], "x": 224, "y": 64, "flags": 4}, | ||
{"x": 196, "y": 53, "flags": 2}, | ||
{"x": 196, "y": 10, "flags": 2}, | ||
{"x": 140, "y": 10, "flags": 2}, | ||
{"x": 84, "y": 10, "flags": 2}, | ||
{"x": 28, "y": 10, "flags": 2}, | ||
{"x": 28, "y": 53, "flags": 2}, | ||
{"x": 84, "y": 53, "flags": 2}, | ||
{"x": 140, "y": 53, "flags": 2} | ||
], | ||
"max_brightness": 170, | ||
"sleep": true | ||
}, | ||
"url": "https://github.com/gkeyboard/GreatPad", | ||
"usb": { | ||
"device_version": "1.0.0", | ||
"pid": "0x4203", | ||
"vid": "0x474B" | ||
}, | ||
"ws2812": { | ||
"driver": "vendor", | ||
"pin": "GP22" | ||
}, | ||
"layouts": { | ||
"LAYOUT": { | ||
"layout": [ | ||
{"matrix": [0, 0], "x": 0, "y": 0}, | ||
{"matrix": [0, 4], "x": 4, "y": 0}, | ||
{"matrix": [1, 0], "x": 0, "y": 1.5}, | ||
{"matrix": [1, 1], "x": 1, "y": 1.5}, | ||
{"matrix": [1, 2], "x": 2, "y": 1.5}, | ||
{"matrix": [1, 3], "x": 3, "y": 1.5}, | ||
{"matrix": [1, 4], "x": 4, "y": 1.5}, | ||
{"matrix": [2, 0], "x": 0, "y": 2.5}, | ||
{"matrix": [2, 1], "x": 1, "y": 2.5}, | ||
{"matrix": [2, 2], "x": 2, "y": 2.5}, | ||
{"matrix": [2, 3], "x": 3, "y": 2.5}, | ||
{"matrix": [2, 4], "x": 4, "y": 2.5}, | ||
{"matrix": [3, 0], "x": 0, "y": 3.5}, | ||
{"matrix": [3, 1], "x": 1, "y": 3.5}, | ||
{"matrix": [3, 2], "x": 2, "y": 3.5}, | ||
{"matrix": [3, 3], "x": 3, "y": 3.5}, | ||
{"matrix": [3, 4], "x": 4, "y": 3.5}, | ||
{"matrix": [4, 0], "x": 0, "y": 4.5}, | ||
{"matrix": [4, 1], "x": 1, "y": 4.5}, | ||
{"matrix": [4, 2], "x": 2, "y": 4.5}, | ||
{"matrix": [4, 3], "x": 3, "y": 4.5}, | ||
{"matrix": [4, 4], "x": 4, "y": 4.5} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2023 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT( | ||
KC_MUTE, RGB_TOG, | ||
KC_P7, KC_P8, KC_P9, KC_PSLS, KC_NUM, | ||
KC_P4, KC_P5, KC_P6, KC_PAST, KC_PGUP, | ||
KC_P1, KC_P2, KC_P3, KC_PMNS, KC_PGDN, | ||
KC_P0, KC_PDOT, KC_PENT, KC_PPLS, _______ | ||
) | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) }, | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ENCODER_MAP_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2023 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT( | ||
KC_MUTE, RGB_TOG, | ||
KC_P7, KC_P8, KC_P9, KC_PSLS, KC_NUM, | ||
KC_P4, KC_P5, KC_P6, KC_PAST, KC_PGUP, | ||
KC_P1, KC_P2, KC_P3, KC_PMNS, KC_PGDN, | ||
KC_P0, KC_PDOT, KC_PENT, KC_PPLS, _______ | ||
) | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { | ||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) }, | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VIA_ENABLE = yes | ||
ENCODER_MAP_ENABLE = yes |
Oops, something went wrong.