aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ghs
diff options
context:
space:
mode:
authorRamon Imbao <ramonimbao@gmail.com>2020-08-14 21:56:27 +0800
committerGitHub <noreply@github.com>2020-08-14 14:56:27 +0100
commitc02666c4cbdae772698f2cb252a2a791225f81a9 (patch)
treeea1fb1fb6f15e193733d813ea5794cbc0ccc4b13 /keyboards/ghs
parent517f6d2c22adb0132e74396c08e21f35ae64118b (diff)
downloadqmk_firmware-c02666c4cbdae772698f2cb252a2a791225f81a9.tar.gz
qmk_firmware-c02666c4cbdae772698f2cb252a2a791225f81a9.zip
Add indicator LEDs for GHS.RAR (#10028)
* Add indicator LEDs for GHS.RAR * Update keyboards/ghs/rar/rar.c Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/ghs')
-rw-r--r--keyboards/ghs/rar/rar.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/ghs/rar/rar.c b/keyboards/ghs/rar/rar.c
index 72f0654fc..8f7ae3ba6 100644
--- a/keyboards/ghs/rar/rar.c
+++ b/keyboards/ghs/rar/rar.c
@@ -15,3 +15,22 @@
15 */ 15 */
16 16
17#include "rar.h" 17#include "rar.h"
18
19void keyboard_pre_init_kb(void) {
20 // Set our LED pins as output.
21 setPinOutput(B1);
22 setPinOutput(B3);
23
24 keyboard_pre_init_user();
25}
26
27bool led_update_kb(led_t led_state) {
28 bool res = led_update_user(led_state);
29
30 if (res) {
31 writePin(B1, led_state.caps_lock);
32 writePin(B3, led_state.scroll_lock);
33 }
34
35 return res;
36}