Struct braid_triggerbox_comms::LedInfo
source · pub struct LedInfo {
pub max_duration_usec: u32,
pub max_overall_duty_cycle: f32,
pub nth_frame: u8,
}
Fields§
§max_duration_usec: u32
The duration the LED is on in each pulse (in microseceonds)
This is the maximum value. Regardless of the value specified here, the LED on time cannot be longer than the inter-frame interval. Furthermore, it may also be limited by Self::max_overall_duty_cycle.
max_overall_duty_cycle: f32
The maximum fraction of time the LED is on
This is a safety measure to reduce risk of destroying LEDs. When overdriving LEDs, it may be that they should only be on for a fraction of the time, e.g. 10% of the time. Setting this value to anything less than 1.0 will limit the LED on time to a fraction of total time. The Self::nth_frame field is taken into account within this computation.
nth_frame: u8
What interval the LED is on
0: never 1: every frame 2: every second frame 3: every third frame 4: every fourth frame