Ejemplo n.º 1
0
void led_set_user(uint8_t usb_led) {
  if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
    ph_caps_led_on();
  } else {
    ph_caps_led_off();
  }

  if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
    ph_sclk_led_on();
    } else {
    ph_sclk_led_off();
  }
}
Ejemplo n.º 2
0
void matrix_scan_user(void)
{
	uint8_t layer = biton32(layer_state);
	switch (layer) {
		case KM_BLOWRAK:
			ph_caps_led_on();
			ph_sclk_led_off();
			break;
		case KM_QWERTY:
			ph_sclk_led_on();
			ph_caps_led_off();
			break;
	}
}