diff options
author | Jouke Witteveen <[email protected]> | 2022-07-02 13:57:05 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-02 21:57:05 +1000 |
commit | 0112938140b4a59904f4b0b8c3893588410013cb (patch) | |
tree | a080e4c39d1711a371394c5df7ab71969202d7b1 /quantum/led.h | |
parent | 2af2c5e109cb58401521e32df4b83d7e7f6f1444 (diff) | |
download | qmk_firmware-0112938140b4a59904f4b0b8c3893588410013cb.tar.gz qmk_firmware-0112938140b4a59904f4b0b8c3893588410013cb.zip |
Expose the time of the last change to the LED state (#17222)
Diffstat (limited to 'quantum/led.h')
-rw-r--r-- | quantum/led.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/led.h b/quantum/led.h index 934d25312c..b8262cbd8e 100644 --- a/quantum/led.h +++ b/quantum/led.h @@ -61,6 +61,9 @@ void led_set_kb(uint8_t usb_led); bool led_update_user(led_t led_state); bool led_update_kb(led_t led_state); +uint32_t last_led_activity_time(void); // Timestamp of the LED activity +uint32_t last_led_activity_elapsed(void); // Number of milliseconds since the last LED activity + #ifdef __cplusplus } #endif |