Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keymap] Drashna update for post Q2 merge #17241

Merged
merged 38 commits into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
65aba02
Fix encoder mapping
drashna Mar 8, 2022
5d30318
Oled tweaks
drashna Mar 9, 2022
da9e519
add sectional panning
drashna Mar 10, 2022
96fddbd
Enable encoder mapping for kyria
drashna Mar 13, 2022
a88d49b
Remove debounce setting from TM keymap
drashna Mar 13, 2022
c81a388
Update encoder maps
drashna Mar 13, 2022
0d06ca4
Improve blackpill perf
drashna Mar 15, 2022
2ac8c41
Tweak WPM settings
drashna Mar 17, 2022
5ed3fc8
Fix oneshot indicator
drashna Mar 17, 2022
9850568
Update charybdis keymap
drashna Mar 17, 2022
71403e2
Remove custom compile implementation
drashna Mar 14, 2022
d8d2e68
Fix oled render interval based on mcu
drashna Mar 18, 2022
32c8b54
Fix up tractyl keymap config
drashna Mar 18, 2022
1a29844
Better handle oled timeout
drashna Mar 19, 2022
89659ad
Add perf opt settings for stm32
drashna Mar 21, 2022
c41768f
Fix up unicode typing mode sync
drashna Mar 21, 2022
430e029
Disable flags for rgb matrix layer indication
drashna Mar 23, 2022
a240a72
Remove debug matrix scanning from kyria
drashna Mar 25, 2022
12ec3ba
Remove incorrect value for i2c on proton C kyria
drashna Mar 28, 2022
efb67de
Update functions for lock status
drashna Mar 29, 2022
88fdc92
Update secrets doc to be a bit more clear
drashna Apr 6, 2022
b7f3d45
Fix weird encoder init issues
drashna Apr 18, 2022
f461748
Enable Tinyuf2 bootloader
drashna Apr 27, 2022
6a91826
Add secure feature stuff
drashna Apr 27, 2022
5392c1d
Fix autocorrect difs
drashna May 7, 2022
7272bcf
remove oneshots from layer check for now
drashna May 9, 2022
125e412
Add custom autocorrect data file
drashna Feb 25, 2022
1c2d168
disable custom caps words
drashna Mar 14, 2022
dad5104
Enable caps word properly
drashna Mar 14, 2022
3f1b1f4
Enable large pointing device reports
drashna Feb 16, 2022
2eeea8b
Update autocorrect code
drashna May 17, 2022
efd5ea0
Move secrets to an expernal path
drashna May 20, 2022
48fed6f
Move autocorect
drashna May 20, 2022
e6fd80a
Moonlander keymap tweaks
drashna May 25, 2022
07b3e26
Fix autocorrect keycode in charybdis
drashna May 29, 2022
45cf4bf
Set bootloader only for f411 keymap
drashna May 29, 2022
0016feb
Update keycodes for develop changes
drashna May 30, 2022
0b48918
Fix split_3x6_3 config
drashna May 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions keyboards/40percentclub/nano/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT(
KC_VOLU, KC_MPLY, KC_MPRV, RESET,
KC_VOLD, KC_MUTE, KC_MNXT, RESET
KC_VOLU, KC_MPLY, KC_MPRV, QK_BOOT,
KC_VOLD, KC_MUTE, KC_MNXT, QK_BOOT
),

};
Expand Down
38 changes: 0 additions & 38 deletions keyboards/bastardkb/charybdis/3x5/keymaps/drashna/chconf.h

This file was deleted.

10 changes: 5 additions & 5 deletions keyboards/bastardkb/charybdis/3x5/keymaps/drashna/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
#define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100
#define SERIAL_USART_SPEED 921600
// #define SERIAL_USART_PIN_SWAP // swap RX and TX pins on master
// To use the highest possible baudrate (3.75Mbit/s) uncomment the following
// line, this can result in dropped communications so lower the speed if there
Expand Down Expand Up @@ -102,8 +103,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PMW3360_SPI_MODE 3
#define PMW3360_SPI_DIVISOR 64


