aboutsummaryrefslogtreecommitdiff
path: root/keyboards
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
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')
-rw-r--r--keyboards/40percentclub/nano/keymaps/drashna/keymap.c16
-rw-r--r--keyboards/c39/keymaps/drashna/config.h16
-rwxr-xr-xkeyboards/c39/keymaps/drashna/keymap.c16
-rw-r--r--keyboards/crkbd/keymaps/drashna/config.h78
-rw-r--r--keyboards/crkbd/keymaps/drashna/glcdfont.c232
-rw-r--r--keyboards/crkbd/keymaps/drashna/keymap.c216
-rw-r--r--keyboards/crkbd/keymaps/drashna/rules.mk27
-rw-r--r--keyboards/gergo/keymaps/drashna/keymap.c16
-rw-r--r--keyboards/keebio/iris/keymaps/drashna/config.h31
-rw-r--r--keyboards/keebio/iris/keymaps/drashna/keymap.c16
-rw-r--r--keyboards/keebio/iris/keymaps/drashna_lp/config.h31
-rw-r--r--keyboards/keebio/iris/keymaps/drashna_old/config.h31
-rw-r--r--keyboards/keebio/viterbi/keymaps/drashna/config.h31
-rw-r--r--keyboards/keebio/viterbi/keymaps/drashna/keymap.c16
-rw-r--r--keyboards/kyria/keymaps/drashna/config.h2
-rw-r--r--keyboards/kyria/keymaps/drashna/keymap.c16
-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
-rw-r--r--keyboards/moonlander/keymaps/drashna/config.h5
-rw-r--r--keyboards/moonlander/keymaps/drashna/keymap.c4
21 files changed, 321 insertions, 623 deletions
diff --git a/keyboards/40percentclub/nano/keymaps/drashna/keymap.c b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c
index f5d0787ee..b8947cce7 100644
--- a/keyboards/40percentclub/nano/keymaps/drashna/keymap.c
+++ b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2#include "analog.h" 18#include "analog.h"
3#include "pointing_device.h" 19#include "pointing_device.h"
diff --git a/keyboards/c39/keymaps/drashna/config.h b/keyboards/c39/keymaps/drashna/config.h
index 789b7cc14..73b0b8acf 100644
--- a/keyboards/c39/keymaps/drashna/config.h
+++ b/keyboards/c39/keymaps/drashna/config.h
@@ -1,3 +1,19 @@
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
1#pragma once 17#pragma once
2 18
3// place overrides here 19// place overrides here
diff --git a/keyboards/c39/keymaps/drashna/keymap.c b/keyboards/c39/keymaps/drashna/keymap.c
index 882938138..3fd3ef35e 100755
--- a/keyboards/c39/keymaps/drashna/keymap.c
+++ b/keyboards/c39/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2 18
3/* 19/*
diff --git a/keyboards/crkbd/keymaps/drashna/config.h b/keyboards/crkbd/keymaps/drashna/config.h
deleted file mode 100644
index 26af02957..000000000
--- a/keyboards/crkbd/keymaps/drashna/config.h
+++ /dev/null
@@ -1,78 +0,0 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23/* Select hand configuration */
24
25// #define MASTER_LEFT
26// #define MASTER_RIGHT
27#define EE_HANDS
28
29#undef USE_I2C
30#undef SSD1306OLED
31
32#define USE_SERIAL_PD2
33
34// #define TAPPING_FORCE_HOLD
35// #define TAPPING_TERM 100
36
37#ifdef RGBLIGHT_ENABLE
38# undef RGBLED_NUM
39# define RGBLED_NUM 27
40
41# define RGBLIGHT_HUE_STEP 8
42# define RGBLIGHT_SAT_STEP 8
43# define RGBLIGHT_VAL_STEP 5
44# define RGBLIGHT_LIMIT_VAL 120
45#endif
46
47#ifdef RGB_MATRIX_ENABLE
48# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
49// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
50// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
51# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
52// # define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
53// # define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
54# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
55# define RGB_MATRIX_HUE_STEP 8
56# define RGB_MATRIX_SAT_STEP 8
57# define RGB_MATRIX_VAL_STEP 5
58# define RGB_MATRIX_SPD_STEP 10
59#endif
60
61#ifdef AUDIO_ENABLE
62# define B6_AUDIO
63# define NO_MUSIC_MODE
64#endif
65
66#ifdef HAPTIC_ENABLE
67# define SOLENOID_PIN B7
68#endif
69
70#undef PRODUCT
71#define PRODUCT Drashna Hacked Corne Keyboard
72
73#define OLED_FONT_H "keyboards/crkbd/keymaps/drashna/glcdfont.c"
74// #define OLED_FONT_WIDTH 5
75// #define OLED_FONT_HEIGHT 7
76
77#define OLED_DISABLE_TIMEOUT
78#define TAPPING_TERM_PER_KEY
diff --git a/keyboards/crkbd/keymaps/drashna/glcdfont.c b/keyboards/crkbd/keymaps/drashna/glcdfont.c
deleted file mode 100644
index 10ce3b345..000000000
--- a/keyboards/crkbd/keymaps/drashna/glcdfont.c
+++ /dev/null
@@ -1,232 +0,0 @@
1#include "progmem.h"
2
3// Corne 8x6 font with QMK Firmware Logo
4// Online editor: https://helixfonteditor.netlify.com/
5
6// clang-format off
7const unsigned char font[] PROGMEM = {
80x00, 0x00, 0x00, 0x00, 0x00, 0x00,
90x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
100x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
110x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
120x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
130x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
140x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
150x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
160xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
170x00, 0x18, 0x24, 0x18, 0x00, 0x00,
180xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
190x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
200x26, 0x29, 0x79, 0x29, 0x26, 0x00,
210x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
220x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
230x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
240x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
250x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
260x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
270x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
280x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
290x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
300x60, 0x60, 0x60, 0x60, 0x60, 0x00,
310x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
320x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
330x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
340x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
350x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
360x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
370x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
380x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
390x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
400x00, 0x00, 0x00, 0x00, 0x00, 0x00,
410x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
420x00, 0x07, 0x00, 0x07, 0x00, 0x00,
430x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
440x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
450x23, 0x13, 0x08, 0x64, 0x62, 0x00,
460x36, 0x49, 0x56, 0x20, 0x50, 0x00,
470x00, 0x08, 0x07, 0x03, 0x00, 0x00,
480x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
490x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
500x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
510x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
520x00, 0x80, 0x70, 0x30, 0x00, 0x00,
530x08, 0x08, 0x08, 0x08, 0x08, 0x00,
540x00, 0x00, 0x60, 0x60, 0x00, 0x00,
550x20, 0x10, 0x08, 0x04, 0x02, 0x00,
560x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
570x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
580x72, 0x49, 0x49, 0x49, 0x46, 0x00,
590x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
600x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
610x27, 0x45, 0x45, 0x45, 0x39, 0x00,
620x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
630x41, 0x21, 0x11, 0x09, 0x07, 0x00,
640x36, 0x49, 0x49, 0x49, 0x36, 0x00,
650x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
660x00, 0x00, 0x14, 0x00, 0x00, 0x00,
670x00, 0x40, 0x34, 0x00, 0x00, 0x00,
680x00, 0x08, 0x14, 0x22, 0x41, 0x00,
690x14, 0x14, 0x14, 0x14, 0x14, 0x00,
700x00, 0x41, 0x22, 0x14, 0x08, 0x00,
710x02, 0x01, 0x59, 0x09, 0x06, 0x00,
720x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
730x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
740x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
750x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
760x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
770x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
780x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
790x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
800x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
810x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
820x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
830x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
840x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
850x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
860x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
870x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
880x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
890x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
900x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
910x26, 0x49, 0x49, 0x49, 0x32, 0x00,
920x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
930x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
940x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
950x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
960x63, 0x14, 0x08, 0x14, 0x63, 0x00,
970x03, 0x04, 0x78, 0x04, 0x03, 0x00,
980x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
990x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
1000x02, 0x04, 0x08, 0x10, 0x20, 0x00,
1010x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
1020x04, 0x02, 0x01, 0x02, 0x04, 0x00,
1030x40, 0x40, 0x40, 0x40, 0x40, 0x00,
1040x00, 0x03, 0x07, 0x08, 0x00, 0x00,
1050x20, 0x54, 0x54, 0x78, 0x40, 0x00,
1060x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
1070x38, 0x44, 0x44, 0x44, 0x28, 0x00,
1080x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
1090x38, 0x54, 0x54, 0x54, 0x18, 0x00,
1100x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
1110x18, 0x24, 0x24, 0x1C, 0x78, 0x00,
1120x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
1130x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
1140x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
1150x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
1160x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
1170x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
1180x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
1190x38, 0x44, 0x44, 0x44, 0x38, 0x00,
1200x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
1210x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
1220x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
1230x48, 0x54, 0x54, 0x54, 0x24, 0x00,
1240x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
1250x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
1260x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
1270x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
1280x44, 0x28, 0x10, 0x28, 0x44, 0x00,
1290x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
1300x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
1310x00, 0x08, 0x36, 0x41, 0x00, 0x00,
1320x00, 0x00, 0x77, 0x00, 0x00, 0x00,
1330x00, 0x41, 0x36, 0x08, 0x00, 0x00,
1340x02, 0x01, 0x02, 0x04, 0x02, 0x00,
1350x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
1360x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1370x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1380x00, 0x00, 0x00, 0x00, 0xC0, 0xE0,
1390xF0, 0xF8, 0xF8, 0x18, 0x00, 0xC0,
1400xF0, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF,
1410xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x00,
1420x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1430x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0,
1440xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0,
1450xC0, 0x80, 0x00, 0x00, 0x00, 0x00,
1460x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0,
1470xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80,
1480x00, 0x00, 0x00, 0xE0, 0xE0, 0xC0,
1490xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0x00,
1500x00, 0xE0, 0xE0, 0xC0, 0xC0, 0xE0,
1510xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80,
1520x00, 0x00, 0x00, 0x00, 0x80, 0xC0,
1530xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0,
1540xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00,
1550x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1560x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1570xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
1580xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
1590x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
1600x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
1610x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
1620x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
1630xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
1640xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
1650x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1660x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1670x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1680x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1690x00, 0x00, 0x00, 0xF8, 0xFC, 0xFE,
1700xFF, 0xE0, 0x00, 0xFF, 0xFF, 0xFF,
1710xFF, 0xFF, 0xFF, 0x80, 0xFF, 0xFF,
1720xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
1730xFF, 0x1F, 0x07, 0x01, 0x00, 0x00,
1740x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1750x00, 0xFF, 0xFF, 0xFF, 0x81, 0x00,
1760x00, 0x00, 0x00, 0x00, 0x00, 0x81,
1770xC3, 0xC3, 0xC3, 0x00, 0x00, 0xFF,
1780xFF, 0xFF, 0x81, 0x00, 0x00, 0x00,
1790x00, 0x00, 0x00, 0x81, 0xFF, 0xFF,
1800xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
1810x01, 0x00, 0x00, 0x00, 0x00, 0x00,
1820x00, 0xFF, 0xFF, 0xFF, 0x01, 0x00,
1830x00, 0x00, 0x00, 0x01, 0xFF, 0xFF,
1840xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF,
1850x9D, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C,
1860x1C, 0x9D, 0xDF, 0xDF, 0xDF, 0x00,
1870x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1880x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1890x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
1900x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
1910x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
1920x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
1930x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
1940x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
1950x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
1960x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
1970x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1980x00, 0x00, 0x00, 0x00, 0x00, 0x00,
1990x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2000x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2010x00, 0x00, 0x00, 0x03, 0x0F, 0x1F,
2020x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F,
2030x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x3F,
2040x3F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
2050x7F, 0x7C, 0x78, 0x78, 0x38, 0x1C,
2060x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
2070x00, 0x00, 0x01, 0x03, 0x07, 0x07,
2080x07, 0x07, 0x07, 0x07, 0x07, 0x07,
2090x03, 0x01, 0x00, 0x00, 0x00, 0x00,
2100x01, 0x03, 0x07, 0x07, 0x07, 0x07,
2110x07, 0x07, 0x07, 0x07, 0x03, 0x01,
2120x00, 0x00, 0x00, 0x07, 0x07, 0x07,
2130x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2140x00, 0x07, 0x07, 0x07, 0x00, 0x00,
2150x00, 0x00, 0x00, 0x00, 0x07, 0x07,
2160x07, 0x00, 0x00, 0x00, 0x01, 0x03,
2170x07, 0x07, 0x07, 0x07, 0x07, 0x07,
2180x07, 0x07, 0x03, 0x01, 0x00, 0x00,
2190x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2200x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2210x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2220x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2230x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2240x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2250x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2260x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2270x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2280x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2290x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2300x00, 0x00, 0x00, 0x00, 0x00, 0x00,
2310x00, 0x00, 0x00, 0x00, 0x00, 0x00,
232};
diff --git a/keyboards/crkbd/keymaps/drashna/keymap.c b/keyboards/crkbd/keymaps/drashna/keymap.c
deleted file mode 100644
index d9c1605ce..000000000
--- a/keyboards/crkbd/keymaps/drashna/keymap.c
+++ /dev/null
@@ -1,216 +0,0 @@
1#include "drashna.h"
2
3extern uint8_t is_master;
4
5#ifdef RGBLIGHT_ENABLE
6// Following line allows macro to read current RGB settings
7extern rgblight_config_t rgblight_config;
8#endif
9
10enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
11
12/*
13 * The `LAYOUT_crkbd_base` macro is a template to allow the use of identical
14 * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
15 * that there is no need to set them up for each layout, and modify all of
16 * them if I want to change them. This helps to keep consistency and ease
17 * of use. K## is a placeholder to pass through the individual keycodes
18 */
19
20#define LAYOUT_crkbd_base( \
21 K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
22 K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
23 K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
24 ) \
25 LAYOUT_wrapper( \
26 KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \
27 ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
28 OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
29 KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \
30 )
31#define LAYOUT_crkbd_base_wrapper(...) LAYOUT_crkbd_base(__VA_ARGS__)
32
33const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
34 [_QWERTY] = LAYOUT_crkbd_base_wrapper(
35 _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
36 _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
37 _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
38 ),
39
40 [_COLEMAK] = LAYOUT_crkbd_base_wrapper(
41 _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
42 _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
43 _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
44 ),
45
46 [_DVORAK] = LAYOUT_crkbd_base_wrapper(
47 _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
48 _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
49 _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
50 ),
51
52 [_WORKMAN] = LAYOUT_crkbd_base_wrapper(
53 _________________WORKMAN_L1________________, _________________WORKMAN_R1________________,
54 _________________WORKMAN_L2________________, _________________WORKMAN_R2________________,
55 _________________WORKMAN_L3________________, _________________WORKMAN_R3________________
56 ),
57
58 [_NORMAN] = LAYOUT_crkbd_base_wrapper(
59 _________________NORMAN_L1_________________, _________________NORMAN_L1_________________,
60 _________________NORMAN_L2_________________, _________________NORMAN_R2_________________,
61 _________________NORMAN_L3_________________, _________________NORMAN_R3_________________
62 ),
63
64 [_MALTRON] = LAYOUT_crkbd_base_wrapper(
65 _________________MALTRON_L1________________, _________________MALTRON_R1________________,
66 _________________MALTRON_L2________________, _________________MALTRON_R2________________,
67 _________________MALTRON_L3________________, _________________MALTRON_R3________________
68 ),
69
70 [_EUCALYN] = LAYOUT_crkbd_base_wrapper(
71 _________________EUCALYN_L1________________, _________________EUCALYN_R1________________,
72 _________________EUCALYN_L2________________, _________________EUCALYN_R2________________,
73 _________________EUCALYN_L3________________, _________________EUCALYN_R3________________
74 ),
75
76 [_CARPLAX] = LAYOUT_crkbd_base_wrapper(
77 _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________,
78 _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________,
79 _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________
80 ),
81
82 [_MODS] = LAYOUT_wrapper(
83 _______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
84 _______, ___________________BLANK___________________, ___________________BLANK___________________, _______,
85 KC_LSFT, ___________________BLANK___________________, ___________________BLANK___________________, KC_RSFT,
86 _______, _______, _______, _______, _______, _______
87 ),
88
89 [_LOWER] = LAYOUT_wrapper(
90 KC_F11, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_F11,
91 KC_F12, _________________LOWER_L2__________________, _________________LOWER_R2__________________, KC_PIPE,
92 _______, _________________LOWER_L3__________________, _________________LOWER_R3__________________, _______,
93 _______, _______, _______, _______, _______, _______
94 ),
95
96 [_RAISE] = LAYOUT_wrapper( \
97 _______, _________________RAISE_L1__________________, _________________RAISE_R1__________________, _______,
98 _______, _________________RAISE_L2__________________, _________________RAISE_R2__________________, KC_BSLS,
99 _______, _________________RAISE_L3__________________, _________________RAISE_R3__________________, _______,
100 _______, _______, _______, _______, _______, _______
101 ),
102
103 [_ADJUST] = LAYOUT_wrapper( \
104 KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
105 VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
106 MG_NKRO, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, RGB_IDL,
107 HPT_TOG, KC_NUKE, _______, _______, TG_MODS, HPT_FBK
108 )
109};
110// clang-format on
111
112bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
113 if (record->event.pressed) {
114#ifndef SPLIT_KEYBOARD
115 if (keycode == RESET && !is_master) {
116 return false;
117 }
118#endif
119 }
120 return true;
121}
122
123#ifdef OLED_DRIVER_ENABLE
124oled_rotation_t oled_init_user(oled_rotation_t rotation) {
125# ifndef SPLIT_KEYBOARD
126 if (is_master) {
127# endif
128 return OLED_ROTATION_270;
129# ifndef SPLIT_KEYBOARD
130 } else {
131 return rotation;
132 }
133# endif
134}
135#endif
136
137uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
138 switch (keycode) {
139 case ALT_T(KC_A):
140 return TAPPING_TERM + 100;
141 default:
142 return TAPPING_TERM;
143 }
144}
145
146#ifdef RGB_MATRIX_ENABLE
147
148void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); }
149
150void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); }
151
152void check_default_layer(uint8_t mode, uint8_t type) {
153 switch (get_highest_layer(default_layer_state)) {
154 case _QWERTY:
155 rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type);
156 break;
157 case _COLEMAK:
158 rgb_matrix_layer_helper(HSV_MAGENTA, mode, rgb_matrix_config.speed, type);
159 break;
160 case _DVORAK:
161 rgb_matrix_layer_helper(HSV_SPRINGGREEN, mode, rgb_matrix_config.speed, type);
162 break;
163 case _WORKMAN:
164 rgb_matrix_layer_helper(HSV_GOLDENROD, mode, rgb_matrix_config.speed, type);
165 break;
166 case _NORMAN:
167 rgb_matrix_layer_helper(HSV_CORAL, mode, rgb_matrix_config.speed, type);
168 break;
169 case _MALTRON:
170 rgb_matrix_layer_helper(HSV_YELLOW, mode, rgb_matrix_config.speed, type);
171 break;
172 case _EUCALYN:
173 rgb_matrix_layer_helper(HSV_PINK, mode, rgb_matrix_config.speed, type);
174 break;
175 case _CARPLAX:
176 rgb_matrix_layer_helper(HSV_BLUE, mode, rgb_matrix_config.speed, type);
177 break;
178 }
179}
180
181void rgb_matrix_indicators_user(void) {
182 if (userspace_config.rgb_layer_change &&
183# ifdef RGB_DISABLE_WHEN_USB_SUSPENDED
184 !g_suspend_state &&
185# endif
186# if defined(RGBLIGHT_ENABLE)
187 (!rgblight_config.enable && rgb_matrix_config.enable)
188# else
189 rgb_matrix_config.enable
190# endif
191 ) {
192 switch (get_highest_layer(layer_state)) {
193 case _GAMEPAD:
194 rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
195 break;
196 case _DIABLO:
197 rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
198 break;
199 case _RAISE:
200 rgb_matrix_layer_helper(HSV_YELLOW, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
201 break;
202 case _LOWER:
203 rgb_matrix_layer_helper(HSV_GREEN, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
204 break;
205 case _ADJUST:
206 rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW);
207 break;
208 default: {
209 check_default_layer(IS_LAYER_ON(_MODS), LED_FLAG_UNDERGLOW);
210 break;
211 }
212 }
213 check_default_layer(0, LED_FLAG_MODIFIER);
214 }
215}
216#endif
diff --git a/keyboards/crkbd/keymaps/drashna/rules.mk b/keyboards/crkbd/keymaps/drashna/rules.mk
deleted file mode 100644
index 492c17e20..000000000
--- a/keyboards/crkbd/keymaps/drashna/rules.mk
+++ /dev/null
@@ -1,27 +0,0 @@
1
2# Build Options
3# change to "no" to disable the options, or define them in the Makefile in
4# the appropriate keymap folder that will get included automatically
5#
6BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
7MOUSEKEY_ENABLE = no # Mouse keys(+4700)
8EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
9CONSOLE_ENABLE = no # Console for debug(+400)
10COMMAND_ENABLE = no # Commands for debug and configuration
11NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
13MIDI_ENABLE = no # MIDI controls
14AUDIO_ENABLE = no # Audio output on port C6
15UNICODE_ENABLE = no # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19RGB_MATRIX_ENABLE = WS2812
20
21HAPTIC_ENABLE = SOLENOID
22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24
25BOOTLOADER = qmk-dfu
26
27OLED_DRIVER_ENABLE = yes
diff --git a/keyboards/gergo/keymaps/drashna/keymap.c b/keyboards/gergo/keymaps/drashna/keymap.c
index d1e622406..7258d350d 100644
--- a/keyboards/gergo/keymaps/drashna/keymap.c
+++ b/keyboards/gergo/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2 18
3/* 19/*
diff --git a/keyboards/keebio/iris/keymaps/drashna/config.h b/keyboards/keebio/iris/keymaps/drashna/config.h
index 49381b60a..63f87b7c4 100644
--- a/keyboards/keebio/iris/keymaps/drashna/config.h
+++ b/keyboards/keebio/iris/keymaps/drashna/config.h
@@ -1,19 +1,18 @@
1/* 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2Copyright 2017 Danny Nguyen <danny@keeb.io> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This 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
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/
17 16
18#pragma once 17#pragma once
19 18
diff --git a/keyboards/keebio/iris/keymaps/drashna/keymap.c b/keyboards/keebio/iris/keymaps/drashna/keymap.c
index edfcd23e7..bc34ba822 100644
--- a/keyboards/keebio/iris/keymaps/drashna/keymap.c
+++ b/keyboards/keebio/iris/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2 18
3/* 19/*
diff --git a/keyboards/keebio/iris/keymaps/drashna_lp/config.h b/keyboards/keebio/iris/keymaps/drashna_lp/config.h
index 5370d88ed..414acab84 100644
--- a/keyboards/keebio/iris/keymaps/drashna_lp/config.h
+++ b/keyboards/keebio/iris/keymaps/drashna_lp/config.h
@@ -1,19 +1,18 @@
1/* 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2Copyright 2017 Danny Nguyen <danny@keeb.io> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This 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
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/
17 16
18#pragma once 17#pragma once
19 18
diff --git a/keyboards/keebio/iris/keymaps/drashna_old/config.h b/keyboards/keebio/iris/keymaps/drashna_old/config.h
index 5adf014e3..f08b22dca 100644
--- a/keyboards/keebio/iris/keymaps/drashna_old/config.h
+++ b/keyboards/keebio/iris/keymaps/drashna_old/config.h
@@ -1,19 +1,18 @@
1/* 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2Copyright 2017 Danny Nguyen <danny@keeb.io> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This 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
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/
17 16
18#pragma once 17#pragma once
19 18
diff --git a/keyboards/keebio/viterbi/keymaps/drashna/config.h b/keyboards/keebio/viterbi/keymaps/drashna/config.h
index 40a5bbd0e..5d7ffa8a1 100644
--- a/keyboards/keebio/viterbi/keymaps/drashna/config.h
+++ b/keyboards/keebio/viterbi/keymaps/drashna/config.h
@@ -1,19 +1,18 @@
1/* 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2Copyright 2017 Danny Nguyen <danny@hexwire.com> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This 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
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/
17 16
18#pragma once 17#pragma once
19 18
diff --git a/keyboards/keebio/viterbi/keymaps/drashna/keymap.c b/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
index 3b213418d..99e06b4de 100644
--- a/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
+++ b/keyboards/keebio/viterbi/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2 18
3// Fillers to make layering more clear 19// Fillers to make layering more clear
diff --git a/keyboards/kyria/keymaps/drashna/config.h b/keyboards/kyria/keymaps/drashna/config.h
index 5e9d8b010..1af947e73 100644
--- a/keyboards/kyria/keymaps/drashna/config.h
+++ b/keyboards/kyria/keymaps/drashna/config.h
@@ -1,4 +1,4 @@
1/* Copyright 2019 Thomas Baart <thomas@splitkb.com> 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
diff --git a/keyboards/kyria/keymaps/drashna/keymap.c b/keyboards/kyria/keymaps/drashna/keymap.c
index 98afff19f..08f32812e 100644
--- a/keyboards/kyria/keymaps/drashna/keymap.c
+++ b/keyboards/kyria/keymaps/drashna/keymap.c
@@ -1,3 +1,19 @@
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
1#include "drashna.h" 17#include "drashna.h"
2 18
3uint8_t is_master; 19uint8_t is_master;
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
diff --git a/keyboards/moonlander/keymaps/drashna/config.h b/keyboards/moonlander/keymaps/drashna/config.h
index dd49eaf4b..e022722fe 100644
--- a/keyboards/moonlander/keymaps/drashna/config.h
+++ b/keyboards/moonlander/keymaps/drashna/config.h
@@ -1,4 +1,4 @@
1/* Copyright 2020 Drashna Jael're <drashna@live.com> 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -15,7 +15,8 @@
15 */ 15 */
16 16
17 17
18
19#pragma once 18#pragma once
20 19
21#define TAPPING_TERM_PER_KEY 20#define TAPPING_TERM_PER_KEY
21#define WAIT_FOR_USB
22// #define NO_USB_STARTUP_CHECK
diff --git a/keyboards/moonlander/keymaps/drashna/keymap.c b/keyboards/moonlander/keymaps/drashna/keymap.c
index b8754673b..7daa5248f 100644
--- a/keyboards/moonlander/keymaps/drashna/keymap.c
+++ b/keyboards/moonlander/keymaps/drashna/keymap.c
@@ -1,4 +1,4 @@
1/* Copyright 2020 Drashna Jael're <drashna@live.com> 1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
2 * 2 *
3 * This program is free software: you can redistribute it and/or modify 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 4 * it under the terms of the GNU General Public License as published by
@@ -14,8 +14,6 @@
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
18
19#include "drashna.h" 17#include "drashna.h"
20 18
21#ifndef UNICODE_ENABLE 19#ifndef UNICODE_ENABLE