summaryrefslogtreecommitdiff
path: root/keyboards/kc60/kc60.c
diff options
context:
space:
mode:
authorDamien <Dbroqua@users.noreply.github.com>2017-03-05 22:58:13 +0100
committerGitHub <noreply@github.com>2017-03-05 22:58:13 +0100
commit24ec8f509703cbaf9de7b41d251dbb7fcd339559 (patch)
tree90f4f9adf406d92c6817c412256904a97c716daf /keyboards/kc60/kc60.c
parentb7b94bfb132aa5f2f79b587fcfa6b1197485db27 (diff)
parent615bfc4eca8204b73c592a076ca02aeaeceb7e1e (diff)
Merge pull request #18 from qmk/master
Merge from qmk
Diffstat (limited to 'keyboards/kc60/kc60.c')
-rw-r--r--keyboards/kc60/kc60.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/kc60/kc60.c b/keyboards/kc60/kc60.c
index 746ac634a3..09b924b286 100644
--- a/keyboards/kc60/kc60.c
+++ b/keyboards/kc60/kc60.c
@@ -1 +1,16 @@
#include "kc60.h"
+
+void led_set_kb(uint8_t usb_led)
+{
+ if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+ // output low
+ DDRB |= (1<<2);
+ PORTB &= ~(1<<2);
+ } else {
+ // Hi-Z
+ DDRB &= ~(1<<2);
+ PORTB &= ~(1<<2);
+ }
+
+ led_set_user(usb_led);
+} \ No newline at end of file