aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/arrow_pad/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/arrow_pad/keymaps/default/keymap.c')
-rw-r--r--keyboards/handwired/arrow_pad/keymaps/default/keymap.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/keyboards/handwired/arrow_pad/keymaps/default/keymap.c b/keyboards/handwired/arrow_pad/keymaps/default/keymap.c
index 820851f803..986442e645 100644
--- a/keyboards/handwired/arrow_pad/keymaps/default/keymap.c
+++ b/keyboards/handwired/arrow_pad/keymaps/default/keymap.c
@@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, XXXXXXX,
- QK_BOOT, _______, _______, _______ ),
+ QK_BOOT, _______, _______, _______ ),
};
@@ -100,21 +100,19 @@ bool led_update_user(led_t led_state)
{
if (led_state.caps_lock) {
// output high
- DDRD |= (1<<6);
- PORTD |= (1<<6);
+ gpio_set_pin_output(D6);
+ gpio_write_pin_high(D6);
} else {
// Hi-Z
- DDRD &= ~(1<<6);
- PORTD &= ~(1<<6);
+ gpio_set_pin_input(D6);
}
if (led_state.num_lock) {
// output low
- DDRC |= (1<<7);
- PORTC |= ~(1<<7);
+ gpio_set_pin_output(C7);
+ gpio_write_pin_low(C7);
} else {
// Hi-Z
- DDRC &= ~(1<<7);
- PORTC &= ~(1<<7);
+ gpio_set_pin_input(C7);
}
return false;
}