whycomeimsocool

Untitled

Feb 5th, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. rgb_led_set(result);
  2. #ifdef USE_BUTTON_LED
  3. if (current_state == lockout_state) {
  4. // In lockout mode: button LED follows aux LED behavior
  5. button_led_set(button_led_result);
  6. } else {
  7. // In other modes: button LED only on when main emitter is on
  8. if (actual_level > 0) {
  9. button_led_set(button_led_result);
  10. } else {
  11. button_led_set(0);
  12. }
  13. }
  14. #endif
Advertisement
Add Comment
Please, Sign In to add comment