diff options
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 | } | ||