Interface ILed
Defines a simple Light Emitting Diode (LED).
Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface ILed
Properties
IsOn
Gets or sets a value indicating whether the LED is on.
View Source
Declaration
bool IsOn { get; set; }
Methods
StartBlink()
Blink animation that turns the LED on (500ms) and off (500ms)
View Source
Declaration
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
Declaration
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
Declaration
Task StopAnimation()
Returns
System.Threading.Tasks.Task