summaryrefslogtreecommitdiff
path: root/keyboards/yd60mq/yd60mq.c
diff options
context:
space:
mode:
authorWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
committerWilliam Chang <william@factual.com>2019-07-13 10:18:33 -0700
commit71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (patch)
tree3bb3e5e496621535611e087720aa5c4d7a533e5e /keyboards/yd60mq/yd60mq.c
parent86ad4988fe7ff64916127509d84f44c56fa097aa (diff)
parentda1f05fbc19477c05c0c01bb07fabfaf1ece9d54 (diff)
Merge branch 'master' of https://github.com/qmk/qmk_firmware
Diffstat (limited to 'keyboards/yd60mq/yd60mq.c')
-rw-r--r--keyboards/yd60mq/yd60mq.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/keyboards/yd60mq/yd60mq.c b/keyboards/yd60mq/yd60mq.c
new file mode 100644
index 0000000000..96306d6a66
--- /dev/null
+++ b/keyboards/yd60mq/yd60mq.c
@@ -0,0 +1,13 @@
+#include "yd60mq.h"
+
+void led_set_kb(uint8_t usb_led) {
+ if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ setPinOutput(F4);
+ writePinLow(F4);
+ } else {
+ setPinInput(F4);
+ writePinLow(F4);
+ }
+
+ led_set_user(usb_led);
+}