From e0e80c0dc1be961999617a9eb0e1ae0f7988fae9 Mon Sep 17 00:00:00 2001 From: drashna Date: Tue, 10 Oct 2017 10:11:05 -0700 Subject: Cleanup of my keymaps (#1802) * Add woodpad * Cleanup * Remove misc layouts for woodpad * Move woodpad to handwired * Updated RGB Underglow info * Cleanup macros * Fix odd merge issue * Tweaked RGB lighting stuff * Start to merge orthodox/ergodox keymaps (persistant layers) * Add forced NKRO * Added Colemak and Dvorak layers to default orthodox keymap * Added default layer (qwerty/colemak/dvorak) detection to RGB Underglow --- keyboards/handwired/woodpad/keymaps/drashna/keymap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'keyboards/handwired') diff --git a/keyboards/handwired/woodpad/keymaps/drashna/keymap.c b/keyboards/handwired/woodpad/keymaps/drashna/keymap.c index a33a7ab46..f30f3623d 100644 --- a/keyboards/handwired/woodpad/keymaps/drashna/keymap.c +++ b/keyboards/handwired/woodpad/keymaps/drashna/keymap.c @@ -369,6 +369,10 @@ void matrix_init_user(void) { // set Numlock LED to output and low DDRF |= (1<<7); PORTF &= ~(1<<7); + if (!(host_keyboard_leds() & (1 << USB_LED_NUM_LOCK)) ){ + register_code(KC_NUMLOCK); + unregister_code(KC_NUMLOCK); + } } void matrix_scan_user(void) { -- cgit v1.2.3-24-g4f1b