HCoop
/
jackhill
/
qmk
/
firmware.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
[WIP] [Help Needed] Daisy 40%: Refactor and Configurator update (#3124)
[jackhill/qmk/firmware.git]
/
keyboards
/
daisy
/
daisy.c
1
#include
"daisy.h"
2
3
void
led_set_kb
(
uint8_t
usb_led
) {
4
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
5
if
(
usb_led
& (
1
<<
USB_LED_CAPS_LOCK
)) {
6
// output low
7
DDRC
|= (
1
<<
PC6
);
8
PORTC
&= ~(
1
<<
PC6
);
9
}
else
{
10
// Hi-Z
11
DDRC
&= ~(
1
<<
PC6
);
12
PORTC
&= ~(
1
<<
PC6
);
13
}
14
led_set_user
(
usb_led
);
15
}