# define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
# define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 400
# define CHARYBDIS_MINIMUM_SNIPING_DPI 200
# define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 100
#define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
#define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 400
#define CHARYBDIS_MINIMUM_SNIPING_DPI 200
#define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 100
10 changes: 8 additions & 2 deletions keyboards/bastardkb/charybdis/3x5/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_________________RAISE_L1__________________, _________________RAISE_R1__________________,
_________________RAISE_L2__________________, _________________RAISE_R2__________________,
_________________RAISE_L3__________________, _________________RAISE_R3__________________,
REBOOT, KEYLOCK, _______, _______, _______
QK_RBT, _______, _______, _______, _______
),
[_ADJUST] = LAYOUT_charybdis_3x5_wrapper(
_________________ADJUST_L1_________________, _________________ADJUST_R1_________________,
_________________ADJUST_L2_________________, _________________ADJUST_R2_________________,
_________________ADJUST_L3_________________, _________________ADJUST_R3_________________,
EEP_RST, KC_NUKE, _______, _______, RESET
EE_CLR, KC_NUKE, _______, _______, QK_BOOT
),
};

Expand All @@ -98,3 +98,9 @@ bool usb_vbus_state(void) {
return readPin(USB_VBUS_PIN);
}
#endif

void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
for (int32_t i = 0; i < 40; i++) {
__asm__ volatile("nop" ::: "memory");
}
}
38 changes: 0 additions & 38 deletions keyboards/bastardkb/charybdis/4x6/keymaps/drashna/chconf.h

This file was deleted.

1 change: 1 addition & 0 deletions keyboards/bastardkb/charybdis/4x6/keymaps/drashna/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
// // line, this can result in dropped communications so lower the speed if there
// // are many timeouts.
// // #define SERIAL_USART_SPEED (STM32_PCLK2 >> 4)
#define SERIAL_USART_SPEED 921600

#define CRC8_USE_TABLE
#define CRC8_OPTIMIZE_SPEED
Expand Down
18 changes: 16 additions & 2 deletions keyboards/bastardkb/charybdis/4x6/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _________________LOWER_L3__________________, _________________LOWER_R3__________________, _______,
_______, _______, _______, _______, _______,
_______, _______, _______
),
),

[_RAISE] = LAYOUT_charybdis_4x6_wrapper(
KC_F12, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, KC_F11,
Expand All @@ -109,8 +109,16 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _________________RAISE_L3__________________, _________________RAISE_R3__________________, _______,
_______, _______, _______, _______, _______,
_______, _______, _______
)
),

[_ADJUST] = LAYOUT_charybdis_4x6_wrapper(
QK_MAKE, KC_WIDE,KC_AUSSIE,KC_SCRIPT,KC_ZALGO,KC_NOMODE, KC_NOMODE,KC_BLOCKS,KC_REGIONAL,_______,_______, QK_BOOT,
VRSN, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, EE_CLR,
KEYLOCK, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, TG_MODS,
UC_MOD, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, KC_MPLY,
QK_RBT, AUTO_CTN, _______, KC_NUKE, _______,
_______, _______, _______
)
};
// clang-format on

Expand All @@ -130,3 +138,9 @@ bool usb_vbus_state(void) {
return readPin(USB_VBUS_PIN);
}
#endif

void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
for (int32_t i = 0; i < 40; i++) {
__asm__ volatile("nop" ::: "memory");
}
}
4 changes: 2 additions & 2 deletions keyboards/gboards/gergo/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

