Remove deprecated led_set_kb (#19273)
* Remove led_set_kb maintaining existing led_set_user behaviour * Also call led_set_user
This commit is contained in:
parent
0fcf481cdd
commit
1124bbc1db
14 changed files with 68 additions and 86 deletions
|
@ -100,19 +100,23 @@ void backlight_set(uint8_t level) {
|
|||
}
|
||||
|
||||
// // Port from backlight_update_state
|
||||
// void led_set_kb(uint8_t usb_led) {
|
||||
// bool status[7] = {
|
||||
// backlight_os_state & (1<<USB_LED_CAPS_LOCK),
|
||||
// backlight_os_state & (1<<USB_LED_SCROLL_LOCK),
|
||||
// backlight_os_state & (1<<USB_LED_NUM_LOCK),
|
||||
// backlight_layer_state & (1<<1),
|
||||
// backlight_layer_state & (1<<2),
|
||||
// backlight_layer_state & (1<<3),
|
||||
// backlight_layer_state & (1<<4)
|
||||
// };
|
||||
// indicator_leds_set(status);
|
||||
// backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001);
|
||||
// backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000);
|
||||
// bool led_update_kb(led_t led_state) {
|
||||
// bool res = led_update_user(led_state);
|
||||
// if(res) {
|
||||
// bool status[7] = {
|
||||
// backlight_os_state & (1<<USB_LED_CAPS_LOCK),
|
||||
// backlight_os_state & (1<<USB_LED_SCROLL_LOCK),
|
||||
// backlight_os_state & (1<<USB_LED_NUM_LOCK),
|
||||
// backlight_layer_state & (1<<1),
|
||||
// backlight_layer_state & (1<<2),
|
||||
// backlight_layer_state & (1<<3),
|
||||
// backlight_layer_state & (1<<4)
|
||||
// };
|
||||
// indicator_leds_set(status);
|
||||
// backlight_os_state & (1<<USB_LED_CAPS_LOCK) ? (PORTB &= ~0b00000001) : (PORTB |= 0b00000001);
|
||||
// backlight_os_state & (1<<USB_LED_SCROLL_LOCK) ? (PORTB &= ~0b00010000) : (PORTB |= 0b00010000);
|
||||
// }
|
||||
// return res;
|
||||
// }
|
||||
|
||||
// U5 Pin 1, 2, 3 connected to top left LEDs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue