1
0

Correct pin of numlock led

This commit is contained in:
Kai Ryu 2014-05-26 01:31:13 +09:00
parent 6eb4e4ba5d
commit d0490c1a7c

View File

@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* LED pin configration /* LED pin configration
* CapsLock PB5 (D9) * CapsLock PB5 (D9)
* NumLock PB7 (D11) * NumLock PB2 (D16)
*/ */
void led_set(uint8_t usb_led) void led_set(uint8_t usb_led)
{ {
@ -43,12 +43,12 @@ void layer_change(uint32_t state)
{ {
if (state & (1UL<<2)) { if (state & (1UL<<2)) {
// output high // output high
DDRB |= (1<<PB7); DDRB |= (1<<PB2);
PORTB |= (1<<PB7); PORTB |= (1<<PB2);
} else { } else {
// Hi-Z // Hi-Z
DDRB &= ~(1<<PB7); DDRB &= ~(1<<PB2);
PORTB &= ~(1<<PB7); PORTB &= ~(1<<PB2);
} }
} }
#endif #endif