Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GreatPad macropad under gkeyboard #22696

Merged
merged 38 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e5c83a2
Add GreatPad under gkeyboard
gkeyboard Dec 18, 2023
c733059
Update keyboards/gkeyboard/greatpad/config.h
gkeyboard Dec 18, 2023
c94f03d
Update keyboards/gkeyboard/greatpad/greatpad.c
gkeyboard Dec 18, 2023
ce68528
Update keyboards/gkeyboard/greatpad/info.json
gkeyboard Dec 18, 2023
2fcd012
Update keyboards/gkeyboard/greatpad/info.json
gkeyboard Dec 18, 2023
d6de307
Update keyboards/gkeyboard/greatpad/keymaps/default/keymap.c
gkeyboard Dec 18, 2023
3692a16
Update keyboards/gkeyboard/greatpad/keymaps/default/keymap.c
gkeyboard Dec 18, 2023
94577f9
Update keyboards/gkeyboard/greatpad/keymaps/via/keymap.c
gkeyboard Dec 18, 2023
a11513e
Update keyboards/gkeyboard/greatpad/keymaps/via/keymap.c
gkeyboard Dec 18, 2023
20ff223
Merge branch 'master' into greatpad
gkeyboard Dec 18, 2023
60d87de
Add a license header
gkeyboard Dec 19, 2023
bf292ba
Update glcdfont.c
gkeyboard Dec 19, 2023
db7109c
Merge branch 'master' into greatpad
gkeyboard Dec 19, 2023
388e6f0
delete file
gkeyboard Dec 19, 2023
950ae85
Merge branch 'greatpad' of https://github.com/gkeyboard/qmk_firmware …
gkeyboard Dec 19, 2023
806a2b7
Revert "delete file"
gkeyboard Dec 19, 2023
d855811
Update keyboards/gkeyboard/greatpad/mcuconf.h
gkeyboard Dec 19, 2023
67ab3db
Update .vscode/settings.json
gkeyboard Dec 20, 2023
e3fb077
Merge branch 'master' into greatpad
gkeyboard Dec 21, 2023
a9d8760
Update keyboards/gkeyboard/greatpad/readme.md
gkeyboard Dec 22, 2023
18a808a
Enable encoder
gkeyboard Dec 22, 2023
268fb95
Merge branch 'master' into greatpad
gkeyboard Dec 24, 2023
af6868c
Merge branch 'master' into greatpad
gkeyboard Dec 25, 2023
452910e
Merge branch 'master' into greatpad
gkeyboard Dec 27, 2023
9927acc
Merge branch 'master' into greatpad
gkeyboard Jan 3, 2024
4669f64
Merge branch 'master' into greatpad
gkeyboard Jan 5, 2024
44f5319
Merge branch 'master' into greatpad
gkeyboard Jan 8, 2024
f9f89c6
Update keyboards/gkeyboard/greatpad/greatpad.c
gkeyboard Jan 14, 2024
48fa7a5
Merge branch 'master' into greatpad
gkeyboard Jan 15, 2024
2711752
Merge branch 'master' into greatpad
gkeyboard Jan 22, 2024
5e61f61
Merge branch 'master' into greatpad
gkeyboard Jan 22, 2024
98f1257
Merge branch 'master' into greatpad
gkeyboard Jan 23, 2024
dc9ea57
Update info.json
gkeyboard Jan 24, 2024
9df72dd
Merge branch 'master' into greatpad
gkeyboard Jan 29, 2024
5067107
Merge branch 'master' into greatpad
gkeyboard Jan 30, 2024
eb9d70f
Merge branch 'master' into greatpad
gkeyboard Jan 31, 2024
c617b98
Merge branch 'master' into greatpad
gkeyboard Feb 1, 2024
d1d5c92
Merge branch 'master' into greatpad
gkeyboard Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions keyboards/gkeyboard/greatpad/config.h
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"
577 changes: 577 additions & 0 deletions keyboards/gkeyboard/greatpad/greatpad.c

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions keyboards/gkeyboard/greatpad/halconf.h
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>
158 changes: 158 additions & 0 deletions keyboards/gkeyboard/greatpad/info.json
fauxpark marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"manufacturer": "gkeyboard",
"keyboard_name": "GreatPad",
"url": "https://github.com/gkeyboard/GreatPad",
"maintainer": "gkeyboard",
"processor": "RP2040",
"bootloader": "rp2040",
"usb": {
"device_version": "1.0.0",
"vid": "0x474B",
"pid": "0x4203"
},
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true,
"oled": true
},
"matrix_pins": {
"cols": ["GP24", "GP23", "GP16", "GP11", "GP10"],
"rows": ["GP6", "GP5", "GP4", "GP3", "GP2"]
},
"diode_direction": "COL2ROW",
"dynamic_keymap": {
"layer_count": 10
},
"encoder": {
"rotary": [
{"pin_a": "GP25", "pin_b": "GP26"},
{"pin_a": "GP0", "pin_b": "GP1"}
]
},
"rgb_matrix": {
"driver": "ws2812",
"max_brightness": 170,
gkeyboard marked this conversation as resolved.
Show resolved Hide resolved
"sleep": true,
"animations": {
"solid_color": true,
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_sat": true,
"band_val": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"cycle_out_in": true,
"cycle_out_in_dual": true,
"rainbow_moving_chevron": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true,
"hue_breathing": true,
"hue_pendulum": true,
"hue_wave": true,
"pixel_fractal": true,
"pixel_flow": true,
"pixel_rain": true,
"typing_heatmap": true,
"digital_rain": true,
"solid_reactive_simple": true,
"solid_reactive": true,
"solid_reactive_wide": true,
"solid_reactive_multiwide": true,
"solid_reactive_cross": true,
"solid_reactive_multicross": true,
"solid_reactive_nexus": true,
"solid_reactive_multinexus": true,
"splash": true,
"multisplash": true,
"solid_splash": true,
"solid_multisplash": true
},
"layout": [
{"flags": 4, "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": 2, "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}
]
},
"ws2812": {
"pin": "GP22",
"driver": "vendor"
},
"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}
]
}
}
}
21 changes: 21 additions & 0 deletions keyboards/gkeyboard/greatpad/keymaps/default/keymap.c
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
1 change: 1 addition & 0 deletions keyboards/gkeyboard/greatpad/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
21 changes: 21 additions & 0 deletions keyboards/gkeyboard/greatpad/keymaps/via/keymap.c
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
2 changes: 2 additions & 0 deletions keyboards/gkeyboard/greatpad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes
Loading