Skip to content

Commit c98e258

Browse files
[Keyboard] GameBuddy v1.M (#12637)
Co-authored-by: Ryan <[email protected]>
1 parent 200f1e8 commit c98e258

File tree

14 files changed

+204
-5
lines changed

14 files changed

+204
-5
lines changed

keyboards/clawsome/gamebuddy/config.h renamed to keyboards/clawsome/gamebuddy/v1_0/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2424
#define PRODUCT_ID 0x17B9
2525
#define DEVICE_VER 0x0001
2626
#define MANUFACTURER AlisGraveNil
27-
#define PRODUCT GameBuddy
27+
#define PRODUCT GameBuddy1_0
2828

2929
/* key matrix size */
3030
#define MATRIX_ROWS 5

keyboards/clawsome/gamebuddy/info.json renamed to keyboards/clawsome/gamebuddy/v1_0/info.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"keyboard_name": "GameBuddy",
3-
"url": "",
4-
"maintainer": "qmk",
2+
"keyboard_name": "GameBuddy1_0",
3+
"url": "www.clawboards.xyz",
4+
"maintainer": "AA Clawson (AlisGraveNil)",
55
"width": 7,
66
"height": 5,
77
"layouts": {

keyboards/clawsome/gamebuddy/gamebuddy.c renamed to keyboards/clawsome/gamebuddy/v1_0/v1_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* You should have received a copy of the GNU General Public License
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
16-
#include "gamebuddy.h"
16+
#include "v1_0.h"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* Copyright 2021 AAClawson (AlisGraveNil)
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
17+
#pragma once
18+
19+
#include "config_common.h"
20+
21+
/* USB Device descriptor parameter */
22+
#define VENDOR_ID 0x7767
23+
#define PRODUCT_ID 0x0000
24+
#define DEVICE_VER 0x0001
25+
#define MANUFACTURER AlisGraveNil
26+
#define PRODUCT GameBuddy1_M
27+
28+
/* key matrix size */
29+
#define MATRIX_ROWS 5
30+
#define MATRIX_COLS 7
31+
32+
/*
33+
* Keyboard Matrix Assignments
34+
*
35+
* Change this to how you wired your keyboard
36+
* COLS: AVR pins used for columns, left to right
37+
* ROWS: AVR pins used for rows, top to bottom
38+
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39+
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40+
*
41+
*/
42+
#define MATRIX_ROW_PINS { C6, D7, B5, B3, B2 }
43+
#define MATRIX_COL_PINS { B1, F7, F6, F5, E6, B4, B6 }
44+
45+
#define DIODE_DIRECTION COL2ROW
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"keyboard_name": "GameBuddy1_M",
3+
"url": "www.clawboards.xyz",
4+
"maintainer": "AAClawson (AlisGraveNil)",
5+
"width": 7,
6+
"height": 5,
7+
"layouts": {
8+
"LAYOUT": {
9+
"layout": [
10+
{"label":"K00 (C6,B1)", "x":0, "y":0},
11+
{"label":"K01 (C6,F7)", "x":1, "y":0},
12+
{"label":"K02 (C6,F6)", "x":2, "y":0},
13+
{"label":"K03 (C6,F5)", "x":3, "y":0},
14+
{"label":"K04 (C6,E6)", "x":4, "y":0},
15+
{"label":"K05 (C6,B4)", "x":5, "y":0},
16+
{"label":"K10 (D7,B1)", "x":0, "y":1},
17+
{"label":"K11 (D7,F7)", "x":1, "y":1},
18+
{"label":"K12 (D7,F6)", "x":2, "y":1},
19+
{"label":"K13 (D7,F5)", "x":3, "y":1},
20+
{"label":"K14 (D7,E6)", "x":4, "y":1},
21+
{"label":"K15 (D7,B4)", "x":5, "y":1},
22+
{"label":"K20 (B5,B1)", "x":0, "y":2},
23+
{"label":"K21 (B5,F7)", "x":1, "y":2},
24+
{"label":"K22 (B5,F6)", "x":2, "y":2},
25+
{"label":"K23 (B5,F5)", "x":3, "y":2},
26+
{"label":"K24 (B5,E6)", "x":4, "y":2},
27+
{"label":"K25 (B5,B4)", "x":5, "y":2},
28+
{"label":"K30 (B3,B1)", "x":0, "y":3},
29+
{"label":"K31 (B3,F7)", "x":1, "y":3},
30+
{"label":"K32 (B3,F6)", "x":2, "y":3},
31+
{"label":"K33 (B3,F5)", "x":3, "y":3},
32+
{"label":"K34 (B3,E6)", "x":4, "y":3},
33+
{"label":"K35 (B3,B4)", "x":5, "y":3},
34+
{"label":"K46 (B2,B6)", "x":6, "y":3, "h":2},
35+
{"label":"K44 (B2,E6)", "x":4, "y":4},
36+
{"label":"K45 (B2,B4)", "x":5, "y":4}
37+
]
38+
}
39+
}
40+
}
41+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Copyright 2021 AAClawson (AlisGraveNil)
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
17+
#include QMK_KEYBOARD_H
18+
19+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20+
[0] = LAYOUT(
21+
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5,
22+
KC_TAB, KC_V, KC_Q, KC_W, KC_E, KC_R,
23+
KC_LSFT, KC_LSFT, KC_A, KC_S, KC_D, KC_G,
24+
KC_LCTL, KC_N, KC_X, KC_F, KC_C, KC_M, KC_SPC,
25+
KC_LALT, KC_LGUI
26+
),
27+
28+
};
29+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# GameBuddy
2+
3+
This is a 5x7 macropad designed for left OR right hand usage in videogames, with special focus on FPS layouts!
4+
5+
* Keyboard Maintainer: [AAClawson](https://github.com/AlisGraveNil)
6+
* Hardware Supported: GameBuddy, Pro Micro, Elite-C, nice!nano
7+
* Hardware Availability: www.clawboards.xyz
8+
9+
Make example for this keyboard (after setting up your build environment):
10+
11+
make clawsome/gamebuddy/v1_m:default
12+
13+
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).
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
BOOTLOADER = caterina
6+
7+
# Build Options
8+
# change yes to no to disable
9+
#
10+
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11+
MOUSEKEY_ENABLE = yes # Mouse keys
12+
EXTRAKEY_ENABLE = yes # Audio control and System control
13+
CONSOLE_ENABLE = yes # Console for debug
14+
COMMAND_ENABLE = yes # Commands for debug and configuration
15+
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16+
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17+
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18+
NKRO_ENABLE = no # USB Nkey Rollover
19+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20+
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21+
BLUETOOTH_ENABLE = no # Enable Bluetooth
22+
AUDIO_ENABLE = no # Audio output
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright 2021 AAClawson (AlisGraveNil)
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
#include "v1_m.h"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* Copyright 2021 AAClawson (AlisGraveNil)
2+
*
3+
* This program is free software: you can redistribute it and/or modify
4+
* it under the terms of the GNU General Public License as published by
5+
* the Free Software Foundation, either version 2 of the License, or
6+
* (at your option) any later version.
7+
*
8+
* This program is distributed in the hope that it will be useful,
9+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
* GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License
14+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
17+
#pragma once
18+
19+
#include "quantum.h"
20+
21+
#define LAYOUT( \
22+
K00, K01, K02, K03, K04, K05, \
23+
K10, K11, K12, K13, K14, K15, \
24+
K20, K21, K22, K23, K24, K25, \
25+
K30, K31, K32, K33, K34, K35, K46, \
26+
K44, K45 \
27+
) { \
28+
{ K00, K01, K02, K03, K04, K05, KC_NO }, \
29+
{ K10, K11, K12, K13, K14, K15, KC_NO }, \
30+
{ K20, K21, K22, K23, K24, K25, KC_NO }, \
31+
{ K30, K31, K32, K33, K34, K35, KC_NO }, \
32+
{ KC_NO, KC_NO, KC_NO, KC_NO, K44, K45, K46 }, \
33+
}

0 commit comments

Comments
 (0)