Méthode | Description | |
---|---|---|
Destroy ( ) : void |
Destroy this GPIO factory.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.IO.GpioMem object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.GpioMem. The Dispose method leaves the CyrusBuilt.MonoPi.IO.GpioMem in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.GpioMem so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.GpioMem was occupying. |
|
GpioMem ( GpioPins pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioMem class with the pin to initialize. Access to the specified GPIO setup as an output port with an initial value of false (0). |
|
GpioMem ( GpioPins pin, PinMode mode ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioMem class with the pin to initialize and the I/O direction. Access to the specified GPIO setup with the specified direction with an initial value of LOW (0). |
|
GpioMem ( GpioPins pin, PinMode mode, PinState initialValue ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioMem class with the pin to initialize, the I/O direction, and the initial value to write to the pin. Access to the specified GPIO setup with the specified direction with the specified initial value. |
|
Initialize ( ) : System.Boolean |
Initialize the memory access to the GPIO.
|
|
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 ( GpioPins pin ) : PinState |
Read the specified Revision 1.0 pin.
|
|
Write ( GpioPins pin, PinState value ) : void |
Write the specified pin and value.
|
|
Write ( PinState value ) : void |
Write the specified value to the pin.
|
Méthode | Description | |
---|---|---|
ExportPin ( GpioPins pin, PinMode mode ) : void |
Exports the pin setting the direction.
|
|
UnexportPin ( GpioPins 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 GpioMem ( GpioPins pin ) : System | ||
pin | GpioPins | /// The pin on the board to access. /// |
Résultat | System |
public GpioMem ( GpioPins pin, PinMode mode ) : System | ||
pin | GpioPins | /// The pin on the board to access. /// |
mode | PinMode | /// The I/0 mode of the pin. /// |
Résultat | System |
public GpioMem ( GpioPins pin, PinMode mode, PinState initialValue ) : System | ||
pin | GpioPins | /// The pin on the board to access. /// |
mode | PinMode | /// The I/0 mode of the pin. /// |
initialValue | PinState | /// The pin's initial value. /// |
Résultat | System |
public static Initialize ( ) : System.Boolean | ||
Résultat | System.Boolean |
public Pulse ( |
||
millis | /// The number of milliseconds to wait between states. /// | |
Résultat | void |
public static Read ( GpioPins pin ) : PinState | ||
pin | GpioPins | /// The pin to read. /// |
Résultat | PinState |
public static Write ( GpioPins pin, PinState value ) : void | ||
pin | GpioPins | /// The pin to write to. /// |
value | PinState | /// The value to write. /// |
Résultat | void |
public Write ( PinState value ) : void | ||
value | PinState | /// The value to write to the pin. /// |
Résultat | void |