]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/yd60mq/yd60mq.c
[Keyboard] YD60MQ support (#5911)
[qmk_firmware.git] / keyboards / yd60mq / yd60mq.c
diff --git a/keyboards/yd60mq/yd60mq.c b/keyboards/yd60mq/yd60mq.c
new file mode 100644 (file)
index 0000000..96306d6
--- /dev/null
@@ -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);
+}