Unidevel.Raspberry.Gpio
0.0.1
Package Description
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
Install-Package Unidevel.Raspberry.Gpio -Version 0.0.1
dotnet add package Unidevel.Raspberry.Gpio --version 0.0.1
<PackageReference Include="Unidevel.Raspberry.Gpio" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unidevel.Raspberry.Gpio --version 0.0.1
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.
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.
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; }
}
Dependencies
-
.NETStandard 2.0
- Microsoft.Extensions.Logging.Abstractions (>= 2.2.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.