blob: 09b924b2865d3484999be28e45579bef5a10b91b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "kc60.h"
void led_set_kb(uint8_t usb_led)
{
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
// output low
DDRB |= (1<<2);
PORTB &= ~(1<<2);
} else {
// Hi-Z
DDRB &= ~(1<<2);
PORTB &= ~(1<<2);
}
led_set_user(usb_led);
}
|