[_ADJUST] = LAYOUT_gergo_wrapper(
KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RESET,
VRSN, _________________ADJUST_L2_________________, _______, KC_NUKE, _________________ADJUST_R2_________________, EEP_RST,
QK_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, QK_BOOT,
VRSN, _________________ADJUST_L2_________________, _______, KC_NUKE, _________________ADJUST_R2_________________, EE_CLR,
_______, _________________ADJUST_L3_________________, _______, _______, _______, _______, _________________ADJUST_R3_________________, TG_MODS,
_______, _______, _______, _______, _______, _______, _______, _______
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______
),
[_ADJUST] = LAYOUT_4x6_right_wrapper(
KC_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, KC_RST,
VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EEP_RST,
QK_MAKE, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, QK_BOOT,
VRSN, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, EE_CLR,
UC_MOD, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, TG_MODS,
HPT_DWLI, HPT_DWLD, TG_GAME, TG_DBLO,
HPT_TOG, HPT_BUZ, KC_NUKE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
#define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
#define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100

#define SERIAL_USART_SPEED 921600

#define CRC8_USE_TABLE
#define CRC8_OPTIMIZE_SPEED
Expand Down
6 changes: 6 additions & 0 deletions keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ bool usb_vbus_state(void) {
return readPin(USB_VBUS_PIN);
}
#endif

void matrix_output_unselect_delay(uint8_t line, bool key_pressed) {
for (int32_t i = 0; i < 40; i++) {
__asm__ volatile("nop" ::: "memory");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,19 @@
#pragma once

#define DEBOUNCE 45
#define ENCODER_DEFAULT_POS 0x3

#ifdef OLED_DRIVER_SH1107
# undef OLED_DISPLAY_128X64
#endif

# define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
# define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 200
# define CHARYBDIS_MINIMUM_SNIPING_DPI 400
# define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 200
#define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200
#define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 200
#define CHARYBDIS_MINIMUM_SNIPING_DPI 400
#define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 200

#define ENCODER_DEFAULT_POS 0x3

#define SECURE_UNLOCK_SEQUENCE \
{ \
{ 2, 1 }, { 2, 2 }, { 2, 3 }, { 2, 4 } \
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______
),
[_ADJUST] = LAYOUT_5x6_right_wrapper(
KC_MAKE, KC_WIDE,KC_AUSSIE,KC_SCRIPT,KC_ZALGO,KC_NOMODE, KC_NOMODE,KC_BLOCKS,KC_REGIONAL,_______,_______, KC_RST,
VRSN, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, EEP_RST,
QK_MAKE, KC_WIDE,KC_AUSSIE,KC_SCRIPT,KC_ZALGO,KC_NOMODE, KC_NOMODE,KC_BLOCKS,KC_REGIONAL,_______,_______, QK_BOOT,
VRSN, _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, EE_CLR,
KEYLOCK, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, TG_MODS,
UC_MOD, _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, KC_MPLY,
TG(_DIABLOII), AUTO_CTN, TG_GAME, TG_DBLO,
_______, REBOOT, KC_NUKE,
_______, QK_RBT, KC_NUKE,
_______, _______, _______,
_______, _______, KC_NUKE, _______
),
};

#define BASE_ENCODERS { { KC_VOLD, KC_VOLU }, { KC_WH_D, KC_WH_U } }

#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[_DEFAULT_LAYER_1] = BASE_ENCODERS,
[_DEFAULT_LAYER_2] = BASE_ENCODERS,
[_DEFAULT_LAYER_3] = BASE_ENCODERS,
[_DEFAULT_LAYER_4] = BASE_ENCODERS,
[_DEFAULT_LAYER_1] = { { KC_VOLD, KC_VOLU }, { KC_WH_D, KC_WH_U } },
[_DEFAULT_LAYER_2] = { { _______, _______ }, { _______, _______ } },
[_DEFAULT_LAYER_3] = { { _______, _______ }, { _______, _______ } },
[_DEFAULT_LAYER_4] = { { _______, _______ }, { _______, _______ } },
[_GAMEPAD] = { { _______, _______ }, { _______, _______ } },
[_DIABLO] = { { _______, _______ }, { _______, _______ } },
[_MOUSE] = { { _______, _______ }, { KC_WH_D, KC_WH_U } },
Expand Down Expand Up @@ -188,15 +187,15 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
#endif

#ifdef OLED_ENABLE
extern uint16_t typing_mode;
# include "keyrecords/unicode.h"

oled_rotation_t oled_init_keymap(oled_rotation_t rotation) {
return OLED_ROTATION_180;
}

void oled_render_large_display(void) {
if (is_keyboard_left()) {
render_wpm_graph(54, 64);
void oled_render_large_display(bool side) {
if (side) {
render_wpm_graph(56, 64);
} else {
oled_advance_page(true);
oled_advance_page(true);
Expand All @@ -214,25 +213,25 @@ void oled_render_large_display(void) {
oled_set_cursor(1, 14);
oled_write_ln_P(PSTR("Unicode:"), false);
switch (typing_mode) {
case KC_WIDE:
case UCTM_WIDE:
oled_write_P(PSTR(" Wide"), false);
break;
case KC_SCRIPT:
case UCTM_SCRIPT:
oled_write_P(PSTR(" Script"), false);
break;
case KC_BLOCKS:
case UCTM_BLOCKS:
oled_write_P(PSTR(" Blocks"), false);
break;
case KC_REGIONAL:
case UCTM_REGIONAL:
oled_write_P(PSTR(" Regional"), false);
break;
case KC_AUSSIE:
case UCTM_AUSSIE:
oled_write_P(PSTR(" Aussie"), false);
break;
case KC_ZALGO:
case UCTM_ZALGO:
oled_write_P(PSTR(" Zalgo"), false);
break;
case KC_NOMODE:
case UCTM_NO_MODE:
oled_write_P(PSTR(" Normal"), false);
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ ifeq ($(strip $(KEYBOARD)), handwired/tractyl_manuform/5x6_right/teensy2pp)
AUTOCORRECTION_ENABLE = no
CAPS_WORD_ENABLE = yes
endif
ifeq ($(strip $(KEYBOARD)), handwired/tractyl_manuform/5x6_right/f411)
BOOTLOADER = tinyuf2
endif
# DEBOUNCE_TYPE = sym_eager_pk

OLED_DRIVER = custom
4 changes: 2 additions & 2 deletions keyboards/keebio/iris/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

[_ADJUST] = LAYOUT_wrapper(
KC_MAKE, _______, _______, _______, _______, _______, _________________ADJUST_R1_________________, KC_RST,
VRSN, _________________ADJUST_L1_________________, KC_NUKE, _______, _______, _______, _______, EEP_RST,
QK_MAKE, _______, _______, _______, _______, _______, _________________ADJUST_R1_________________, QK_BOOT,
VRSN, _________________ADJUST_L1_________________, KC_NUKE, _______, _______, _______, _______, EE_CLR,
_______, _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, TG_MODS,
_______, _________________ADJUST_L3_________________, TG_GAME, _______, _________________ADJUST_R3_________________, KC_MPLY,
_______, _______, _______, _______, _______, _______
Expand Down
4 changes: 2 additions & 2 deletions keyboards/keebio/viterbi/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

[_MEDIA] = LAYOUT_ortho_5x7(
KC_MAKE, RESET, MU_TOG, AU_ON, AU_OFF, CK_TOGG, RGB_SAD,
_______, EEP_RST, KC_RGB_T,RGB_M_P, RGB_M_B, RGB_M_R, RGB_SAI,
QK_MAKE, QK_BOOT, MU_TOG, AU_ON, AU_OFF, CK_TOGG, RGB_SAD,
_______, EE_CLR, KC_RGB_T,RGB_M_P, RGB_M_B, RGB_M_R, RGB_SAI,
RGB_TOG, RGB_MOD, RGB_RMOD,RGB_M_SW,RGB_M_SN,RGB_M_K, RGB_HUD,
KC_MPLY, KC_MPRV, KC_MNXT, RGB_M_X, RGB_M_G, RGB_M_P, RGB_HUI,
KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, RGB_VAD, RGB_VAI
Expand Down
4 changes: 2 additions & 2 deletions keyboards/maple_computing/c39/keymaps/drashna/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),

[_ADJUST] = LAYOUT_wrapper(
KC_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EEP_RST,
QK_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, QK_BOOT,
VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EE_CLR,
TG_MODS, _________________ADJUST_L3_________________, KC_RGB_T,_________________ADJUST_R3_________________, RGB_IDL
)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_Q, CALTDEL, \
KC_A, TSKMGR, \
KC_Z, KC_X, \
_______, RESET \
_______, QK_BOOT \
)

};
Expand Down
7 changes: 6 additions & 1 deletion keyboards/moonlander/keymaps/drashna/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
#pragma once

#define TAPPING_TERM_PER_KEY
#define WAIT_FOR_USB
// #define WAIT_FOR_USB
// #define NO_USB_STARTUP_CHECK

#define SECURE_UNLOCK_SEQUENCE \
{ \
{ 2, 1 }, { 2, 2 }, { 2, 3 }, { 2, 4 } \
}
Loading