From 5fdb49b5dbf11025e0425950a1e32b88e21d596f Mon Sep 17 00:00:00 2001 From: jack <0x6A73@pm.me> Date: Mon, 17 Oct 2022 10:13:40 -0600 Subject: Fixup handwired/kbod (#18754) --- keyboards/handwired/kbod/keymaps/default/keymap.c | 24 ++++++++-------------- keyboards/handwired/kbod/keymaps/default/readme.md | 5 ----- keyboards/handwired/kbod/keymaps/default/rules.mk | 9 -------- 3 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 keyboards/handwired/kbod/keymaps/default/readme.md delete mode 100644 keyboards/handwired/kbod/keymaps/default/rules.mk (limited to 'keyboards/handwired/kbod/keymaps') diff --git a/keyboards/handwired/kbod/keymaps/default/keymap.c b/keyboards/handwired/kbod/keymaps/default/keymap.c index 0ffc3e9d97..856f0eda60 100644 --- a/keyboards/handwired/kbod/keymaps/default/keymap.c +++ b/keyboards/handwired/kbod/keymaps/default/keymap.c @@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case SFT_ESC: - SET_WHETHER(MODS_PRESSED(SHIFT), KC_ESC, KC_GRAVE); + SET_WHETHER(MODS_PRESSED(SFT), KC_ESC, KC_GRAVE); return false; @@ -75,24 +75,16 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } } -void led_set_user(uint8_t usb_led) { - if (usb_led & _BV(USB_LED_CAPS_LOCK)) { - PORTB |= _BV(PB0); - } else { - PORTB &= ~_BV(PB0); - } -} - void matrix_init_user(void) { - DDRB |= _BV(PB0); - DDRC |= _BV(PC7); + setPinOutput(C7); + writePinLow(C7); } -void matrix_scan_user(void) { - uint8_t layer = get_highest_layer(layer_state); - if (layer) { - PORTC |= _BV(PC7); +layer_state_t layer_state_set_user(layer_state_t state) { + if (get_highest_layer(state)) { + writePinHigh(C7); } else { - PORTC &= ~_BV(PC7); + writePinLow(C7); } + return state; } diff --git a/keyboards/handwired/kbod/keymaps/default/readme.md b/keyboards/handwired/kbod/keymaps/default/readme.md deleted file mode 100644 index 35c22ec007..0000000000 --- a/keyboards/handwired/kbod/keymaps/default/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# The default keymap for kbod - -This is the default keymap for kbod, - -it consists of a base layer with QWERTY layout, a momentary cursor-layer, and mouse-keys and multimedia layers. \ No newline at end of file diff --git a/keyboards/handwired/kbod/keymaps/default/rules.mk b/keyboards/handwired/kbod/keymaps/default/rules.mk deleted file mode 100644 index 0db36fdd09..0000000000 --- a/keyboards/handwired/kbod/keymaps/default/rules.mk +++ /dev/null @@ -1,9 +0,0 @@ -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -MOUSEKEY_ENABLE = yes # Mouse keys(+4700) -EXTRAKEY_ENABLE = yes # Audio control and System control(+450) -CONSOLE_ENABLE = no # Console for debug(+400) -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -AUDIO_ENABLE = no # Audio output -RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. -- cgit v1.2.3