Browse Source

Fix PWM control of LED in phantom.

led_matrix
tmk 11 years ago
parent
commit
e6836c3f6d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      keyboard/phantom/led.c

+ 4
- 4
keyboard/phantom/led.c View File

void led_set(uint8_t usb_led) void led_set(uint8_t usb_led)
{ {
if (!(usb_led & (1<<USB_LED_CAPS_LOCK))) if (!(usb_led & (1<<USB_LED_CAPS_LOCK)))
PORTB &= ~(1<<6);
DDRB &= ~(1<<6);
else else
PORTB |= (1<<6);
DDRB |= (1<<6);


if (!(usb_led & (1<<USB_LED_SCROLL_LOCK))) if (!(usb_led & (1<<USB_LED_SCROLL_LOCK)))
PORTB &= ~(1<<7);
DDRB &= ~(1<<7);
else else
PORTB |= (1<<7);
DDRB |= (1<<7);
} }