diff options
author | Joel Challis <[email protected]> | 2020-11-17 17:06:30 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-17 17:06:30 +0000 |
commit | ddcb1794fa83e62e5e48536f4bc02ada63da411a (patch) | |
tree | db5df8970f8ed22c77bdd021b781a429a5f05b49 /keyboards/dz60/dz60.c | |
parent | adfd34c4512f6215a49a8f705ce408d6c82fb8cc (diff) | |
download | qmk_firmware-ddcb1794fa83e62e5e48536f4bc02ada63da411a.tar.gz qmk_firmware-ddcb1794fa83e62e5e48536f4bc02ada63da411a.zip |
Refactor to use led config - Part 1 (#10905)
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
Diffstat (limited to 'keyboards/dz60/dz60.c')
-rw-r--r-- | keyboards/dz60/dz60.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/keyboards/dz60/dz60.c b/keyboards/dz60/dz60.c index 936d027a31..23db2e4d75 100644 --- a/keyboards/dz60/dz60.c +++ b/keyboards/dz60/dz60.c @@ -1,21 +1 @@ #include "dz60.h" - -void matrix_init_kb(void) { - matrix_init_user(); - led_init_ports(); -}; - -void led_init_ports(void) { - setPinOutput(B2); - writePinHigh(B2); -} - -void led_set_kb(uint8_t usb_led) { - if (usb_led & (1 << USB_LED_CAPS_LOCK)) { - writePinLow(B2); - } else { - writePinHigh(B2); - } - - led_set_user(usb_led); -} |