diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2020-01-31 12:33:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 12:33:08 -0800 |
commit | e565948ffdb9127c1202a69774931a55a71fa529 (patch) | |
tree | 9c26a89cb465e5907af00457de7d78eefa216d1e /keyboards/noxary | |
parent | 5c5a05212e5f050587b7ed7070d34a13dd9cc293 (diff) | |
download | qmk_firmware-e565948ffdb9127c1202a69774931a55a71fa529.tar.gz qmk_firmware-e565948ffdb9127c1202a69774931a55a71fa529.zip |
Noxary 280 Backwards LED Fix (#8057)
* fix logic and update to newest led_update_kb routine
Diffstat (limited to 'keyboards/noxary')
-rw-r--r-- | keyboards/noxary/280/280.c | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/keyboards/noxary/280/280.c b/keyboards/noxary/280/280.c index 441f0ad84a..1743ebc0d5 100644 --- a/keyboards/noxary/280/280.c +++ b/keyboards/noxary/280/280.c @@ -28,43 +28,10 @@ void matrix_init_kb(void) { matrix_init_user(); } -/* -void matrix_scan_kb(void) { - // put your looping keyboard code here - // runs every cycle (a lot) - - matrix_scan_user(); -} - -bool process_record_kb(uint16_t keycode, keyrecord_t *record) { - // put your per-action keyboard code here - // runs for every action, just before processing by the firmware - - return process_record_user(keycode, record); -} - -void led_set_kb(uint8_t usb_led) { - // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here - - led_set_user(usb_led); -} - -*/ - - -void led_set_kb(uint8_t usb_led) { - - if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { - writePinLow(D5); - } else { - writePinHigh(D5); - } - - if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { - writePinLow(D0); - } else { - writePinHigh(D0); +bool led_update_kb(led_t led_state) { + if(led_update_user(led_state)) { + writePin(D5, led_state.caps_lock); + writePin(D0, led_state.scroll_lock); } - - led_set_user(usb_led); + return true; }
\ No newline at end of file |