diff options
| author | Drashna Jaelre <drashna@live.com> | 2020-10-17 11:46:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 11:46:57 -0700 |
| commit | 855dd2d218ba875f1fb7bddfbce8bd260e96184e (patch) | |
| tree | 3becfc91270b45aa061f529eb08bd1bf32fc0513 /layouts/community/split_3x6_3 | |
| parent | aa1c1c386543a38d47331d17c414f81c8e11cb29 (diff) | |
| download | qmk_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 'layouts/community/split_3x6_3')
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/config.h | 74 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/glcdfont.c | 232 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/keymap.c | 232 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/rules.mk | 28 |
4 files changed, 566 insertions, 0 deletions
diff --git a/layouts/community/split_3x6_3/drashna/config.h b/layouts/community/split_3x6_3/drashna/config.h new file mode 100644 index 000000000..7db51fb6e --- /dev/null +++ b/layouts/community/split_3x6_3/drashna/config.h | |||
| @@ -0,0 +1,74 @@ | |||
| 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 | /* Select hand configuration */ | ||
| 20 | |||
| 21 | // #define MASTER_LEFT | ||
| 22 | // #define MASTER_RIGHT | ||
| 23 | #define EE_HANDS | ||
| 24 | |||
| 25 | #undef USE_I2C | ||
| 26 | #undef SSD1306OLED | ||
| 27 | |||
| 28 | #define USE_SERIAL_PD2 | ||
| 29 | |||
| 30 | // #define TAPPING_FORCE_HOLD | ||
| 31 | // #define TAPPING_TERM 100 | ||
| 32 | |||
| 33 | #ifdef RGBLIGHT_ENABLE | ||
| 34 | # undef RGBLED_NUM | ||
| 35 | # define RGBLED_NUM 27 | ||
| 36 | |||
| 37 | # define RGBLIGHT_HUE_STEP 8 | ||
| 38 | # define RGBLIGHT_SAT_STEP 8 | ||
| 39 | # define RGBLIGHT_VAL_STEP 5 | ||
| 40 | # define RGBLIGHT_LIMIT_VAL 120 | ||
| 41 | #endif | ||
| 42 | |||
| 43 | #ifdef RGB_MATRIX_ENABLE | ||
| 44 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | ||
| 45 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | ||
| 46 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 47 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
| 48 | // # 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) | ||
| 49 | // # 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) | ||
| 50 | # 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 | ||
| 51 | # define RGB_MATRIX_HUE_STEP 8 | ||
| 52 | # define RGB_MATRIX_SAT_STEP 8 | ||
| 53 | # define RGB_MATRIX_VAL_STEP 5 | ||
| 54 | # define RGB_MATRIX_SPD_STEP 10 | ||
| 55 | #endif | ||
| 56 | |||
| 57 | #ifdef AUDIO_ENABLE | ||
| 58 | # define B6_AUDIO | ||
| 59 | # define NO_MUSIC_MODE | ||
| 60 | #endif | ||
| 61 | |||
| 62 | #ifdef HAPTIC_ENABLE | ||
| 63 | # define SOLENOID_PIN B7 | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #undef PRODUCT | ||
| 67 | #define PRODUCT Drashna Hacked Corne Keyboard | ||
| 68 | |||
| 69 | #define OLED_FONT_H "layouts/community/split_3x6_3/drashna/glcdfont.c" | ||
| 70 | // #define OLED_FONT_WIDTH 5 | ||
| 71 | // #define OLED_FONT_HEIGHT 7 | ||
| 72 | |||
| 73 | #define OLED_DISABLE_TIMEOUT | ||
| 74 | #define TAPPING_TERM_PER_KEY | ||
diff --git a/layouts/community/split_3x6_3/drashna/glcdfont.c b/layouts/community/split_3x6_3/drashna/glcdfont.c new file mode 100644 index 000000000..10ce3b345 --- /dev/null +++ b/layouts/community/split_3x6_3/drashna/glcdfont.c | |||
| @@ -0,0 +1,232 @@ | |||
| 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 | ||
| 7 | const unsigned char font[] PROGMEM = { | ||
| 8 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 9 | 0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00, | ||
| 10 | 0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00, | ||
| 11 | 0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00, | ||
| 12 | 0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00, | ||
| 13 | 0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00, | ||
| 14 | 0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, | ||
| 15 | 0x00, 0x18, 0x3C, 0x18, 0x00, 0x00, | ||
| 16 | 0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, | ||
| 17 | 0x00, 0x18, 0x24, 0x18, 0x00, 0x00, | ||
| 18 | 0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00, | ||
| 19 | 0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00, | ||
| 20 | 0x26, 0x29, 0x79, 0x29, 0x26, 0x00, | ||
| 21 | 0x40, 0x7F, 0x05, 0x05, 0x07, 0x00, | ||
| 22 | 0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00, | ||
| 23 | 0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00, | ||
| 24 | 0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00, | ||
| 25 | 0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00, | ||
| 26 | 0x14, 0x22, 0x7F, 0x22, 0x14, 0x00, | ||
| 27 | 0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00, | ||
| 28 | 0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, | ||
| 29 | 0x00, 0x66, 0x89, 0x95, 0x6A, 0x00, | ||
| 30 | 0x60, 0x60, 0x60, 0x60, 0x60, 0x00, | ||
| 31 | 0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00, | ||
| 32 | 0x08, 0x04, 0x7E, 0x04, 0x08, 0x00, | ||
| 33 | 0x10, 0x20, 0x7E, 0x20, 0x10, 0x00, | ||
| 34 | 0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00, | ||
| 35 | 0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00, | ||
| 36 | 0x1E, 0x10, 0x10, 0x10, 0x10, 0x00, | ||
| 37 | 0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00, | ||
| 38 | 0x30, 0x38, 0x3E, 0x38, 0x30, 0x00, | ||
| 39 | 0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, | ||
| 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 41 | 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, | ||
| 42 | 0x00, 0x07, 0x00, 0x07, 0x00, 0x00, | ||
| 43 | 0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, | ||
| 44 | 0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, | ||
| 45 | 0x23, 0x13, 0x08, 0x64, 0x62, 0x00, | ||
| 46 | 0x36, 0x49, 0x56, 0x20, 0x50, 0x00, | ||
| 47 | 0x00, 0x08, 0x07, 0x03, 0x00, 0x00, | ||
| 48 | 0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, | ||
| 49 | 0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, | ||
| 50 | 0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00, | ||
| 51 | 0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, | ||
| 52 | 0x00, 0x80, 0x70, 0x30, 0x00, 0x00, | ||
| 53 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, | ||
| 54 | 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, | ||
| 55 | 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, | ||
| 56 | 0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, | ||
| 57 | 0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, | ||
| 58 | 0x72, 0x49, 0x49, 0x49, 0x46, 0x00, | ||
| 59 | 0x21, 0x41, 0x49, 0x4D, 0x33, 0x00, | ||
| 60 | 0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, | ||
| 61 | 0x27, 0x45, 0x45, 0x45, 0x39, 0x00, | ||
| 62 | 0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00, | ||
| 63 | 0x41, 0x21, 0x11, 0x09, 0x07, 0x00, | ||
| 64 | 0x36, 0x49, 0x49, 0x49, 0x36, 0x00, | ||
| 65 | 0x46, 0x49, 0x49, 0x29, 0x1E, 0x00, | ||
| 66 | 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, | ||
| 67 | 0x00, 0x40, 0x34, 0x00, 0x00, 0x00, | ||
| 68 | 0x00, 0x08, 0x14, 0x22, 0x41, 0x00, | ||
| 69 | 0x14, 0x14, 0x14, 0x14, 0x14, 0x00, | ||
| 70 | 0x00, 0x41, 0x22, 0x14, 0x08, 0x00, | ||
| 71 | 0x02, 0x01, 0x59, 0x09, 0x06, 0x00, | ||
| 72 | 0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00, | ||
| 73 | 0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00, | ||
| 74 | 0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, | ||
| 75 | 0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, | ||
| 76 | 0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00, | ||
| 77 | 0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, | ||
| 78 | 0x7F, 0x09, 0x09, 0x09, 0x01, 0x00, | ||
| 79 | 0x3E, 0x41, 0x41, 0x51, 0x73, 0x00, | ||
| 80 | 0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, | ||
| 81 | 0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, | ||
| 82 | 0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, | ||
| 83 | 0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, | ||
| 84 | 0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, | ||
| 85 | 0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00, | ||
| 86 | 0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, | ||
| 87 | 0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, | ||
| 88 | 0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, | ||
| 89 | 0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, | ||
| 90 | 0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, | ||
| 91 | 0x26, 0x49, 0x49, 0x49, 0x32, 0x00, | ||
| 92 | 0x03, 0x01, 0x7F, 0x01, 0x03, 0x00, | ||
| 93 | 0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, | ||
| 94 | 0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, | ||
| 95 | 0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00, | ||
| 96 | 0x63, 0x14, 0x08, 0x14, 0x63, 0x00, | ||
| 97 | 0x03, 0x04, 0x78, 0x04, 0x03, 0x00, | ||
| 98 | 0x61, 0x59, 0x49, 0x4D, 0x43, 0x00, | ||
| 99 | 0x00, 0x7F, 0x41, 0x41, 0x41, 0x00, | ||
| 100 | 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, | ||
| 101 | 0x00, 0x41, 0x41, 0x41, 0x7F, 0x00, | ||
| 102 | 0x04, 0x02, 0x01, 0x02, 0x04, 0x00, | ||
| 103 | 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, | ||
| 104 | 0x00, 0x03, 0x07, 0x08, 0x00, 0x00, | ||
| 105 | 0x20, 0x54, 0x54, 0x78, 0x40, 0x00, | ||
| 106 | 0x7F, 0x28, 0x44, 0x44, 0x38, 0x00, | ||
| 107 | 0x38, 0x44, 0x44, 0x44, 0x28, 0x00, | ||
| 108 | 0x38, 0x44, 0x44, 0x28, 0x7F, 0x00, | ||
| 109 | 0x38, 0x54, 0x54, 0x54, 0x18, 0x00, | ||
| 110 | 0x00, 0x08, 0x7E, 0x09, 0x02, 0x00, | ||
| 111 | 0x18, 0x24, 0x24, 0x1C, 0x78, 0x00, | ||
| 112 | 0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, | ||
| 113 | 0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, | ||
| 114 | 0x20, 0x40, 0x40, 0x3D, 0x00, 0x00, | ||
| 115 | 0x7F, 0x10, 0x28, 0x44, 0x00, 0x00, | ||
| 116 | 0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, | ||
| 117 | 0x7C, 0x04, 0x78, 0x04, 0x78, 0x00, | ||
| 118 | 0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, | ||
| 119 | 0x38, 0x44, 0x44, 0x44, 0x38, 0x00, | ||
| 120 | 0x7C, 0x18, 0x24, 0x24, 0x18, 0x00, | ||
| 121 | 0x18, 0x24, 0x24, 0x18, 0x7C, 0x00, | ||
| 122 | 0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, | ||
| 123 | 0x48, 0x54, 0x54, 0x54, 0x24, 0x00, | ||
| 124 | 0x04, 0x04, 0x3F, 0x44, 0x24, 0x00, | ||
| 125 | 0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, | ||
| 126 | 0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, | ||
| 127 | 0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, | ||
| 128 | 0x44, 0x28, 0x10, 0x28, 0x44, 0x00, | ||
| 129 | 0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00, | ||
| 130 | 0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, | ||
| 131 | 0x00, 0x08, 0x36, 0x41, 0x00, 0x00, | ||
| 132 | 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, | ||
| 133 | 0x00, 0x41, 0x36, 0x08, 0x00, 0x00, | ||
| 134 | 0x02, 0x01, 0x02, 0x04, 0x02, 0x00, | ||
| 135 | 0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00, | ||
| 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 138 | 0x00, 0x00, 0x00, 0x00, 0xC0, 0xE0, | ||
| 139 | 0xF0, 0xF8, 0xF8, 0x18, 0x00, 0xC0, | ||
| 140 | 0xF0, 0xFC, 0xFE, 0xFF, 0xFF, 0xFF, | ||
| 141 | 0xFF, 0xFF, 0xFF, 0xFF, 0x7E, 0x00, | ||
| 142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 143 | 0x00, 0x00, 0x80, 0xC0, 0xE0, 0xE0, | ||
| 144 | 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, | ||
| 145 | 0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 146 | 0x80, 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, | ||
| 147 | 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80, | ||
| 148 | 0x00, 0x00, 0x00, 0xE0, 0xE0, 0xC0, | ||
| 149 | 0xC0, 0xE0, 0xE0, 0xE0, 0xE0, 0x00, | ||
| 150 | 0x00, 0xE0, 0xE0, 0xC0, 0xC0, 0xE0, | ||
| 151 | 0xE0, 0xE0, 0xE0, 0xE0, 0xC0, 0x80, | ||
| 152 | 0x00, 0x00, 0x00, 0x00, 0x80, 0xC0, | ||
| 153 | 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0, | ||
| 154 | 0xE0, 0xE0, 0xC0, 0x80, 0x00, 0x00, | ||
| 155 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 156 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 157 | 0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC, | ||
| 158 | 0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00, | ||
| 159 | 0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E, | ||
| 160 | 0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00, | ||
| 161 | 0x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B, | ||
| 162 | 0x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00, | ||
| 163 | 0xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE, | ||
| 164 | 0xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00, | ||
| 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 166 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 167 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 168 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 169 | 0x00, 0x00, 0x00, 0xF8, 0xFC, 0xFE, | ||
| 170 | 0xFF, 0xE0, 0x00, 0xFF, 0xFF, 0xFF, | ||
| 171 | 0xFF, 0xFF, 0xFF, 0x80, 0xFF, 0xFF, | ||
| 172 | 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, | ||
| 173 | 0xFF, 0x1F, 0x07, 0x01, 0x00, 0x00, | ||
| 174 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 175 | 0x00, 0xFF, 0xFF, 0xFF, 0x81, 0x00, | ||
| 176 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, | ||
| 177 | 0xC3, 0xC3, 0xC3, 0x00, 0x00, 0xFF, | ||
| 178 | 0xFF, 0xFF, 0x81, 0x00, 0x00, 0x00, | ||
| 179 | 0x00, 0x00, 0x00, 0x81, 0xFF, 0xFF, | ||
| 180 | 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, | ||
| 181 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 182 | 0x00, 0xFF, 0xFF, 0xFF, 0x01, 0x00, | ||
| 183 | 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF, | ||
| 184 | 0xFF, 0x00, 0x00, 0xFF, 0xFF, 0xFF, | ||
| 185 | 0x9D, 0x1C, 0x1C, 0x1C, 0x1C, 0x1C, | ||
| 186 | 0x1C, 0x9D, 0xDF, 0xDF, 0xDF, 0x00, | ||
| 187 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 188 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 189 | 0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F, | ||
| 190 | 0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00, | ||
| 191 | 0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F, | ||
| 192 | 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00, | ||
| 193 | 0x30, 0x7B, 0x7F, 0x78, 0x30, 0x20, | ||
| 194 | 0x20, 0x30, 0x78, 0x7F, 0x3B, 0x00, | ||
| 195 | 0x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F, | ||
| 196 | 0x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00, | ||
| 197 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 200 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 201 | 0x00, 0x00, 0x00, 0x03, 0x0F, 0x1F, | ||
| 202 | 0x3F, 0x3F, 0x3F, 0x3F, 0x1F, 0x1F, | ||
| 203 | 0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x3F, | ||
| 204 | 0x3F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F, | ||
| 205 | 0x7F, 0x7C, 0x78, 0x78, 0x38, 0x1C, | ||
| 206 | 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 207 | 0x00, 0x00, 0x01, 0x03, 0x07, 0x07, | ||
| 208 | 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, | ||
| 209 | 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, | ||
| 210 | 0x01, 0x03, 0x07, 0x07, 0x07, 0x07, | ||
| 211 | 0x07, 0x07, 0x07, 0x07, 0x03, 0x01, | ||
| 212 | 0x00, 0x00, 0x00, 0x07, 0x07, 0x07, | ||
| 213 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 214 | 0x00, 0x07, 0x07, 0x07, 0x00, 0x00, | ||
| 215 | 0x00, 0x00, 0x00, 0x00, 0x07, 0x07, | ||
| 216 | 0x07, 0x00, 0x00, 0x00, 0x01, 0x03, | ||
| 217 | 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, | ||
| 218 | 0x07, 0x07, 0x03, 0x01, 0x00, 0x00, | ||
| 219 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 220 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 221 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 222 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 223 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 224 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 225 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 226 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 227 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 228 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 229 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 230 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 231 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 232 | }; | ||
diff --git a/layouts/community/split_3x6_3/drashna/keymap.c b/layouts/community/split_3x6_3/drashna/keymap.c new file mode 100644 index 000000000..30e3958fe --- /dev/null +++ b/layouts/community/split_3x6_3/drashna/keymap.c | |||
| @@ -0,0 +1,232 @@ | |||
| 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 "drashna.h" | ||
| 18 | |||
| 19 | extern uint8_t is_master; | ||
| 20 | |||
| 21 | #ifdef RGBLIGHT_ENABLE | ||
| 22 | // Following line allows macro to read current RGB settings | ||
| 23 | extern rgblight_config_t rgblight_config; | ||
| 24 | #endif | ||
| 25 | |||
| 26 | enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE }; | ||
| 27 | |||
| 28 | /* | ||
| 29 | * The `LAYOUT_crkbd_base` macro is a template to allow the use of identical | ||
| 30 | * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so | ||
| 31 | * that there is no need to set them up for each layout, and modify all of | ||
| 32 | * them if I want to change them. This helps to keep consistency and ease | ||
| 33 | * of use. K## is a placeholder to pass through the individual keycodes | ||
| 34 | */ | ||
| 35 | |||
| 36 | #define LAYOUT_split_3x6_3_base( \ | ||
| 37 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | ||
| 38 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | ||
| 39 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | ||
| 40 | ) \ | ||
| 41 | LAYOUT_split_3x6_3_wrapper( \ | ||
| 42 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \ | ||
| 43 | ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ | ||
| 44 | OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \ | ||
| 45 | KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \ | ||
| 46 | ) | ||
| 47 | #define LAYOUT_split_3x6_3_base_wrapper(...) LAYOUT_split_3x6_3_base(__VA_ARGS__) | ||
| 48 | |||
| 49 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 50 | [_QWERTY] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 51 | _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, | ||
| 52 | _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, | ||
| 53 | _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ | ||
| 54 | ), | ||
| 55 | |||
| 56 | [_COLEMAK] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 57 | _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, | ||
| 58 | _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, | ||
| 59 | _________________COLEMAK_L3________________, _________________COLEMAK_R3________________ | ||
| 60 | ), | ||
| 61 | |||
| 62 | [_DVORAK] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 63 | _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, | ||
| 64 | _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, | ||
| 65 | _________________DVORAK_L3_________________, _________________DVORAK_R3_________________ | ||
| 66 | ), | ||
| 67 | |||
| 68 | [_WORKMAN] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 69 | _________________WORKMAN_L1________________, _________________WORKMAN_R1________________, | ||
| 70 | _________________WORKMAN_L2________________, _________________WORKMAN_R2________________, | ||
| 71 | _________________WORKMAN_L3________________, _________________WORKMAN_R3________________ | ||
| 72 | ), | ||
| 73 | |||
| 74 | [_NORMAN] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 75 | _________________NORMAN_L1_________________, _________________NORMAN_L1_________________, | ||
| 76 | _________________NORMAN_L2_________________, _________________NORMAN_R2_________________, | ||
| 77 | _________________NORMAN_L3_________________, _________________NORMAN_R3_________________ | ||
| 78 | ), | ||
| 79 | |||
| 80 | [_MALTRON] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 81 | _________________MALTRON_L1________________, _________________MALTRON_R1________________, | ||
| 82 | _________________MALTRON_L2________________, _________________MALTRON_R2________________, | ||
| 83 | _________________MALTRON_L3________________, _________________MALTRON_R3________________ | ||
| 84 | ), | ||
| 85 | |||
| 86 | [_EUCALYN] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 87 | _________________EUCALYN_L1________________, _________________EUCALYN_R1________________, | ||
| 88 | _________________EUCALYN_L2________________, _________________EUCALYN_R2________________, | ||
| 89 | _________________EUCALYN_L3________________, _________________EUCALYN_R3________________ | ||
| 90 | ), | ||
| 91 | |||
| 92 | [_CARPLAX] = LAYOUT_split_3x6_3_base_wrapper( | ||
| 93 | _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________, | ||
| 94 | _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________, | ||
| 95 | _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________ | ||
| 96 | ), | ||
| 97 | |||
| 98 | [_MODS] = LAYOUT_split_3x6_3_wrapper( | ||
| 99 | _______, ___________________BLANK___________________, ___________________BLANK___________________, _______, | ||
| 100 | _______, ___________________BLANK___________________, ___________________BLANK___________________, _______, | ||
| 101 | KC_LSFT, ___________________BLANK___________________, ___________________BLANK___________________, KC_RSFT, | ||
| 102 | _______, _______, _______, _______, _______, _______ | ||
| 103 | ), | ||
| 104 | |||
| 105 | [_LOWER] = LAYOUT_split_3x6_3_wrapper( | ||
| 106 | KC_F11, _________________LOWER_L1__________________, _________________LOWER_R1__________________, KC_F11, | ||
| 107 | KC_F12, _________________LOWER_L2__________________, _________________LOWER_R2__________________, KC_PIPE, | ||
| 108 | _______, _________________LOWER_L3__________________, _________________LOWER_R3__________________, _______, | ||
| 109 | _______, _______, _______, _______, _______, _______ | ||
| 110 | ), | ||
| 111 | |||
| 112 | [_RAISE] = LAYOUT_split_3x6_3_wrapper( \ | ||
| 113 | _______, _________________RAISE_L1__________________, _________________RAISE_R1__________________, _______, | ||
| 114 | _______, _________________RAISE_L2__________________, _________________RAISE_R2__________________, KC_BSLS, | ||
| 115 | _______, _________________RAISE_L3__________________, _________________RAISE_R3__________________, _______, | ||
| 116 | _______, _______, _______, _______, _______, _______ | ||
| 117 | ), | ||
| 118 | |||
| 119 | [_ADJUST] = LAYOUT_split_3x6_3_wrapper( \ | ||
| 120 | KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET, | ||
| 121 | VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST, | ||
| 122 | MG_NKRO, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, RGB_IDL, | ||
| 123 | HPT_TOG, KC_NUKE, _______, _______, TG_MODS, HPT_FBK | ||
| 124 | ) | ||
| 125 | }; | ||
| 126 | // clang-format on | ||
| 127 | |||
| 128 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | ||
| 129 | if (record->event.pressed) { | ||
| 130 | #ifndef SPLIT_KEYBOARD | ||
| 131 | if (keycode == RESET && !is_master) { | ||
| 132 | return false; | ||
| 133 | } | ||
| 134 | #endif | ||
| 135 | } | ||
| 136 | return true; | ||
| 137 | } | ||
| 138 | |||
| 139 | #ifdef OLED_DRIVER_ENABLE | ||
| 140 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 141 | # ifndef SPLIT_KEYBOARD | ||
| 142 | if (is_master) { | ||
| 143 | # endif | ||
| 144 | return OLED_ROTATION_270; | ||
| 145 | # ifndef SPLIT_KEYBOARD | ||
| 146 | } else { | ||
| 147 | return rotation; | ||
| 148 | } | ||
| 149 | # endif | ||
| 150 | } | ||
| 151 | #endif | ||
| 152 | |||
| 153 | uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { | ||
| 154 | switch (keycode) { | ||
| 155 | case ALT_T(KC_A): | ||
| 156 | return TAPPING_TERM + 100; | ||
| 157 | default: | ||
| 158 | return TAPPING_TERM; | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | #ifdef RGB_MATRIX_ENABLE | ||
| 163 | |||
| 164 | void suspend_power_down_keymap(void) { rgb_matrix_set_suspend_state(true); } | ||
| 165 | |||
| 166 | void suspend_wakeup_init_keymap(void) { rgb_matrix_set_suspend_state(false); } | ||
| 167 | |||
| 168 | void check_default_layer(uint8_t mode, uint8_t type) { | ||
| 169 | switch (get_highest_layer(default_layer_state)) { | ||
| 170 | case _QWERTY: | ||
| 171 | rgb_matrix_layer_helper(HSV_CYAN, mode, rgb_matrix_config.speed, type); | ||
| 172 | break; | ||
| 173 | case _COLEMAK: | ||
| 174 | rgb_matrix_layer_helper(HSV_MAGENTA, mode, rgb_matrix_config.speed, type); | ||
| 175 | break; | ||
| 176 | case _DVORAK: | ||
| 177 | rgb_matrix_layer_helper(HSV_SPRINGGREEN, mode, rgb_matrix_config.speed, type); | ||
| 178 | break; | ||
| 179 | case _WORKMAN: | ||
| 180 | rgb_matrix_layer_helper(HSV_GOLDENROD, mode, rgb_matrix_config.speed, type); | ||
| 181 | break; | ||
| 182 | case _NORMAN: | ||
| 183 | rgb_matrix_layer_helper(HSV_CORAL, mode, rgb_matrix_config.speed, type); | ||
| 184 | break; | ||
| 185 | case _MALTRON: | ||
| 186 | rgb_matrix_layer_helper(HSV_YELLOW, mode, rgb_matrix_config.speed, type); | ||
| 187 | break; | ||
| 188 | case _EUCALYN: | ||
| 189 | rgb_matrix_layer_helper(HSV_PINK, mode, rgb_matrix_config.speed, type); | ||
| 190 | break; | ||
| 191 | case _CARPLAX: | ||
| 192 | rgb_matrix_layer_helper(HSV_BLUE, mode, rgb_matrix_config.speed, type); | ||
| 193 | break; | ||
| 194 | } | ||
| 195 | } | ||
| 196 | |||
| 197 | void rgb_matrix_indicators_user(void) { | ||
| 198 | if (userspace_config.rgb_layer_change && | ||
| 199 | # ifdef RGB_DISABLE_WHEN_USB_SUSPENDED | ||
| 200 | !g_suspend_state && | ||
| 201 | # endif | ||
| 202 | # if defined(RGBLIGHT_ENABLE) | ||
| 203 | (!rgblight_config.enable && rgb_matrix_config.enable) | ||
| 204 | # else | ||
| 205 | rgb_matrix_config.enable | ||
| 206 | # endif | ||
| 207 | ) { | ||
| 208 | switch (get_highest_layer(layer_state)) { | ||
| 209 | case _GAMEPAD: | ||
| 210 | rgb_matrix_layer_helper(HSV_ORANGE, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW); | ||
| 211 | break; | ||
| 212 | case _DIABLO: | ||
| 213 | rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW); | ||
| 214 | break; | ||
| 215 | case _RAISE: | ||
| 216 | rgb_matrix_layer_helper(HSV_YELLOW, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW); | ||
| 217 | break; | ||
| 218 | case _LOWER: | ||
| 219 | rgb_matrix_layer_helper(HSV_GREEN, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW); | ||
| 220 | break; | ||
| 221 | case _ADJUST: | ||
| 222 | rgb_matrix_layer_helper(HSV_RED, 0, rgb_matrix_config.speed, LED_FLAG_UNDERGLOW); | ||
| 223 | break; | ||
| 224 | default: { | ||
| 225 | check_default_layer(IS_LAYER_ON(_MODS), LED_FLAG_UNDERGLOW); | ||
| 226 | break; | ||
| 227 | } | ||
| 228 | } | ||
| 229 | check_default_layer(0, LED_FLAG_MODIFIER); | ||
| 230 | } | ||
| 231 | } | ||
| 232 | #endif | ||
diff --git a/layouts/community/split_3x6_3/drashna/rules.mk b/layouts/community/split_3x6_3/drashna/rules.mk new file mode 100644 index 000000000..6ac1554b3 --- /dev/null +++ b/layouts/community/split_3x6_3/drashna/rules.mk | |||
| @@ -0,0 +1,28 @@ | |||
| 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 | # | ||
| 6 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 7 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 8 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 9 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 10 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 11 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 12 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 13 | MIDI_ENABLE = no # MIDI controls | ||
| 14 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 15 | UNICODE_ENABLE = no # Unicode | ||
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 17 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
| 18 | SWAP_HANDS_ENABLE = no # Enable one-hand typing | ||
| 19 | |||
| 20 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 21 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 22 | |||
| 23 | ifeq ($(strip $(KEYBOARD)), crkbd/rev1) | ||
| 24 | OLED_DRIVER_ENABLE = yes | ||
| 25 | RGB_MATRIX_ENABLE = WS2812 | ||
| 26 | HAPTIC_ENABLE = SOLENOID | ||
| 27 | BOOTLOADER = qmk-dfu | ||
| 28 | endif | ||
