summaryrefslogtreecommitdiff
path: root/keyboards/kc60/kc60.c
diff options
context:
space:
mode:
authormilestogo <milestogo@users.noreply.github.com>2017-02-09 23:28:15 -0800
committermilestogo <milestogo@users.noreply.github.com>2017-02-09 23:28:15 -0800
commit41c93575a838e9b201ca113165085f47198e109d (patch)
tree897558fe82aa473d9461ba350c939c75a3ac6b5f /keyboards/kc60/kc60.c
parentb0dfb037dc0b8b20fd87b3c88449a2ce20ff80e1 (diff)
parent6c462e0c0155a892a6efd0881086f8a7032316d2 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
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