]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/melody96/melody96.c
[Keymap] Add missing tap dance action and fix RGB hues in personal keymaps (#6312)
[qmk_firmware.git] / keyboards / melody96 / melody96.c
1 #include "melody96.h"
2
3 void led_set_user(uint8_t usb_led) {
4
5         if (usb_led & (1 << USB_LED_NUM_LOCK)) {
6                 DDRC |= (1 << 6); PORTC &= ~(1 << 6);
7         } else {
8                 DDRC &= ~(1 << 6); PORTC &= ~(1 << 6);
9         }
10
11         if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
12                 DDRC |= (1 << 7); PORTC &= ~(1 << 7);
13         } else {
14                 DDRC &= ~(1 << 7); PORTC &= ~(1 << 7);
15         }
16
17         if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
18                 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19         } else {
20                 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
21         }
22 }