Interface ILed
Defines a simple Light Emitting Diode (LED).
Assembly: Meadow.Contracts.dll
View Source
public interface ILed
Properties
IsOn
Gets or sets a value indicating whether the LED is on.
View Source
bool IsOn { get; set; }
Methods
StartBlink()
Blink animation that turns the LED on (500ms) and off (500ms)
View Source
Task StartBlink()
Returns
System.Threading.Tasks.Task
StartBlink(TimeSpan, TimeSpan)
Blink animation that turns the LED on and off based on the OnDuration and offDuration values in ms
View Source
Task StartBlink(TimeSpan onDuration, TimeSpan offDuration)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.TimeSpan | onDuration |
System.TimeSpan | offDuration |
StopAnimation()
Stops blink animation.
View Source
Task StopAnimation()
Returns
System.Threading.Tasks.Task