]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Capslock indicator add (#3007)
authorBarry Huang <yj7272098@hotmail.com>
Sun, 20 May 2018 17:28:33 +0000 (01:28 +0800)
committerDrashna Jaelre <drashna@live.com>
Sun, 20 May 2018 17:28:33 +0000 (10:28 -0700)
* Capslock indicator add

* edit

* name correction

* led_set_user(usb_led); delete

keyboards/pk60/pk60.c

index 909230def28299a9d70974dda761e01e492e28b2..9cf2e1578d1ca02da3a26d5149c621404d3757e2 100644 (file)
@@ -1 +1,12 @@
 #include "pk60.h"
+
+void led_set_kb(uint8_t usb_led) {
+    
+    if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+        PORTF |= (1<<4);
+    } else {
+        PORTF &= ~(1<<4);
+    }
+    led_set_user(usb_led);
+
+}
\ No newline at end of file