dz60.c 213 B

123456789
  1. #include "dz60.h"
  2. void led_set_kb(uint8_t usb_led) {
  3. if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
  4. DDRB |= (1 << 2); PORTB &= ~(1 << 2);
  5. } else {
  6. DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
  7. }
  8. }