Closed V10lator closed 11 months ago
Hmm, not quite a fan of creating a new thread every time the LED needs to be updated.
The thread is created when a delay is passed to the function only so it switches back to the old state after said delay. How to implement such a delay without a new thread?
Just adding this issue here, because seems to be related: https://github.com/GaryOderNichts/recovery_menu/issues/18
@V10lator Can you test the implementation I made in feature/led_handler and refactor your two other PRs on top of it, if it works as expected?
The other PRs have now been implemented on top of feature/led_handler.
This allows for setting a duration which will be needed in further PRs. It also changes NOTIF_LED into a usable enum, changes how elements are defined and adds new ones for purple.