aboutsummaryrefslogtreecommitdiff
path: root/keyboards/id67/rgb/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/id67/rgb/keymaps')
-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
4 files changed, 190 insertions, 0 deletions
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