aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwerther <werther@mailbox.org>2022-01-09 21:08:18 +0100
committerGitHub <noreply@github.com>2022-01-09 12:08:18 -0800
commit1ed5c48d939ce711977e345bd127ec10415ae6af (patch)
tree97652713446ec994871f1511fbbc2a23e2cc4742
parentec78acae690ae8b6122132b810ce663604cd8b9b (diff)
downloadqmk_firmware-1ed5c48d939ce711977e345bd127ec10415ae6af.tar.gz
qmk_firmware-1ed5c48d939ce711977e345bd127ec10415ae6af.zip
[Keyboard] Add RGB Matrix support to id67 and add thewerther keymap (#15558)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: sigprof and fauxpark Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/id67/default_rgb/config.h (renamed from keyboards/id67/config.h)0
-rw-r--r--keyboards/id67/default_rgb/default_rgb.c (renamed from keyboards/id67/id67.c)2
-rw-r--r--keyboards/id67/default_rgb/default_rgb.h (renamed from keyboards/id67/id67.h)0
-rw-r--r--keyboards/id67/default_rgb/info.json (renamed from keyboards/id67/info.json)0
-rw-r--r--keyboards/id67/default_rgb/readme.md19
-rw-r--r--keyboards/id67/default_rgb/rules.mk (renamed from keyboards/id67/rules.mk)0
-rw-r--r--keyboards/id67/readme.md20
-rw-r--r--keyboards/id67/rgb/config.h120
-rw-r--r--keyboards/id67/rgb/info.json85
-rw-r--r--keyboards/id67/rgb/keymaps/default/keymap.c36
-rw-r--r--keyboards/id67/rgb/keymaps/thewerther/config.h95
-rw-r--r--keyboards/id67/rgb/keymaps/thewerther/keymap.c57
-rw-r--r--keyboards/id67/rgb/keymaps/thewerther/rules.mk2
-rw-r--r--keyboards/id67/rgb/readme.md36
-rw-r--r--keyboards/id67/rgb/rgb.c49
-rw-r--r--keyboards/id67/rgb/rgb.h34
-rw-r--r--keyboards/id67/rgb/rules.mk25
17 files changed, 574 insertions, 6 deletions
diff --git a/keyboards/id67/config.h b/keyboards/id67/default_rgb/config.h
index fbf99cf67..fbf99cf67 100644
--- a/keyboards/id67/config.h
+++ b/keyboards/id67/default_rgb/config.h
diff --git a/keyboards/id67/id67.c b/keyboards/id67/default_rgb/default_rgb.c
index d0377a434..972b0b8b0 100644
--- a/keyboards/id67/id67.c
+++ b/keyboards/id67/default_rgb/default_rgb.c
@@ -14,4 +14,4 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */ 15 */
16 16
17#include "id67.h" \ No newline at end of file 17#include "default_rgb.h"
diff --git a/keyboards/id67/id67.h b/keyboards/id67/default_rgb/default_rgb.h
index 7c0a6d5aa..7c0a6d5aa 100644
--- a/keyboards/id67/id67.h
+++ b/keyboards/id67/default_rgb/default_rgb.h
diff --git a/keyboards/id67/info.json b/keyboards/id67/default_rgb/info.json
index f3114121c..f3114121c 100644
--- a/keyboards/id67/info.json
+++ b/keyboards/id67/default_rgb/info.json
diff --git a/keyboards/id67/default_rgb/readme.md b/keyboards/id67/default_rgb/readme.md
new file mode 100644
index 000000000..9559384f1
--- /dev/null
+++ b/keyboards/id67/default_rgb/readme.md
@@ -0,0 +1,19 @@
1# IDOBAO ID67
2
3A 65% hotswap keyboard from IDOBAO.
4
5## ANSI support:
6
7* Keyboard Maintainer: Tybera
8* Hardware Supported: IDOBAO ID67
9* Hardware Availability: [IDOBAO](https://www.idobao.net/products/idobao-id67-65-hot-swappable-mechanical-keyboard-kit-1)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make id67/default_rgb:default
14
15Flashing example for this keyboard:
16
17 make id67/default_rgb:default:flash
18
19See 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/id67/rules.mk b/keyboards/id67/default_rgb/rules.mk
index 574f0067f..574f0067f 100644
--- a/keyboards/id67/rules.mk
+++ b/keyboards/id67/default_rgb/rules.mk
diff --git a/keyboards/id67/readme.md b/keyboards/id67/readme.md
index eca398184..7949ee1af 100644
--- a/keyboards/id67/readme.md
+++ b/keyboards/id67/readme.md
@@ -6,14 +6,24 @@ A 65% hotswap keyboard from IDOBAO.
6 6
7* Keyboard Maintainer: Tybera 7* Keyboard Maintainer: Tybera
8* Hardware Supported: IDOBAO ID67 8* Hardware Supported: IDOBAO ID67
9* Hardware Availability: [IDOBAO]https://www.idobao.net/products/idobao-id67-65-hot-swappable-mechanical-keyboard-kit-1 9* Hardware Availability: [IDOBAO](https://www.idobao.net/products/idobao-id67-65-hot-swappable-mechanical-keyboard-kit-1)
10 10
11Make example for this keyboard (after setting up your build environment): 11## Variants
12 12
13 make id67:default 13Currently there are two variants for the id67:
141. `rgb_default` which uses the `RGB Lightning` feature for the on-board LEDs.
152. `rgb` which uses the more advanced `RGB Matrix` feature for the per-key and underglow (bottom of PCB) LEDs.
14 16
15Flashing example for this keyboard: 17Make examples for this keyboard (after setting up your build environment):
16 18
17 make id67:default:flash 19 make id67/default_rgb:default
20
21 make id67/rgb:default
22
23Flashing examples for this keyboard:
24
25 make id67/default_rgb:default:flash
26
27 make id67/rgb:default:flash
18 28
19See 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). 29See 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/id67/rgb/config.h b/keyboards/id67/rgb/config.h
new file mode 100644
index 000000000..be6594b0c
--- /dev/null
+++ b/keyboards/id67/rgb/config.h
@@ -0,0 +1,120 @@
1/* Copyright 2021 Tybera
2 * Copyright 2021 thewerther
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along 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 0x6964 /* "id" */
24#define PRODUCT_ID 0x0067
25#define DEVICE_VER 0x0001
26#define MANUFACTURER IDOBAO
27#define PRODUCT ID67
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
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 { B0, B1, B2, B3, F7 }
44#define MATRIX_COL_PINS { C7, F6, F5, F4, F1, B7, D5, D1, D2, D3, D4, D0, D6, D7, B4 }
45
46#define DIODE_DIRECTION COL2ROW
47#define RGB_DI_PIN F0
48
49// RGB Light config
50#if defined(RGBLIGHT_ENABLE)
51 #define RGBLED_NUM 77
52 #define RGBLIGHT_HUE_STEP 8
53 #define RGBLIGHT_SAT_STEP 8
54 #define RGBLIGHT_VAL_STEP 8
55 #define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
56 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
57/*== all animations enable ==*/
58 #define RGBLIGHT_ANIMATIONS
59// /*== or choose animations ==*/
60// #define RGBLIGHT_EFFECT_BREATHING
61// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
62// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
63// #define RGBLIGHT_EFFECT_SNAKE
64// #define RGBLIGHT_EFFECT_KNIGHT
65// #define RGBLIGHT_EFFECT_CHRISTMAS
66// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
67// #define RGBLIGHT_EFFECT_RGB_TEST
68// #define RGBLIGHT_EFFECT_ALTERNATING
69#endif
70
71// RGB Matrix config
72#if defined(RGB_MATRIX_ENABLE)
73 #define DRIVER_LED_TOTAL 77
74 #define DRIVER_LED_UNDERGLOW 10
75
76 #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
77 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
78
79 #define RGB_MATRIX_KEYPRESSES
80 #define ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
81 #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
82 #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
83 #define ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
84 #define ENABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
85 #define ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
86 #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
87 #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
88 #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
89 #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
90 #define ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
91 #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
92 #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
93 #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
94 #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
95 #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right
96 #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
97 #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
98 #define ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
99 #define ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
100 #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
101 #define ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
102 #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
103 #define ENABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight ammount at the same time, then shifts back
104 #define ENABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight ammount in a wave to the right, then back to the left
105 #define ENABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight ammount and then back down in a wave to the right
106#if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
107 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE// Pulses keys hit to hue & value then fades value out
108 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
109 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
110 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
111 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
112 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
113 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
114 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
115 #define ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
116 #define ENABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
117 #define ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
118 #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
119#endif // #if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
120#endif // #if defined(RGB_MATRIX_ENABLE)
diff --git a/keyboards/id67/rgb/info.json b/keyboards/id67/rgb/info.json
new file mode 100644
index 000000000..774d91341
--- /dev/null
+++ b/keyboards/id67/rgb/info.json
@@ -0,0 +1,85 @@
1{
2 "keyboard_name": "ID67 RGB Matrix variant",
3 "url": "",
4 "maintainer": "qmk",
5 "layout_aliases": {
6 "LAYOUT": "LAYOUT_65_ansi_blocker"
7 },
8 "layouts": {
9 "LAYOUT_65_ansi_blocker": {
10 "layout": [
11 {"label":"K00 (B0,C7)", "x":0, "y":0},
12 {"label":"K01 (B0,F6)", "x":1, "y":0},
13 {"label":"K02 (B0,F5)", "x":2, "y":0},
14 {"label":"K03 (B0,F4)", "x":3, "y":0},
15 {"label":"K04 (B0,F1)", "x":4, "y":0},
16 {"label":"K05 (B0,B7)", "x":5, "y":0},
17 {"label":"K06 (B0,D5)", "x":6, "y":0},
18 {"label":"K07 (B0,D1)", "x":7, "y":0},
19 {"label":"K08 (B0,D2)", "x":8, "y":0},
20 {"label":"K09 (B0,D3)", "x":9, "y":0},
21 {"label":"K0A (B0,D4)", "x":10, "y":0},
22 {"label":"K0B (B0,D0)", "x":11, "y":0},
23 {"label":"K0C (B0,D6)", "x":12, "y":0},
24 {"label":"K0D (B0,D7)", "x":13, "y":0, "w":2},
25 {"label":"K0E (B0,B4)", "x":15, "y":0},
26
27 {"label":"K10 (B1,C7)", "x":0, "y":1, "w":1.5},
28 {"label":"K11 (B1,F6)", "x":1.5, "y":1},
29 {"label":"K12 (B1,F5)", "x":2.5, "y":1},
30 {"label":"K13 (B1,F4)", "x":3.5, "y":1},
31 {"label":"K14 (B1,F1)", "x":4.5, "y":1},
32 {"label":"K15 (B1,B7)", "x":5.5, "y":1},
33 {"label":"K16 (B1,D5)", "x":6.5, "y":1},
34 {"label":"K17 (B1,D1)", "x":7.5, "y":1},
35 {"label":"K18 (B1,D2)", "x":8.5, "y":1},
36 {"label":"K19 (B1,D3)", "x":9.5, "y":1},
37 {"label":"K1A (B1,D4)", "x":10.5, "y":1},
38 {"label":"K1B (B1,D0)", "x":11.5, "y":1},
39 {"label":"K1C (B1,D6)", "x":12.5, "y":1},
40 {"label":"K1D (B1,D7)", "x":13.5, "y":1, "w":1.5},
41 {"label":"K1E (B1,B4)", "x":15, "y":1},
42
43 {"label":"K20 (B2,C7)", "x":0, "y":2, "w":1.75},
44 {"label":"K21 (B2,F6)", "x":1.75, "y":2},
45 {"label":"K22 (B2,F5)", "x":2.75, "y":2},
46 {"label":"K23 (B2,F4)", "x":3.75, "y":2},
47 {"label":"K24 (B2,F1)", "x":4.75, "y":2},
48 {"label":"K25 (B2,B7)", "x":5.75, "y":2},
49 {"label":"K26 (B2,D5)", "x":6.75, "y":2},
50 {"label":"K27 (B2,D1)", "x":7.75, "y":2},
51 {"label":"K28 (B2,D2)", "x":8.75, "y":2},
52 {"label":"K29 (B2,D3)", "x":9.75, "y":2},
53 {"label":"K2A (B2,D4)", "x":10.75, "y":2},
54 {"label":"K2B (B2,D0)", "x":11.75, "y":2},
55 {"label":"K2D (B2,D7)", "x":12.75, "y":2, "w":2.25},
56 {"label":"K2E (B2,B4)", "x":15, "y":2},
57
58 {"label":"K30 (B3,C7)", "x":0, "y":3, "w":2.25},
59 {"label":"K32 (B3,F5)", "x":2.25, "y":3},
60 {"label":"K33 (B3,F4)", "x":3.25, "y":3},
61 {"label":"K34 (B3,F1)", "x":4.25, "y":3},
62 {"label":"K35 (B3,B7)", "x":5.25, "y":3},
63 {"label":"K36 (B3,D5)", "x":6.25, "y":3},
64 {"label":"K37 (B3,D1)", "x":7.25, "y":3},
65 {"label":"K38 (B3,D2)", "x":8.25, "y":3},
66 {"label":"K39 (B3,D3)", "x":9.25, "y":3},
67 {"label":"K3A (B3,D4)", "x":10.25, "y":3},
68 {"label":"K3B (B3,D0)", "x":11.25, "y":3},
69 {"label":"K3C (B3,D6)", "x":12.25, "y":3, "w":1.75},
70 {"label":"K3D (B3,D7)", "x":14, "y":3},
71 {"label":"K3E (B3,B4)", "x":15, "y":3},
72
73 {"label":"K40 (F7,C7)", "x":0, "y":4, "w":1.25},
74 {"label":"K41 (F7,F6)", "x":1.25, "y":4, "w":1.25},
75 {"label":"K43 (F7,F4)", "x":2.5, "y":4, "w":1.25},
76 {"label":"K46 (F7,D5)", "x":3.75, "y":4, "w":6.25},
77 {"label":"K4A (F7,D4)", "x":10, "y":4, "w":1.25},
78 {"label":"K4B (F7,D0)", "x":11.25, "y":4, "w":1.25},
79 {"label":"K4C (F7,D6)", "x":13, "y":4},
80 {"label":"K4D (F7,D7)", "x":14, "y":4},
81 {"label":"K4E (F7,B4)", "x":15, "y":4}
82 ]
83 }
84 }
85}
diff --git a/keyboards/id67/rgb/keymaps/default/keymap.c b/keyboards/id67/rgb/keymaps/default/keymap.c
new file mode 100644
index 000000000..450550e12
--- /dev/null
+++ b/keyboards/id67/rgb/keymaps/default/keymap.c
@@ -0,0 +1,36 @@
1/* Copyright 2021 Tybera
2 * Copyright 2022 thewerther
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT_65_ansi_blocker(
22 KC_ESC, 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_TILD,
23 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_DEL,
24 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_PGUP,
25 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_PGDN,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
27 ),
28 [1] = LAYOUT_65_ansi_blocker(
29 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
30 _______, RGB_TOG, KC_UP, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______,
31 _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, KC_INS, KC_HOME, KC_PGUP, _______, _______,
32 _______, RESET, RGB_SPI, RGB_SPD, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, KC_DEL, KC_END, KC_PGDN, _______, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______
34 ),
35
36};
diff --git a/keyboards/id67/rgb/keymaps/thewerther/config.h b/keyboards/id67/rgb/keymaps/thewerther/config.h
new file mode 100644
index 000000000..539e3bbb4
--- /dev/null
+++ b/keyboards/id67/rgb/keymaps/thewerther/config.h
@@ -0,0 +1,95 @@
1/* Copyright 2021 thewerther
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#define DRIVER_LED_UNDERGLOW 10
20#define TAPPING_TERM 500
21
22#if defined(RGB_MATRIX_ENABLE)
23 #define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
24 #undef RGB_MATRIX_MAXIMUM_BRIGHTNESS
25 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
26
27 // change saturation and hue step size
28 #undef RGBLIGHT_HUE_STEP
29 #undef RGBLIGHT_SAT_STEP
30 #define RGBLIGHT_SAT_STEP 5
31 #define RGBLIGHT_HUE_STEP 5
32
33 #define RGB_MATRIX_KEYPRESSES
34
35 // disable effects from keyboard level config.h
36 #undef ENABLE_RGB_MATRIX_ALPHAS_MODS
37 #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
38 #undef ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
39 #undef ENABLE_RGB_MATRIX_BREATHING
40 #undef ENABLE_RGB_MATRIX_BAND_SAT
41 #undef ENABLE_RGB_MATRIX_BAND_VAL
42 #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
43 #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
44 #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
45 #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
46 #undef ENABLE_RGB_MATRIX_CYCLE_ALL
47 #undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
48 #undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
49 #undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
50 #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN
51 #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
52 #undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
53 #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL
54 #undef ENABLE_RGB_MATRIX_DUAL_BEACON
55 #undef ENABLE_RGB_MATRIX_RAINBOW_BEACON
56 #undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
57 #undef ENABLE_RGB_MATRIX_RAINDROPS
58 #undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
59 #undef ENABLE_RGB_MATRIX_HUE_BREATHING
60 #undef ENABLE_RGB_MATRIX_HUE_PENDULUM
61 #undef ENABLE_RGB_MATRIX_HUE_WAVE
62 #undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL
63 #undef ENABLE_RGB_MATRIX_PIXEL_RAIN
64 #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP
65 #undef ENABLE_RGB_MATRIX_DIGITAL_RAIN
66 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
67 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE
68 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
69 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
70 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
71 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
72 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
73 #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
74 #undef ENABLE_RGB_MATRIX_SPLASH
75 #undef ENABLE_RGB_MATRIX_MULTISPLASH
76 #undef ENABLE_RGB_MATRIX_SOLID_SPLASH
77 #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
78
79 // only enable a few
80 #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
81 #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
82 #define ENABLE_RGB_MATRIX_DUAL_BEACON
83 #define ENABLE_RGB_MATRIX_RAINBOW_BEACON
84 #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
85 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
86 #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
87
88#if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
89 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE// Pulses keys hit to hue & value then fades value out
90 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
91 #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
92 #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
93#endif // # if defined(RGB_MATRIX_KEYPRESSES) || defined(RGB_MATRIX_KEYRELEASES)
94#endif // # if defined(RGB_MATRIX_ENABLE)
95
diff --git a/keyboards/id67/rgb/keymaps/thewerther/keymap.c b/keyboards/id67/rgb/keymaps/thewerther/keymap.c
new file mode 100644
index 000000000..8af720755
--- /dev/null
+++ b/keyboards/id67/rgb/keymaps/thewerther/keymap.c
@@ -0,0 +1,57 @@
1/* Copyright 2021 Tybera
2 * Copyright 2021 thewerther
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT_65_ansi_blocker(
22 KC_ESC, 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_GRV,
23 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_DEL,
24 KC_RALT, 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_PGUP,
25 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_PGDN,
26 KC_LCTL, KC_LGUI, KC_LALT, LT(1, KC_SPC), MO(2), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
27 ),
28 [1] = LAYOUT_65_ansi_blocker(
29 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, KC_PGDN, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______
34 ),
35 [2] = LAYOUT_65_ansi_blocker(
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, RGB_TOG, _______, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_MPLY, KC_MPRV, KC_MNXT, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME,
39 _______, RESET, RGB_SPI, RGB_SPD, _______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, _______, _______, KC_END,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______
41 )
42
43};
44
45void matrix_scan_user(void) {
46# if defined(RGB_MATRIX_ENABLE)
47 int current_effect = rgb_matrix_get_mode();
48 if (current_effect >= RGB_MATRIX_SOLID_REACTIVE_SIMPLE && current_effect <= RGB_MATRIX_SOLID_MULTISPLASH) {
49 // set all underglow leds to current color
50 RGB current_color = hsv_to_rgb(rgb_matrix_get_hsv());
51 for (int i = DRIVER_LED_TOTAL - DRIVER_LED_UNDERGLOW; i < DRIVER_LED_TOTAL; i++) {
52 rgb_matrix_set_color(i, current_color.r, current_color.g, current_color.b);
53 }
54 }
55# endif
56}
57
diff --git a/keyboards/id67/rgb/keymaps/thewerther/rules.mk b/keyboards/id67/rgb/keymaps/thewerther/rules.mk
new file mode 100644
index 000000000..acd3adaa9
--- /dev/null
+++ b/keyboards/id67/rgb/keymaps/thewerther/rules.mk
@@ -0,0 +1,2 @@
1CONSOLE_ENABLE = no # Console for debug
2COMMAND_ENABLE = no # Commands for debug and configuration
diff --git a/keyboards/id67/rgb/readme.md b/keyboards/id67/rgb/readme.md
new file mode 100644
index 000000000..8376af146
--- /dev/null
+++ b/keyboards/id67/rgb/readme.md
@@ -0,0 +1,36 @@
1# IDOBAO ID67
2
3![id67](https://i.imgur.com/9roQ4Mih.jpeg)
4
5A 65% hotswap keyboard from IDOBAO.
6
7## ANSI support:
8
9* Keyboard Maintainer: Tybera
10* Hardware Supported: IDOBAO ID67
11* Hardware Availability: [IDOBAO-website](https://www.idobao.net/products/idobao-id67-65-hot-swappable-mechanical-keyboard-kit-1)
12
13## Layout
14
15![ID67 layout](https://i.imgur.com/Ge6Uxao.png)
16
17
18## Compiling and flashing
19
20Make example for this keyboard (after setting up your build environment):
21
22 make id67/rgb:default
23
24Flashing example for this keyboard:
25
26 make id67/rgb:default:flash
27
28See 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).
29
30## Bootloader
31
32Enter the bootloader in 3 ways:
33
34* **Bootmagic reset**: Hold down the `Escape` key and plug in the keyboard.
35* **Physical reset button**: Briefly press the button on the back of the PCB.
36* **Keycode in layout**: Press the key mapped to `RESET` (FN+Z).
diff --git a/keyboards/id67/rgb/rgb.c b/keyboards/id67/rgb/rgb.c
new file mode 100644
index 000000000..5fc007d19
--- /dev/null
+++ b/keyboards/id67/rgb/rgb.c
@@ -0,0 +1,49 @@
1/* Copyright 2021 Tybera
2 * Copyright 2021 thewerther
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "rgb.h"
19
20#define __ NO_LED
21
22// Indices are reveresed on the physical board, top left is bottom right.
23led_config_t g_led_config = { {
24 // Key Matrix to LED Index
25 {66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52},
26 {51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37},
27 {36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, __, 24, 23},
28 {22, __, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9},
29 { 8, 7, __, 6, __, __, 5, __, __, __, 4, 3, 2, 1, 0},
30}, {
31 // LED Index to Physical Position
32 {224, 64}, {196, 64}, {168, 64}, {140, 64}, {112, 64}, {84, 64}, {56, 64}, {28, 64}, {0, 64},
33 {224, 48}, {206, 48}, {189, 48}, {172, 48}, {155, 48}, {137, 48}, {120, 48}, {103, 48}, {86, 48}, {68, 48}, {51, 48}, {34, 48}, {17, 48}, {0, 48},
34 {224, 32}, {206, 32}, {189, 32}, {172, 32}, {155, 32}, {137, 32}, {120, 32}, {103, 32}, {86, 32}, {68, 32}, {51, 32}, {34, 32}, {17, 32}, {0, 32},
35 {224, 16}, {208, 16}, {192, 16}, {176, 16}, {160, 16}, {144, 16}, {128, 16}, {112, 16}, {96, 16}, {80, 16}, {64, 16}, {48, 16}, {32, 16}, {16, 16}, {0, 16},
36 {224, 0}, {208, 0}, {192, 0}, {176, 0}, {160, 0}, {144, 0}, {128, 0}, {112, 0}, {96, 0}, {80, 0}, {64, 0}, {48, 0}, {32, 0}, {16, 0}, {0, 0},
37 // underglow LEDs
38 {0, 0}, {56, 0}, {112, 0}, {168, 0}, {224, 0},
39 {224, 64}, {168, 64}, {112, 64}, {56, 64}, {0, 64}
40}, {
41 // LED Index to Flag
42 4, 4, 4, 1, 1, 4, 1, 1, 1, // first row
43 1, 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // second row
44 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // third row
45 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fourth row
46 4, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // fifth row
47 // underglow leds
48 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
49} };
diff --git a/keyboards/id67/rgb/rgb.h b/keyboards/id67/rgb/rgb.h
new file mode 100644
index 000000000..cca757bfc
--- /dev/null
+++ b/keyboards/id67/rgb/rgb.h
@@ -0,0 +1,34 @@
1/* Copyright 2021 Tybera
2 * Copyright 2021 thewerther
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#include "quantum.h"
21
22#define LAYOUT_65_ansi_blocker( \
23 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
24 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \
25 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, \
26 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
27 K40, K41, K43, K46, K4A, K4B, K4C, K4D, K4E \
28) { \
29 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
30 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
31 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, K2E }, \
32 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
33 { K40, K41, KC_NO, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
34}
diff --git a/keyboards/id67/rgb/rules.mk b/keyboards/id67/rgb/rules.mk
new file mode 100644
index 000000000..5ebc2b824
--- /dev/null
+++ b/keyboards/id67/rgb/rules.mk
@@ -0,0 +1,25 @@
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 = yes # Enable Bootmagic Lite
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
15NKRO_ENABLE = no # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19
20RGB_MATRIX_ENABLE = yes # Enable RGB Matrix feature
21RGB_MATRIX_DRIVER = WS2812 # ID67 uses WS2812 driver
22
23KEY_LOCK_ENABLE = yes # Enable KC_LOCK support
24
25LAYOUTS = 65_ansi_blocker