This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ail, ele, rud, thr | |
| local prev_ail, prev_ele, prev_rud, prev_thr = 0, 0, 0, 0 | |
| local delta_ail, delta_ele, delta_rud, delta_thr = 0, 0, 0, 0 | |
| local prev_is_bound = false | |
| local DELTA_MIN_MOVEMENT = 3 -- Minimum delta to allow LED updates | |
| local SPREAD_FACTOR = 2 -- Factor to control the spread of the highlight (0 = full ring, 2 = half ring, higher = 1/x of the ring) | |
| local UNBIND_LED_R, UNBIND_LED_G, UNBIND_LED_B = 255, 0, 0 -- Red for unbound state | |
| local BIND_LED_R, BIND_LED_G, BIND_LED_B = 0, 255, 0 -- Green for bound state |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ail, ele, rud, thr | |
| local prev_ail, prev_ele, prev_rud, prev_thr = 0, 0, 0, 0 | |
| local delta_ail, delta_ele, delta_rud, delta_thr = 0, 0, 0, 0 | |
| local DELTA_MIN_MOVEMENT = 3 -- Minimum delta to allow LED updates | |
| local SPREAD_FACTOR = 2 -- Factor to control the spread of the highlight (0 = full ring, 2 = half ring, higher = 1/x of the ring) | |
| -- Base LED settings (uncomment one color option below) | |
| local BASE_LED_R, BASE_LED_G, BASE_LED_B = 255, 0, 0 -- Red (default) | |
| -- local BASE_LED_R, BASE_LED_G, BASE_LED_B = 0, 255, 0 -- Green |