qmk

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

commit f698bbcd65426cf7144b886f7fc7ec29d6d7c41f
parent 068b80383f6a796983c25b223f6f3faa4216fa7b
Author: Barry Huang <yj7272098@hotmail.com>
Date:   Mon, 21 May 2018 01:28:33 +0800

Capslock indicator add (#3007)

* Capslock indicator add

* edit

* name correction

* led_set_user(usb_led); delete

Diffstat:
keyboards/pk60/pk60.c | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git 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