Méthode | Description | |
---|---|---|
Cleanup ( ) : void |
Unexports all pins in the registry.
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.IO.GpioFile object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.IO.GpioFile. The Dispose method leaves the CyrusBuilt.MonoPi.IO.GpioFile in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.IO.GpioFile so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.IO.GpioFile was occupying. |
|
GpioFile ( GpioPins pin ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioFile class with the Rev1 pin to access.
|
|
GpioFile ( GpioPins pin, PinMode mode ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioFile class with the Rev1 pin to access and the I/O direction.
|
|
GpioFile ( GpioPins pin, PinMode mode, PinState initialValue ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.IO.GpioFile class with the Rev1 pin to access, the I/O direction, and the initial value.
|
|
Provision ( ) : void |
Provisions the pin (initialize to specified mode and make active).
|
|
Pulse ( ) : void |
Pulse the pin output 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 a value from the specified pin.
|
|
Write ( GpioPins pin, PinState value ) : void |
Writes the specified value to the specified GPIO pin.
|
|
Write ( PinState value ) : void |
Write the specified value to the pin.
|
Méthode | Description | |
---|---|---|
ExportPin ( GpioPins pin, PinMode mode ) : void |
Exports the GPIO setting the direction. This creates the /sys/class/gpio/gpioXX directory.
|
|
UnexportPin ( GpioPins pin ) : void |
Unexport the GPIO. This removes the /sys/class/gpio/gpioXX directory.
|
|
internal_ExportPin ( |
Exports the GPIO setting the direction. This creates the /sys/class/gpio/gpioXX directory.
|
|
internal_Read ( |
Reads the value of the specified GPIO pin.
|
|
internal_UnexportPin ( |
Unexport the GPIO. This removes the /sys/class/gpio/gpioXX directory.
|
|
internal_Write ( |
Writes the specified value to the specified GPIO pin.
|
public GpioFile ( GpioPins pin ) : System | ||
pin | GpioPins | /// The pin on the board to access. /// |
Résultat | System |
public GpioFile ( 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 GpioFile ( 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 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 from. /// |
Résultat | PinState |
public static Write ( GpioPins pin, PinState value ) : void | ||
pin | GpioPins | /// The pin to write the value to. /// |
value | PinState | /// The value to write to the pin. /// |
Résultat | void |
public Write ( PinState value ) : void | ||
value | PinState | /// The value to write to the pin. /// |
Résultat | void |