메소드 | 설명 | |
---|---|---|
Destroy ( ) : void |
Destroy this GPIO factory.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO. The Dispose method leaves the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO was occupying. |
|
Initialize ( ) : System.Boolean |
Initialize the memory access to the GPIO.
|
|
PiFaceDigitalGPIO ( PiFacePins pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO class with the PiFace pin to control.
|
|
PiFaceDigitalGPIO ( PiFacePins pin, PinState initialValue ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO class with the PiFace pin to control and the initial value to write.
|
|
Provision ( ) : void |
Provisions the pin (initialize to specified mode and make active).
|
|
Pulse ( ) : void |
Pulses the pin for 500ms.
|
|
Pulse ( |
Pulse the pin output for the specified number of milliseconds.
|
|
Read ( ) : PinState |
Read a value from the pin.
|
|
Read ( PiFacePins pin ) : PinState |
Read the specified Revision 1.0 pin.
|
|
ToString ( ) : String |
Returns a String that represents the current CyrusBuilt.MonoPi.IO.PiFaceDigitalGPIO.
|
|
Write ( PiFacePins pin, PinState value ) : void |
Write the specified pin and value.
|
|
Write ( PinState value ) : void |
Write the specified value to the pin.
|
메소드 | 설명 | |
---|---|---|
ExportPin ( PiFacePins pin, PinMode mode ) : void |
Exports the pin setting the direction.
|
|
UnexportPin ( PiFacePins pin ) : void |
Unexport the GPIO.
|
|
internal_ExportPin ( |
Export the GPIO setting the direction.
|
|
internal_Read ( |
Read the value of the specified pin.
|
|
internal_UnexportPin ( |
Unexports an exported pin.
|
|
internal_Write ( |
Write the value to the specified pin.
|
public PiFaceDigitalGPIO ( PiFacePins pin ) : System | ||
pin | PiFacePins | /// The PiFace pin to control. /// |
리턴 | System |
public PiFaceDigitalGPIO ( PiFacePins pin, PinState initialValue ) : System | ||
pin | PiFacePins | /// The PiFace pin to control. /// |
initialValue | PinState | /// The initial value to write. /// |
리턴 | System |
public Pulse ( |
||
millis | /// The number of milliseconds to wait between states. /// | |
리턴 | void |
public static Read ( PiFacePins pin ) : PinState | ||
pin | PiFacePins | /// The pin to read. /// |
리턴 | PinState |
public static Write ( PiFacePins pin, PinState value ) : void | ||
pin | PiFacePins | /// The pin to write to. /// |
value | PinState | /// The value to write. /// |
리턴 | void |
public Write ( PinState value ) : void | ||
value | PinState | /// The value to write to the pin. /// |
리턴 | void |