aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ianklug
diff options
context:
space:
mode:
authorIan Klug <ian@ianklug.com>2021-07-14 00:04:14 -0400
committerGitHub <noreply@github.com>2021-07-13 21:04:14 -0700
commit6cdba3a43724f76076b8bf1f4d0809f53e7599d9 (patch)
tree2d40a7a1f4e1178c4612e96a6325a4f3c8f11e21 /keyboards/ianklug
parent2fd45959555d1cf819da89da7eaf5cf071f003a3 (diff)
downloadqmk_firmware-6cdba3a43724f76076b8bf1f4d0809f53e7599d9.tar.gz
qmk_firmware-6cdba3a43724f76076b8bf1f4d0809f53e7599d9.zip
[Keyboard] Add ianklug grooveboard (#13536)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/ianklug')
-rw-r--r--keyboards/ianklug/grooveboard/config.h158
-rw-r--r--keyboards/ianklug/grooveboard/grooveboard.c17
-rw-r--r--keyboards/ianklug/grooveboard/grooveboard.h33
-rw-r--r--keyboards/ianklug/grooveboard/info.json17
-rw-r--r--keyboards/ianklug/grooveboard/keymaps/default/keymap.c28
-rw-r--r--keyboards/ianklug/grooveboard/keymaps/default/readme.md1
-rw-r--r--keyboards/ianklug/grooveboard/keymaps/via/keymap.c37
-rw-r--r--keyboards/ianklug/grooveboard/keymaps/via/readme.md1
-rw-r--r--keyboards/ianklug/grooveboard/keymaps/via/rules.mk2
-rw-r--r--keyboards/ianklug/grooveboard/readme.md21
-rw-r--r--keyboards/ianklug/grooveboard/rules.mk22
11 files changed, 337 insertions, 0 deletions
diff --git a/keyboards/ianklug/grooveboard/config.h b/keyboards/ianklug/grooveboard/config.h
new file mode 100644
index 000000000..e42c5f14e
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/config.h
@@ -0,0 +1,158 @@
1/*
2Copyright 2021 ianklug
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x4B4C // "KL" = klug
24#define PRODUCT_ID 0x4742 // "GB" = grooveboard
25#define DEVICE_VER 0x0001
26#define MANUFACTURER ianklug
27#define PRODUCT grooveboard
28
29/* key matrix size */
30#define MATRIX_ROWS 1
31#define MATRIX_COLS 4
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43//#define MATRIX_ROW_PINS { D0, D5 }
44//#define MATRIX_COL_PINS { F1, F0, B0 }
45#define DIRECT_PINS { \
46 { F7, F6, D1, D2 } \
47}
48#define UNUSED_PINS
49
50/* COL2ROW, ROW2COL */
51//#define DIODE_DIRECTION COL2ROW
52
53/*
54 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
55 */
56//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
57
58//#define LED_NUM_LOCK_PIN B0
59//#define LED_CAPS_LOCK_PIN B1
60//#define LED_SCROLL_LOCK_PIN B2
61//#define LED_COMPOSE_PIN B3
62//#define LED_KANA_PIN B4
63
64//#define BACKLIGHT_PIN B7
65//#define BACKLIGHT_LEVELS 3
66//#define BACKLIGHT_BREATHING
67
68//#define RGB_DI_PIN E2
69//#ifdef RGB_DI_PIN
70//# define RGBLED_NUM 16
71//# define RGBLIGHT_HUE_STEP 8
72//# define RGBLIGHT_SAT_STEP 8
73//# define RGBLIGHT_VAL_STEP 8
74//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
75//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
76/*== all animations enable ==*/
77//# define RGBLIGHT_ANIMATIONS
78/*== or choose animations ==*/
79//# define RGBLIGHT_EFFECT_BREATHING
80//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
81//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
82//# define RGBLIGHT_EFFECT_SNAKE
83//# define RGBLIGHT_EFFECT_KNIGHT
84//# define RGBLIGHT_EFFECT_CHRISTMAS
85//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
86//# define RGBLIGHT_EFFECT_RGB_TEST
87//# define RGBLIGHT_EFFECT_ALTERNATING
88/*== customize breathing effect ==*/
89/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
90//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
91/*==== use exp() and sin() ====*/
92//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
93//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
94//#endif
95
96/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
97#define DEBOUNCE 5
98
99/* define if matrix has ghost (lacks anti-ghosting diodes) */
100//#define MATRIX_HAS_GHOST
101
102/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
103#define LOCKING_SUPPORT_ENABLE
104/* Locking resynchronize hack */
105#define LOCKING_RESYNC_ENABLE
106
107/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
108 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
109 */
110//#define GRAVE_ESC_CTRL_OVERRIDE
111
112/*
113 * Force NKRO
114 *
115 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
116 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
117 * makefile for this to work.)
118 *
119 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
120 * until the next keyboard reset.
121 *
122 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
123 * fully operational during normal computer usage.
124 *
125 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
126 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
127 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
128 * power-up.
129 *
130 */
131//#define FORCE_NKRO
132
133/*
134 * Feature disable options
135 * These options are also useful to firmware size reduction.
136 */
137
138/* disable debug print */
139//#define NO_DEBUG
140
141/* disable print */
142//#define NO_PRINT
143
144/* disable action features */
145//#define NO_ACTION_LAYER
146//#define NO_ACTION_TAPPING
147//#define NO_ACTION_ONESHOT
148
149/* disable these deprecated features by default */
150#define NO_ACTION_MACRO
151#define NO_ACTION_FUNCTION
152
153/* Bootmagic Lite key configuration */
154//#define BOOTMAGIC_LITE_ROW 0
155//#define BOOTMAGIC_LITE_COLUMN 0
156
157#define USB_POLLING_INTERVAL_MS 1
158#define QMK_KEYS_PER_SCAN 4
diff --git a/keyboards/ianklug/grooveboard/grooveboard.c b/keyboards/ianklug/grooveboard/grooveboard.c
new file mode 100644
index 000000000..711e9f301
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/grooveboard.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 ianklug
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 "grooveboard.h"
diff --git a/keyboards/ianklug/grooveboard/grooveboard.h b/keyboards/ianklug/grooveboard/grooveboard.h
new file mode 100644
index 000000000..51f519e8a
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/grooveboard.h
@@ -0,0 +1,33 @@
1/* Copyright 2021 ianklug
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/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT( \
30 k00, k01, k02, k03 \
31) { \
32 { k00, k01, k02, k03 } \
33}
diff --git a/keyboards/ianklug/grooveboard/info.json b/keyboards/ianklug/grooveboard/info.json
new file mode 100644
index 000000000..925e3ddbb
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/info.json
@@ -0,0 +1,17 @@
1{
2 "keyboard_name": "grooveboard",
3 "url": "https://github.com/ianklug/grooveboard",
4 "maintainer": "ianklug",
5 "width": 6,
6 "height": 1,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "k00", "x": 0, "y": 0, "w": 1, "h": 1},
11 {"label": "k01", "x": 1, "y": 0, "w": 1, "h": 1},
12 {"label": "k02", "x": 4, "y": 0, "w": 1, "h": 1},
13 {"label": "k03", "x": 5, "y": 0, "w": 1, "h": 1}
14 ]
15 }
16 }
17}
diff --git a/keyboards/ianklug/grooveboard/keymaps/default/keymap.c b/keyboards/ianklug/grooveboard/keymaps/default/keymap.c
new file mode 100644
index 000000000..643d9f1d1
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
1/* Copyright 2021 ianklug
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 QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Base */
25 [_BASE] = LAYOUT(
26 KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
27 )
28}; \ No newline at end of file
diff --git a/keyboards/ianklug/grooveboard/keymaps/default/readme.md b/keyboards/ianklug/grooveboard/keymaps/default/readme.md
new file mode 100644
index 000000000..95ec856a5
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for grooveboard
diff --git a/keyboards/ianklug/grooveboard/keymaps/via/keymap.c b/keyboards/ianklug/grooveboard/keymaps/via/keymap.c
new file mode 100644
index 000000000..40546c131
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/keymaps/via/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2021 ianklug
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 QMK_KEYBOARD_H
17
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 /* Base */
25 [_BASE] = LAYOUT(
26 KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
27 ),
28 [1] = LAYOUT(
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
30 ),
31 [2] = LAYOUT(
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
33 ),
34 [3] = LAYOUT(
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
36 )
37};
diff --git a/keyboards/ianklug/grooveboard/keymaps/via/readme.md b/keyboards/ianklug/grooveboard/keymaps/via/readme.md
new file mode 100644
index 000000000..0963f48e6
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/keymaps/via/readme.md
@@ -0,0 +1 @@
# The via keymap for grooveboard
diff --git a/keyboards/ianklug/grooveboard/keymaps/via/rules.mk b/keyboards/ianklug/grooveboard/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/ianklug/grooveboard/readme.md b/keyboards/ianklug/grooveboard/readme.md
new file mode 100644
index 000000000..7ea6456e3
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/readme.md
@@ -0,0 +1,21 @@
1# Grooveboard
2
3A four-key mechanical keyboard for rhythm games.
4
5![Grooveboard Choc PCB](https://i.imgur.com/wbMkbHX.jpg)
6
7* Keyboard Maintainer: [ianklug](https://github.com/ianklug)
8* Hardware Supported: grooveboard, grooveboard mx, grooveboard choc
9* Hardware Availability: https://github.com/ianklug/grooveboard
10
11Press the button on the back of the keyboard to enter bootloader mode.
12
13Make example for this keyboard (after setting up your build environment):
14
15 make ianklug/grooveboard:default
16
17Flashing example for this keyboard:
18
19 make ianklug/grooveboard:default:flash
20
21See 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).
diff --git a/keyboards/ianklug/grooveboard/rules.mk b/keyboards/ianklug/grooveboard/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/ianklug/grooveboard/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output