Unidevel.Raspberry.Gpio 0.9.2

Raspberry PI library for controlling GPIO inputs and outputs.

Install-Package Unidevel.Raspberry.Gpio -Version 0.9.2
dotnet add package Unidevel.Raspberry.Gpio --version 0.9.2
<PackageReference Include="Unidevel.Raspberry.Gpio" Version="0.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unidevel.Raspberry.Gpio --version 0.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Synopsis

Raspberry PI library for controlling GPIO inputs and outputs with minimal interface.

Code Example

IGpio gpio = new FileGpio();

gpio[2] = true; // sets GPIO 2 to HIGH
gpio[5] = false; // sets GPIO 5 to LOW

var b = gpio[4]; // gets value of GPIO 4

Complete interface is:

public interface IGpio
{
    /// <summary>
    /// Sets PIN to high (true) or low (false).
    /// </summary>
    /// <param name="gpioPinNumber">Pin to set or get value from. Must be between 1 and 32, inclusive.</param>
    /// <returns>Pin value.</returns>
    bool this[int gpioPinNumber] { get;set; }
}

Synopsis

Raspberry PI library for controlling GPIO inputs and outputs with minimal interface.

Code Example

IGpio gpio = new FileGpio();

gpio[2] = true; // sets GPIO 2 to HIGH
gpio[5] = false; // sets GPIO 5 to LOW

var b = gpio[4]; // gets value of GPIO 4

Complete interface is:

public interface IGpio
{
    /// <summary>
    /// Sets PIN to high (true) or low (false).
    /// </summary>
    /// <param name="gpioPinNumber">Pin to set or get value from. Must be between 1 and 32, inclusive.</param>
    /// <returns>Pin value.</returns>
    bool this[int gpioPinNumber] { get;set; }
}

Release Notes

Initial release extracted from home automation project.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.9.2 51 7/19/2019
0.9.1 48 7/19/2019
0.9.0 48 7/19/2019
0.0.1 45 7/19/2019