aboutsummaryrefslogtreecommitdiff
path: root/keyboards/launchpad
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-10-17 11:46:57 -0700
committerGitHub <noreply@github.com>2020-10-17 11:46:57 -0700
commit855dd2d218ba875f1fb7bddfbce8bd260e96184e (patch)
tree3becfc91270b45aa061f529eb08bd1bf32fc0513 /keyboards/launchpad
parentaa1c1c386543a38d47331d17c414f81c8e11cb29 (diff)
downloadqmk_firmware-855dd2d218ba875f1fb7bddfbce8bd260e96184e.tar.gz
qmk_firmware-855dd2d218ba875f1fb7bddfbce8bd260e96184e.zip
[Keymap] Drashna Code Cleanup (#10656)
* Add Launchpad keymap Note: RGB and Audio won't work when using B pins for audio * Add support for rgb matrix on launchpad * Update config for launchpag * Disable wait on layer change * Update config for ErgoDox EZ * Fixup rgb light userspace code * Move Corne layout to community layouts folder * Update config for corne to support community layouts * Add license header to files * Minor cleanup of userspace config * Update Pimironi Trackball code * Increase debounce time on ergodox * Fix keymap handling * Enable wait for USB for moonlander * Update/add license headers * fix review issues
Diffstat (limited to 'keyboards/launchpad')
-rw-r--r--keyboards/launchpad/keymaps/drashna/config.h31
-rw-r--r--keyboards/launchpad/keymaps/drashna/keymap.c107
-rw-r--r--keyboards/launchpad/keymaps/drashna/rules.mk6
3 files changed, 144 insertions, 0 deletions
diff --git a/keyboards/launchpad/keymaps/drashna/config.h b/keyboards/launchpad/keymaps/drashna/config.h
new file mode 100644
index 000000000..212b1da80
--- /dev/null
+++ b/keyboards/launchpad/keymaps/drashna/config.h
@@ -0,0 +1,31 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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/* Underlight Configuration */
20#undef RGB_DI_PIN
21#define RGB_DI_PIN F5
22#define RGBLIGHT_ANIMATIONS
23#undef RGBLED_NUM
24#define RGBLED_NUM 8 // Number of LEDs
25#define RGBLIGHT_HUE_STEP 10
26#define RGBLIGHT_SAT_STEP 17
27#define RGBLIGHT_VAL_STEP 17
28
29#define DRIVER_LED_TOTAL RGBLED_NUM
30#define B7_AUDIO
31#define AUDIO_CLICKY
diff --git a/keyboards/launchpad/keymaps/drashna/keymap.c b/keyboards/launchpad/keymaps/drashna/keymap.c
new file mode 100644
index 000000000..f8e4d1a41
--- /dev/null
+++ b/keyboards/launchpad/keymaps/drashna/keymap.c
@@ -0,0 +1,107 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
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
19enum local_layers {
20 _QWERTY,
21 _RGB,
22 _FUNC,
23};
24
25// Defines for task manager and such
26#define CALTDEL LCTL(LALT(KC_DEL))
27#define TSKMGR LCTL(LSFT(KC_ESC))
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 /* Qwerty
32 * ,-------------.
33 * | 1 | 2 |
34 * |------+------|
35 * | 3 | 4 |
36 * |------+------|
37 * | 5 | 6 |
38 * |------+------|
39 * | FUNC | RGB |
40 * `-------------'
41 */
42 [_QWERTY] = LAYOUT( \
43 KC_1, KC_2, \
44 KC_3, KC_4, \
45 KC_5, KC_6, \
46 MO(_FUNC), TG(_RGB) \
47 ),
48
49 /* RGB
50 * ,-------------.
51 * | Mode-| Mode+|
52 * |------+------|
53 * | HUE- | HUE+ |
54 * |------+------|
55 * | SAT- | SAT+ |
56 * |------+------|
57 * |RGBTOG| |
58 * `-------------'
59 */
60 [_RGB] = LAYOUT( \
61 RGB_RMOD, RGB_MOD, \
62 RGB_HUD, RGB_HUI, \
63 RGB_SAD, RGB_SAI, \
64 RGB_TOG, KC_TRNS \
65 ),
66
67 /* Function
68 * ,-------------.
69 * | Q |CALDEL|
70 * |------+------|
71 * | A |TSKMGR|
72 * |------+------|
73 * | Z | X |
74 * |------+------|
75 * | | C |
76 * `-------------'
77 */
78 [_FUNC] = LAYOUT( \
79 KC_Q, CALTDEL, \
80 KC_A, TSKMGR, \
81 KC_Z, KC_X, \
82 _______, RESET \
83 )
84
85};
86
87
88
89
90#ifdef RGB_MATRIX_ENABLE
91 led_config_t g_led_config = {
92 {
93 { 7, 0 },
94 { 6, 1 },
95 { 5, 2 },
96 { 4, 3 },
97 },{
98 { 121, 2 }, { 121, 23 },
99 { 121, 41 }, { 121, 60 },
100 { 103, 2 }, { 103, 23 },
101 { 103, 41 }, { 103, 60 },
102 },{
103 1, 1, 1, 1,
104 1, 1, 1, 1,
105 }
106 };
107#endif
diff --git a/keyboards/launchpad/keymaps/drashna/rules.mk b/keyboards/launchpad/keymaps/drashna/rules.mk
new file mode 100644
index 000000000..463b85599
--- /dev/null
+++ b/keyboards/launchpad/keymaps/drashna/rules.mk
@@ -0,0 +1,6 @@
1BOOTLOADER = atmel-dfu
2
3RGBLIGHT_ENABLE = no
4AUDIO_ENABLE = no
5BOOTMAGIC_ENABLE = lite
6RGB_MATRIX_ENABLE = WS2812