diff options
Diffstat (limited to 'keyboards/daisy/daisy.c')
-rw-r--r-- | keyboards/daisy/daisy.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/daisy/daisy.c b/keyboards/daisy/daisy.c new file mode 100644 index 000000000..f8ca24ff0 --- /dev/null +++ b/keyboards/daisy/daisy.c @@ -0,0 +1,15 @@ +#include "daisy.h" + +void led_set_kb(uint8_t usb_led) { + // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + if (usb_led & (1<<USB_LED_CAPS_LOCK)) { + // output low + DDRC |= (1<<PC6); + PORTC &= ~(1<<PC6); + } else { + // Hi-Z + DDRC &= ~(1<<PC6); + PORTC &= ~(1<<PC6); + } + led_set_user(usb_led); +}
\ No newline at end of file |