Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rgb_led_set(result);
- #ifdef USE_BUTTON_LED
- if (current_state == lockout_state) {
- // In lockout mode: button LED follows aux LED behavior
- button_led_set(button_led_result);
- } else {
- // In other modes: button LED only on when main emitter is on
- if (actual_level > 0) {
- button_led_set(button_led_result);
- } else {
- button_led_set(0);
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment