···2121The `host_keyboard_led_state()` may reflect an updated state before `led_update_user()` is called.
2222:::
23232424-Two deprecated functions that provide the LED state as `uint8_t`:
2424+Deprecated functions that provide the LED state as `uint8_t`:
25252626-* `uint8_t led_set_user(uint8_t usb_led)`
2726* `uint8_t host_keyboard_leds()`
28272928## Configuration Options
···4948* Keymap: `bool led_update_user(led_t led_state)`
50495150Both receives LED state as a struct parameter. Returning `true` in `led_update_user()` will allow the keyboard level code in `led_update_kb()` to run as well. Returning `false` will override the keyboard level code, depending on how the keyboard level function is set up.
5252-5353-::: tip
5454-This boolean return type of `led_update_user` allows for overriding keyboard LED controls, and is thus recommended over the void `led_set_user` function.
5555-:::
56515752### Example of keyboard LED update implementation
5853