Class LEDConfigs
Configs related to CANdle LED control.
All the configs related to controlling LEDs with the CANdle, including LED strip type and brightness.public class LEDConfigs : IParentConfiguration, ISerializable, ICloneable
- Inheritance
-
LEDConfigs
- Implements
- Inherited Members
Fields
BrightnessScalar
The brightness scalar for all LEDs controlled. All LED values sent to the CANdle will be scaled by this config.
- Minimum Value0.0
- Maximum Value1.0
- Default Value1.0
- Unitsscalar
public double BrightnessScalar
Field Value
LossOfSignalBehavior
The behavior of the LEDs when the control signal is lost.
public LossOfSignalBehaviorValue LossOfSignalBehavior
Field Value
StripType
The type of LEDs that are being controlled.
public StripTypeValue StripType
Field Value
Methods
Clone()
Creates a copy of this config group.
public LEDConfigs Clone()
Returns
Deserialize(string)
Deserialize string and put values into this object
public StatusCode Deserialize(string to_deserialize)
Parameters
to_deserializestringString to deserialize
Returns
- StatusCode
OK if deserialization is OK
Serialize()
Serialize this object into a string
public string Serialize()
Returns
- string
This object's data serialized into a string
ToString()
Provides the string representation of this object
public override string ToString()
Returns
WithBrightnessScalar(double)
Modifies this configuration's BrightnessScalar parameter and returns itself for method-chaining and easier to use config API.
The brightness scalar for all LEDs controlled. All LED values sent to the CANdle will be scaled by this config.- Minimum Value0.0
- Maximum Value1.0
- Default Value1.0
- Unitsscalar
public LEDConfigs WithBrightnessScalar(double newBrightnessScalar)
Parameters
newBrightnessScalardoubleParameter to modify
Returns
- LEDConfigs
Itself
WithLossOfSignalBehavior(LossOfSignalBehaviorValue)
Modifies this configuration's LossOfSignalBehavior parameter and returns itself for method-chaining and easier to use config API.
The behavior of the LEDs when the control signal is lost.public LEDConfigs WithLossOfSignalBehavior(LossOfSignalBehaviorValue newLossOfSignalBehavior)
Parameters
newLossOfSignalBehaviorLossOfSignalBehaviorValueParameter to modify
Returns
- LEDConfigs
Itself
WithStripType(StripTypeValue)
Modifies this configuration's StripType parameter and returns itself for method-chaining and easier to use config API.
The type of LEDs that are being controlled.public LEDConfigs WithStripType(StripTypeValue newStripType)
Parameters
newStripTypeStripTypeValueParameter to modify
Returns
- LEDConfigs
Itself