summaryrefslogtreecommitdiff
path: root/keyboards/primekb/prime_e/keymaps/default/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/primekb/prime_e/keymaps/default/keymap.c')
-rw-r--r--keyboards/primekb/prime_e/keymaps/default/keymap.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/keyboards/primekb/prime_e/keymaps/default/keymap.c b/keyboards/primekb/prime_e/keymaps/default/keymap.c
index 08067b3132..e5e47cffc2 100644
--- a/keyboards/primekb/prime_e/keymaps/default/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/default/keymap.c
@@ -57,24 +57,18 @@ void matrix_init_user(void) {
writePinLow(B3);
}
-void led_set_user(uint8_t usb_led) {
- if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
+bool led_update_user(led_t led_state) {
+ if (led_state.num_lock) {
writePinHigh(B2);
} else {
writePinLow(B2);
}
- if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ if (led_state.caps_lock) {
writePinHigh(B1);
} else {
writePinLow(B1);
}
-/*
- if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
- writePinHigh(B3);
- } else {
- writePinLow(B3);
- }*/
-
+ return false;
}
//function for layer indicator LED