diff options
author | Joel Challis <git@zvecr.com> | 2020-11-21 19:11:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 19:11:24 +0000 |
commit | 23222625c201cd960a5b4a99ee52e74d4c13bba9 (patch) | |
tree | 0fc0f24d2a60fb9e327debaca0b9fac72716487a /keyboards/toad/toad.c | |
parent | 4368611bfd87a544689ed10bb4450a39314bf1a1 (diff) | |
download | qmk_firmware-23222625c201cd960a5b4a99ee52e74d4c13bba9.tar.gz qmk_firmware-23222625c201cd960a5b4a99ee52e74d4c13bba9.zip |
Refactor to use led config - Part 5 (#10975)
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
Diffstat (limited to 'keyboards/toad/toad.c')
-rw-r--r-- | keyboards/toad/toad.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/keyboards/toad/toad.c b/keyboards/toad/toad.c index bc4db0339..a58779507 100644 --- a/keyboards/toad/toad.c +++ b/keyboards/toad/toad.c | |||
@@ -1,18 +1 @@ | |||
1 | #include "toad.h" | #include "toad.h" | |
2 | |||
3 | void led_set_user(uint8_t usb_led) { | ||
4 | |||
5 | //LED1 | ||
6 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | ||
7 | DDRB |= (1 << 6); PORTB &= ~(1 << 6); | ||
8 | } else { | ||
9 | DDRB &= ~(1 << 6); PORTB &= ~(1 << 6); | ||
10 | } | ||
11 | |||
12 | //LED2 | ||
13 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | ||
14 | DDRB |= (1 << 5); PORTB &= ~(1 << 5); | ||
15 | } else { | ||
16 | DDRB &= ~(1 << 5); PORTB &= ~(1 << 5); | ||
17 | } | ||
18 | } | ||