X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboards%2Fxmmx%2Fxmmx.c;h=4d410e90a0086a0ea4fdfe02bdc23bb6d221a1e7;hb=dbdbbbd5c9b1458f682eec661d0a17f91dccb4dc;hp=399ae4eb44123783bfc49aab2fd75f22538a432a;hpb=e2eee47e20481d0936a1893b561f3a95445b40fd;p=qmk_firmware.git diff --git a/keyboards/xmmx/xmmx.c b/keyboards/xmmx/xmmx.c index 399ae4eb4..4d410e90a 100644 --- a/keyboards/xmmx/xmmx.c +++ b/keyboards/xmmx/xmmx.c @@ -1 +1,18 @@ #include "xmmx.h" + +void led_set_user(uint8_t usb_led) { + + //LED1 + if (usb_led & (1 << USB_LED_CAPS_LOCK)) { + DDRB |= (1 << 6); PORTB &= ~(1 << 6); + } else { + DDRB &= ~(1 << 6); PORTB &= ~(1 << 6); + } + + //LED2 + if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { + DDRB |= (1 << 5); PORTB &= ~(1 << 5); + } else { + DDRB &= ~(1 << 5); PORTB &= ~(1 << 5); + } +}