Skip to content

Commit

Permalink
Add indicator LEDs for GHS.RAR (qmk#10028)
Browse files Browse the repository at this point in the history
* Add indicator LEDs for GHS.RAR

* Update keyboards/ghs/rar/rar.c

Co-authored-by: Joel Challis <[email protected]>

Co-authored-by: Joel Challis <[email protected]>
  • Loading branch information
2 people authored and nicocesar committed Sep 6, 2020
1 parent 5f8aa6d commit e9aaf67
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions keyboards/ghs/rar/rar.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,22 @@
*/

#include "rar.h"

void keyboard_pre_init_kb(void) {
// Set our LED pins as output.
setPinOutput(B1);
setPinOutput(B3);

keyboard_pre_init_user();
}

bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);

if (res) {
writePin(B1, led_state.caps_lock);
writePin(B3, led_state.scroll_lock);
}

return res;
}

0 comments on commit e9aaf67

Please sign in to comment.