mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-17 17:35:30 +00:00
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>
This commit is contained in:
parent
517f6d2c22
commit
c02666c4cb
1 changed files with 19 additions and 0 deletions
|
@ -15,3 +15,22 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "rar.h"
|
#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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue