diff options
Diffstat (limited to 'keyboards/clueboard_66/rev1/rev1.c')
-rw-r--r-- | keyboards/clueboard_66/rev1/rev1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/keyboards/clueboard_66/rev1/rev1.c b/keyboards/clueboard_66/rev1/rev1.c new file mode 100644 index 000000000..90fc6956c --- /dev/null +++ b/keyboards/clueboard_66/rev1/rev1.c | |||
@@ -0,0 +1,17 @@ | |||
1 | #include "rev1.h" | ||
2 | |||
3 | void led_init_ports() { | ||
4 | // * Set our LED pins as output | ||
5 | DDRF |= (1<<0); | ||
6 | } | ||
7 | |||
8 | void led_set_kb(uint8_t usb_led) { | ||
9 | DDRF |= (1<<0); | ||
10 | if (usb_led & (1<<USB_LED_CAPS_LOCK)) { | ||
11 | // Turn capslock on | ||
12 | PORTF |= (1<<0); | ||
13 | } else { | ||
14 | // Turn capslock off | ||
15 | PORTF &= ~(1<<0); | ||
16 | } | ||
17 | } | ||