summaryrefslogtreecommitdiff
path: root/keyboards/do60/do60.c
diff options
context:
space:
mode:
authorUnknown2017-12-08 15:12:41 +0800
committerJack Humbert2017-12-08 16:03:57 -0500
commite3b3c1ef82c05533c7368c834da4aee3ed0a3261 (patch)
tree893b77f667683e5bb15b97d515911caf8042fade /keyboards/do60/do60.c
parentbba871df2f9afe1166e187f7cf372b4f6a60b3f8 (diff)
add do60 support
Diffstat (limited to 'keyboards/do60/do60.c')
-rw-r--r--keyboards/do60/do60.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/do60/do60.c b/keyboards/do60/do60.c
new file mode 100644
index 000000000..502d02a40
--- /dev/null
+++ b/keyboards/do60/do60.c
@@ -0,0 +1,19 @@
+#include "do60.h"
+
+
+extern inline void do60_caps_led_on(void);
+extern inline void do60_bl_led_on(void);
+
+extern inline void do60_caps_led_off(void);
+extern inline void do60_bl_led_off(void);
+
+
+void led_set_kb(uint8_t usb_led) {
+ if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+ do60_caps_led_on();
+ } else {
+ do60_caps_led_off();
+ }
+
+ led_set_user(usb_led);
+}