Method | Description | |
---|---|---|
Blink ( |
Blinks the LED.
|
|
Blink ( |
Blinks the LED.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Components.Lights.LEDComponent object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Lights.LEDComponent. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Lights.LEDComponent in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Lights.LEDComponent so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Lights.LEDComponent was occupying. |
|
LEDComponent ( IGpio pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Lights.LEDComponent class with the pin controlling the LED.
|
|
Off ( ) : void |
Switches the LED off.
|
|
On ( ) : void |
Switches the LED on.
|
|
Pulse ( |
Pulses the state of the LED.
|
|
Pulse ( |
Pulses the state of the LED.
|
|
ToString ( ) : String |
Returns a System.String that represents the current CyrusBuilt.MonoPi.Components.Lights.LEDComponent.
|
public Blink ( |
||
delay | /// The delay between state change. /// | |
return | void |
public Blink ( |
||
delay | /// The delay between state change. /// | |
duration | /// The amount of time to blink the LED (in milliseconds). /// | |
return | void |
public LEDComponent ( IGpio pin ) : System | ||
pin | IGpio | /// The output pin the LED is wired to. /// |
return | System |
public Pulse ( |
||
duration | /// The amount of time to pulse the LED. /// | |
return | void |
public Pulse ( |
||
duration | /// The amount of time to pulse the LED. /// | |
blocking | System.Boolean | /// Blocks the current thread while pulsing. /// |
return | void |