diff options
author | Barry Huang <yj7272098@hotmail.com> | 2018-05-21 01:28:33 +0800 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-05-20 10:28:33 -0700 |
commit | f698bbcd65426cf7144b886f7fc7ec29d6d7c41f (patch) | |
tree | 6b39496913f103b4334ec77b0f240701f952fdf1 /keyboards/pk60 | |
parent | 068b80383f6a796983c25b223f6f3faa4216fa7b (diff) | |
download | qmk_firmware-f698bbcd65426cf7144b886f7fc7ec29d6d7c41f.tar.gz qmk_firmware-f698bbcd65426cf7144b886f7fc7ec29d6d7c41f.zip |
Capslock indicator add (#3007)
* Capslock indicator add
* edit
* name correction
* led_set_user(usb_led); delete
Diffstat (limited to 'keyboards/pk60')
-rw-r--r-- | keyboards/pk60/pk60.c | 11 |
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 |