1
0

Add logo led for RedScarfII

This commit is contained in:
Kai Ryu 2014-06-26 12:26:59 +09:00
parent 505f933944
commit 456559d422

View File

@ -36,7 +36,7 @@ void led_set(uint8_t usb_led)
PORTC &= ~(1<<PC7); PORTC &= ~(1<<PC7);
} }
if (usb_led & (1<<USB_LED_NUM_LOCK)) { if (usb_led & (1<<USB_LED_NUM_LOCK)) {
// outpu low // output low
DDRE |= (1<<PE6); DDRE |= (1<<PE6);
PORTE &= ~(1<<PE6); PORTE &= ~(1<<PE6);
} }
@ -45,4 +45,14 @@ void led_set(uint8_t usb_led)
DDRE &= ~(1<<PE6); DDRE &= ~(1<<PE6);
PORTE &= ~(1<<PE6); PORTE &= ~(1<<PE6);
} }
if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
// output high
DDRC |= (1<<PC6);
PORTC |= (1<<PC6);
}
else {
// Hi-Z
DDRC &= ~(1<<PC6);
PORTC &= ~(1<<PC6);
}
} }