summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Huang <yj7272098@hotmail.com>2018-05-21 01:28:33 +0800
committerDrashna Jaelre <drashna@live.com>2018-05-20 10:28:33 -0700
commitf698bbcd65426cf7144b886f7fc7ec29d6d7c41f (patch)
tree6b39496913f103b4334ec77b0f240701f952fdf1
parent068b80383f6a796983c25b223f6f3faa4216fa7b (diff)
Capslock indicator add (#3007)
* Capslock indicator add * edit * name correction * led_set_user(usb_led); delete
-rw-r--r--keyboards/pk60/pk60.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/pk60/pk60.c b/keyboards/pk60/pk60.c
index 909230def2..9cf2e1578d 100644
--- a/keyboards/pk60/pk60.c
+++ b/keyboards/pk60/pk60.c
@@ -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