aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-10-16 13:11:22 -0700
committerGitHub <noreply@github.com>2019-10-16 13:11:22 -0700
commite3a21348c3879c11072c7c42d3b4d04b022f4fe2 (patch)
treeb4b007bce3d0b9167dfe651a537df330dbf7bead /keyboards
parent7662ee71f0d1df7cee03a563f52dba21854fd0be (diff)
downloadqmk_firmware-e3a21348c3879c11072c7c42d3b4d04b022f4fe2.tar.gz
qmk_firmware-e3a21348c3879c11072c7c42d3b4d04b022f4fe2.zip
[Keymap] Drashna's Hardware Features Experimentations (#6920)
* Change RGBLight pin for Planck Light Move it to A0, so that the SPI? pins are available for BT hackery * Add QMK DFU bootloader info * Add Solenoid * Disable annoying white LED on bottom * Enable Solenoid on Corne * Remove bounds for animations * Increase debounce for Ergodox EZ to reduce repeat key issues * Set swap hands key to be a hold-tap key This way, it's not ANNOYING and doesn't swap the hands inteniontally * Move MT Alt in Corne keymap * Re-Add fine tuned control of secrets * Squash mods to single row * Add LRA settings to haptic feedback settings for Rev6 * Fix issue with non-Planck EZ keymaps * Add 40 Percent Nano with Analog Joystick * Add Collide39 keymap * Fix OLED printing to be more flavorful * Fix up Iris GamePad and come cleanup * Expand OLED char map further * Add modded characters to keylogger * Here be dragons Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Fix up rules for community layouts * Some more OLED tweaks * Add mod mask check function * Change QMK DFU Audio pin to be correct * Use manual STM config instead of CTPC for Collide 39
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/40percentclub/nano/keymaps/drashna/keymap.c111
-rw-r--r--keyboards/40percentclub/nano/keymaps/drashna/rules.mk5
-rwxr-xr-xkeyboards/c39/keymaps/drashna/config.h7
-rwxr-xr-xkeyboards/c39/keymaps/drashna/keymap.c45
-rwxr-xr-xkeyboards/c39/keymaps/drashna/readme.md3
-rw-r--r--keyboards/c39/keymaps/drashna/rules.mk18
-rw-r--r--keyboards/crkbd/keymaps/drashna/config.h10
-rw-r--r--keyboards/crkbd/keymaps/drashna/keymap.c51
-rw-r--r--keyboards/crkbd/keymaps/drashna/rules.mk1
-rw-r--r--keyboards/keebio/iris/keymaps/drashna/keymap.c4
-rw-r--r--keyboards/keebio/iris/keymaps/drashna_lp/config.h13
11 files changed, 242 insertions, 26 deletions
diff --git a/keyboards/40percentclub/nano/keymaps/drashna/keymap.c b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c
new file mode 100644
index 000000000..6c5b97457
--- /dev/null
+++ b/keyboards/40percentclub/nano/keymaps/drashna/keymap.c
@@ -0,0 +1,111 @@
1#include QMK_KEYBOARD_H
2#include "drashna.h"
3#include "analog.c"
4#include "pointing_device.h"
5#include "pincontrol.h"
6
7
8#define KC_X0 LT(_FN, KC_ESC)
9
10const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
11 [_QWERTY] = LAYOUT(
12 KC_VOLU, KC_MPLY, KC_MPRV, RESET,
13 KC_VOLD, KC_MUTE, KC_MNXT, RESET
14 ),
15
16};
17
18// Joystick
19// Set Pins
20uint8_t xPin = 8; // VRx / /B4
21uint8_t yPin = 7; // VRy // B5
22uint8_t swPin = E6; // SW
23
24// Set Parameters
25uint16_t minAxisValue = 0;
26uint16_t maxAxisValue = 1023;
27
28uint8_t maxCursorSpeed = 2;
29uint8_t precisionSpeed = 1;
30uint8_t speedRegulator = 20; // Lower Values Create Faster Movement
31
32int8_t xPolarity = 1;
33int8_t yPolarity = 1;
34
35uint8_t cursorTimeout = 10;
36
37int16_t xOrigin, yOrigin;
38
39uint16_t lastCursor = 0;
40
41int16_t axisCoordinate(uint8_t pin, uint16_t origin) {
42 int8_t direction;
43 int16_t distanceFromOrigin;
44 int16_t range;
45
46 int16_t position = analogRead(pin);
47
48 if (origin == position) {
49 return 0;
50 } else if (origin > position) {
51 distanceFromOrigin = origin - position;
52 range = origin - minAxisValue;
53 direction = -1;
54 } else {
55 distanceFromOrigin = position - origin;
56 range = maxAxisValue - origin;
57 direction = 1;
58 }
59
60 float percent = (float)distanceFromOrigin / range;
61 int16_t coordinate = (int16_t)(percent * 100);
62 if (coordinate < 0) {
63 return 0;
64 } else if (coordinate > 100) {
65 return 100 * direction;
66 } else {
67 return coordinate * direction;
68 }
69}
70
71int8_t axisToMouseComponent(uint8_t pin, int16_t origin, uint8_t maxSpeed, int8_t polarity) {
72 int coordinate = axisCoordinate(pin, origin);
73 if (coordinate == 0) {
74 return 0;
75 } else {
76 float percent = (float)coordinate / 100;
77 if (keyboard_report->mods & MOD_BIT(KC_LSFT)) {
78 return percent * precisionSpeed * polarity * (abs(coordinate) / speedRegulator);
79 } else {
80 return percent * maxCursorSpeed * polarity * (abs(coordinate) / speedRegulator);
81 }
82 }
83}
84
85void pointing_device_task(void) {
86 report_mouse_t report = pointing_device_get_report();
87
88 // todo read as one vector
89 if (timer_elapsed(lastCursor) > cursorTimeout) {
90 lastCursor = timer_read();
91 report.x = axisToMouseComponent(xPin, xOrigin, maxCursorSpeed, xPolarity);
92 report.y = axisToMouseComponent(yPin, yOrigin, maxCursorSpeed, yPolarity);
93 }
94 //
95 if (!readPin(swPin)) {
96 report.buttons |= MOUSE_BTN1;
97 } else {
98 report.buttons &= ~MOUSE_BTN1;
99 }
100
101 pointing_device_set_report(report);
102 pointing_device_send();
103}
104
105void matrix_init_keymap(void) {
106 // init pin? Is needed?
107 setPinInputHigh(swPin);
108 // Account for drift
109 xOrigin = analogRead(xPin);
110 yOrigin = analogRead(yPin);
111}
diff --git a/keyboards/40percentclub/nano/keymaps/drashna/rules.mk b/keyboards/40percentclub/nano/keymaps/drashna/rules.mk
new file mode 100644
index 000000000..06110a0a2
--- /dev/null
+++ b/keyboards/40percentclub/nano/keymaps/drashna/rules.mk
@@ -0,0 +1,5 @@
1POINTING_DEVICE_ENABLE = yes
2RGBLIGHT_ENABLE = no
3CONSOLE_ENABLE = no
4
5BOOTLOADER = qmk-dfu
diff --git a/keyboards/c39/keymaps/drashna/config.h b/keyboards/c39/keymaps/drashna/config.h
new file mode 100755
index 000000000..361f68a78
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/config.h
@@ -0,0 +1,7 @@
1#pragma once
2
3// place overrides here
4#undef MATRIX_COL_PINS
5#define MATRIX_COL_PINS { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
6#undef MATRIX_ROW_PINS
7#define MATRIX_ROW_PINS { B7, B1, B0 }
diff --git a/keyboards/c39/keymaps/drashna/keymap.c b/keyboards/c39/keymaps/drashna/keymap.c
new file mode 100755
index 000000000..9de75190d
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/keymap.c
@@ -0,0 +1,45 @@
1#include QMK_KEYBOARD_H
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7#define _QWERTY 0
8#define _FN1 1
9
10// Defines for task manager and such
11#define CALTDEL LCTL(LALT(KC_DEL))
12#define TSKMGR LCTL(LSFT(KC_ESC))
13
14const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
15
16/* Qwerty
17 * ,----------------------------------------------------------------------------. ,-------------.
18 * | Q | W | E | R | T | Bksp | Y | U | I | O | P | | M1 | M2 |
19 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
20 * | A | S | D | F | G | Enter| H | J | K | L | ; | | M3 | M4 |
21 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
22 * | Z | X | C | V | B | FN1 | N | M | , | . | / | | M5 | M6 |
23 * `----------------------------------------------------------------------------' `-------------'
24 */
25[_QWERTY] = LAYOUT(
26 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_1, KC_2,
27 KC_A, KC_S, KC_D, KC_F, KC_G, MT(MOD_LSFT, KC_ENT), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_3, KC_4,
28 KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_FN1, KC_SPC), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_5, KC_6
29),
30
31/* FN1
32 * ,----------------------------------------------------------------------------. ,-------------.
33 * | 1 | 2 | 3 | 4 | 5 | Bksp | 6 | 7 | 8 | 9 | 0 | | M1 | M2 |
34 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
35 * | 4 | 5 | 6 | + | | Enter| | | | | | | M3 | M4 |
36 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
37 * | 7 | 8 | 9 | 0 | | FN1 | | | | | | | M5 | M6 |
38 * `----------------------------------------------------------------------------' `-------------'
39 */
40[_FN1] = LAYOUT(
41 KC_1, KC_2, KC_3, KC_4, KC_5, KC_BSPC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_1, KC_2,
42 KC_4, KC_5, KC_6, KC_PLUS, _______, KC_ENT, _______, _______, _______, _______, _______, KC_3, KC_4,
43 KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_5, KC_6
44),
45};
diff --git a/keyboards/c39/keymaps/drashna/readme.md b/keyboards/c39/keymaps/drashna/readme.md
new file mode 100755
index 000000000..a8efbaa5f
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/readme.md
@@ -0,0 +1,3 @@
1# @drashna's keymap for the C39
2
3HERE BE DRAGONS
diff --git a/keyboards/c39/keymaps/drashna/rules.mk b/keyboards/c39/keymaps/drashna/rules.mk
new file mode 100644
index 000000000..ae0cc9efe
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/rules.mk
@@ -0,0 +1,18 @@
1MCU = STM32F303
2BOOTLOADER =
3
4BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
5MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
6EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
7CONSOLE_ENABLE = yes # Console for debug(+400)
8COMMAND_ENABLE = yes # Commands for debug and configuration
9# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
10SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
11# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
12NKRO_ENABLE = yes # USB Nkey Rollover
13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
14MIDI_ENABLE = no # MIDI controls
15UNICODE_ENABLE = yes # Unicode
16BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
17AUDIO_ENABLE = yes # Audio output on port C6
18RGBLIGHT_ENABLE = no # RGB Enable / Disable
diff --git a/keyboards/crkbd/keymaps/drashna/config.h b/keyboards/crkbd/keymaps/drashna/config.h
index d35f723da..26af02957 100644
--- a/keyboards/crkbd/keymaps/drashna/config.h
+++ b/keyboards/crkbd/keymaps/drashna/config.h
@@ -41,7 +41,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
41# define RGBLIGHT_HUE_STEP 8 41# define RGBLIGHT_HUE_STEP 8
42# define RGBLIGHT_SAT_STEP 8 42# define RGBLIGHT_SAT_STEP 8
43# define RGBLIGHT_VAL_STEP 5 43# define RGBLIGHT_VAL_STEP 5
44# define RGBLIGHT_LIMIT_VAL 150 44# define RGBLIGHT_LIMIT_VAL 120
45#endif 45#endif
46 46
47#ifdef RGB_MATRIX_ENABLE 47#ifdef RGB_MATRIX_ENABLE
@@ -51,7 +51,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
51# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended 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) 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) 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 150 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 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 55# define RGB_MATRIX_HUE_STEP 8
56# define RGB_MATRIX_SAT_STEP 8 56# define RGB_MATRIX_SAT_STEP 8
57# define RGB_MATRIX_VAL_STEP 5 57# define RGB_MATRIX_VAL_STEP 5
@@ -60,7 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
60 60
61#ifdef AUDIO_ENABLE 61#ifdef AUDIO_ENABLE
62# define B6_AUDIO 62# define B6_AUDIO
63// #define NO_MUSIC_MODE 63# define NO_MUSIC_MODE
64#endif
65
66#ifdef HAPTIC_ENABLE
67# define SOLENOID_PIN B7
64#endif 68#endif
65 69
66#undef PRODUCT 70#undef PRODUCT
diff --git a/keyboards/crkbd/keymaps/drashna/keymap.c b/keyboards/crkbd/keymaps/drashna/keymap.c
index 36a5f5dd3..cd84f0d91 100644
--- a/keyboards/crkbd/keymaps/drashna/keymap.c
+++ b/keyboards/crkbd/keymaps/drashna/keymap.c
@@ -12,7 +12,25 @@ extern rgblight_config_t rgblight_config;
12static uint32_t oled_timer = 0; 12static uint32_t oled_timer = 0;
13static char keylog_str[6] = {}; 13static char keylog_str[6] = {};
14static uint16_t log_timer = 0; 14static uint16_t log_timer = 0;
15static const char code_to_name[60] = {' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'R', 'E', 'B', 'T', '_', '-', '=', '[', ']', '\\', '#', ';', '\'', '`', ',', '.', '/', ' ', ' ', ' '}; 15static const char PROGMEM code_to_name[0xFF] = {
16// 0 1 2 3 4 5 6 7 8 9 A B c D E F
17 ' ', ' ', ' ', ' ', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', // 0x
18 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '1', '2', // 1x
19 '3', '4', '5', '6', '7', '8', '9', '0', 20, 19, 27, 26, 22, '-', '=', '[', // 2x
20 ']','\\', '#', ';','\'', '`', ',', '.', '/', 128, ' ', ' ', ' ', ' ', ' ', ' ', // 3x
21 ' ', ' ', ' ', ' ', ' ', ' ', 'P', 'S', ' ', ' ', ' ', ' ', 16, ' ', ' ', ' ', // 4x
22 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 5x
23 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 6x
24 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 7x
25 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 8x
26 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // 9x
27 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Ax
28 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Bx
29 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Cx
30 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Dx
31 'C', 'S', 'A', 'C', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', // Ex
32 ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' // Fx
33};
16 34
17void add_keylog(uint16_t keycode); 35void add_keylog(uint16_t keycode);
18#endif 36#endif
@@ -27,7 +45,7 @@ enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE };
27 ) \ 45 ) \
28 LAYOUT_wrapper( \ 46 LAYOUT_wrapper( \
29 KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \ 47 KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \
30 KC_TAB, ALT_T(K11), K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ 48 ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \
31 OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \ 49 OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \
32 KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \ 50 KC_GRV, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \
33 ) 51 )
@@ -107,7 +125,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
107 KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET, 125 KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
108 VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST, 126 VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
109 MG_NKRO, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, RGB_IDL, 127 MG_NKRO, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, RGB_IDL,
110 _______, KC_NUKE, _______, _______, TG_MODS, _______ 128 HPT_TOG, KC_NUKE, _______, _______, TG_MODS, HPT_FBK
111 ) 129 )
112}; 130};
113// clang-format on 131// clang-format on
@@ -131,16 +149,18 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
131oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; } 149oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; }
132 150
133void add_keylog(uint16_t keycode) { 151void add_keylog(uint16_t keycode) {
134 if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX)) { 152 if ((keycode >= QK_MOD_TAP && keycode <= QK_MOD_TAP_MAX) || (keycode >= QK_LAYER_TAP && keycode <= QK_LAYER_TAP_MAX) || (keycode >= QK_MODS && keycode <= QK_MODS_MAX)) {
135 keycode = keycode & 0xFF; 153 keycode = keycode & 0xFF;
154 } else if (keycode > 0xFF) {
155 keycode = 0;
136 } 156 }
137 157
138 for (uint8_t i = 4; i > 0; --i) { 158 for (uint8_t i = 4; i > 0; --i) {
139 keylog_str[i] = keylog_str[i - 1]; 159 keylog_str[i] = keylog_str[i - 1];
140 } 160 }
141 161
142 if (keycode < 60) { 162 if (keycode < (sizeof(code_to_name) / sizeof(char))) {
143 keylog_str[0] = code_to_name[keycode]; 163 keylog_str[0] = pgm_read_byte(&code_to_name[keycode]);
144 } 164 }
145 165
146 log_timer = timer_read(); 166 log_timer = timer_read();
@@ -148,7 +168,7 @@ void add_keylog(uint16_t keycode) {
148 168
149void update_log(void) { 169void update_log(void) {
150 if (timer_elapsed(log_timer) > 750) { 170 if (timer_elapsed(log_timer) > 750) {
151 add_keylog(0); 171 //add_keylog(0);
152 } 172 }
153} 173}
154 174
@@ -197,19 +217,18 @@ void render_layer_state(void) {
197void render_keylock_status(uint8_t led_usb_state) { 217void render_keylock_status(uint8_t led_usb_state) {
198 oled_write_P(PSTR("Lock:"), false); 218 oled_write_P(PSTR("Lock:"), false);
199 oled_write_P(PSTR(" "), false); 219 oled_write_P(PSTR(" "), false);
200 oled_write_P(PSTR("NUM "), led_usb_state & (1 << USB_LED_NUM_LOCK)); 220 oled_write_P(PSTR("N"), led_usb_state & (1 << USB_LED_NUM_LOCK));
201 oled_write_P(PSTR(" "), false); 221 oled_write_P(PSTR("C"), led_usb_state & (1 << USB_LED_CAPS_LOCK));
202 oled_write_P(PSTR("CAPS"), led_usb_state & (1 << USB_LED_CAPS_LOCK)); 222 oled_write_ln_P(PSTR("S"), led_usb_state & (1 << USB_LED_SCROLL_LOCK));
203 oled_write_P(PSTR(" "), false);
204 oled_write_P(PSTR("SCRL"), led_usb_state & (1 << USB_LED_SCROLL_LOCK));
205} 223}
206 224
207void render_mod_status(uint8_t modifiers) { 225void render_mod_status(uint8_t modifiers) {
208 oled_write_P(PSTR("Mods:"), false); 226 oled_write_P(PSTR("Mods:"), false);
209 oled_write_P(PSTR(" SHFT"), (modifiers & MOD_MASK_SHIFT)); 227 oled_write_P(PSTR(" "), false);
210 oled_write_P(PSTR(" CTRL"), (modifiers & MOD_MASK_CTRL)); 228 oled_write_P(PSTR("S"), (modifiers & MOD_MASK_SHIFT));
211 oled_write_P(PSTR(" ALT "), (modifiers & MOD_MASK_ALT)); 229 oled_write_P(PSTR("C"), (modifiers & MOD_MASK_CTRL));
212 oled_write_P(PSTR(" GUI "), (modifiers & MOD_MASK_GUI)); 230 oled_write_P(PSTR("A"), (modifiers & MOD_MASK_ALT));
231 oled_write_P(PSTR("G"), (modifiers & MOD_MASK_GUI));
213} 232}
214 233
215void render_bootmagic_status(void) { 234void render_bootmagic_status(void) {
diff --git a/keyboards/crkbd/keymaps/drashna/rules.mk b/keyboards/crkbd/keymaps/drashna/rules.mk
index af3404597..492c17e20 100644
--- a/keyboards/crkbd/keymaps/drashna/rules.mk
+++ b/keyboards/crkbd/keymaps/drashna/rules.mk
@@ -18,6 +18,7 @@ RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
18SWAP_HANDS_ENABLE = no # Enable one-hand typing 18SWAP_HANDS_ENABLE = no # Enable one-hand typing
19RGB_MATRIX_ENABLE = WS2812 19RGB_MATRIX_ENABLE = WS2812
20 20
21HAPTIC_ENABLE = SOLENOID
21# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 22# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
23 24
diff --git a/keyboards/keebio/iris/keymaps/drashna/keymap.c b/keyboards/keebio/iris/keymaps/drashna/keymap.c
index 28783dd8a..de19f7ca0 100644
--- a/keyboards/keebio/iris/keymaps/drashna/keymap.c
+++ b/keyboards/keebio/iris/keymaps/drashna/keymap.c
@@ -77,11 +77,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
77 ), 77 ),
78 78
79 [_GAMEPAD] = LAYOUT_wrapper( 79 [_GAMEPAD] = LAYOUT_wrapper(
80 KC_ESC, KC_NO, KC_1, KC_2, KC_3, KC_P, _______, _______, _______, _______, _______, _______, 80 KC_ESC, KC_NO, KC_1, KC_2, KC_3, KC_4, _______, _______, _______, _______, _______, _______,
81 KC_F1, KC_K, KC_Q, KC_W, KC_E, KC_R, _______, _______, _______, _______, _______, _______, 81 KC_F1, KC_K, KC_Q, KC_W, KC_E, KC_R, _______, _______, _______, _______, _______, _______,
82 KC_TAB, KC_G, KC_A, KC_S, KC_D, KC_F, _______, _______, _______, _______, _______, _______, 82 KC_TAB, KC_G, KC_A, KC_S, KC_D, KC_F, _______, _______, _______, _______, _______, _______,
83 KC_LCTL, KC_LSFT, KC_Z, KC_X, KC_C, KC_H, TG_GAME, _______, _______, _______, _______, _______, _______, _______, 83 KC_LCTL, KC_LSFT, KC_Z, KC_X, KC_C, KC_H, TG_GAME, _______, _______, _______, _______, _______, _______, _______,
84 LOWER, KC_V, KC_SPC, _______, _______, _______ 84 KC_GRV, KC_V, KC_SPC, _______, _______, _______
85 ), 85 ),
86 86
87 87
diff --git a/keyboards/keebio/iris/keymaps/drashna_lp/config.h b/keyboards/keebio/iris/keymaps/drashna_lp/config.h
index d59890b46..5370d88ed 100644
--- a/keyboards/keebio/iris/keymaps/drashna_lp/config.h
+++ b/keyboards/keebio/iris/keymaps/drashna_lp/config.h
@@ -21,15 +21,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#include "../drashna/config.h" 21#include "../drashna/config.h"
22 22
23#ifdef RGBLIGHT_ENABLE 23#ifdef RGBLIGHT_ENABLE
24# undef RGBLED_NUM 24# undef RGBLED_NUM
25# define RGBLED_NUM 16 // Number of LEDs 25# define RGBLED_NUM 16 // Number of LEDs
26# undef RGBLED_SPLIT 26# undef RGBLED_SPLIT
27# define RGBLED_SPLIT { 8, 8 } 27# define RGBLED_SPLIT \
28 { 8, 8 }
28#endif 29#endif
29 30
30#undef PRODUCT 31#undef PRODUCT
31#ifdef KEYBOARD_keebio_iris_rev2 32#ifdef KEYBOARD_keebio_iris_rev2
32# define PRODUCT Drashna Hacked Iris LP Rev.2 (Backlit) 33# define PRODUCT Drashna Hacked Iris LP Rev .2(Backlit)
33#endif 34#endif
34 35
35#undef SHFT_LED1 36#undef SHFT_LED1
@@ -46,3 +47,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
46#define ALT_LED1 7 47#define ALT_LED1 7
47#undef GUI_LED1 48#undef GUI_LED1
48#define GUI_LED1 8 49#define GUI_LED1 8
50
51#define DRASHNA_LP