All Projects → unosquare → pigpio-dotnet

unosquare / pigpio-dotnet

Licence: MIT license
Provides complete managed access to the popular pigpio C library

Programming Languages

c
50402 projects - #5 most used programming language
C#
18002 projects

Labels

Projects that are alternatives of or similar to pigpio-dotnet

pigpioj
Java JNI wrapper around the pigpio C library
Stars: ✭ 16 (-71.93%)
Mutual labels:  pigpio
pigpio-client
A nodejs client for pigpio socket interface.
Stars: ✭ 24 (-57.89%)
Mutual labels:  pigpio

Build status

pgipio-dotnet Raspbery Pi - libpigpio for .net

WE ARE LOOKING FOR A NEW HOME FOR THIS PROJECT. APPLY AT: https://adoptoposs.org/p/d3470190-942b-44ac-84fc-90259cbdee43

Please star this project if you find it useful!

Provides complete managed access to the popular pigpio C library.

The premise is simple: using the powerful features of C# to control the ARM peripherals of the Raspberry Pi. This library provides a comprehensive way to access the hardware of the Pi. It uses the fantastic C library pigpio. The documentation of the library can be found here.

As a programmer, the choice is yours. You can call the native methods either directly or via the comprehensive API of PiGpio.net.

Example of blinking an LED with direct native calls

Setup.GpioInitialise();
var pin = SystemGpio.Bcm18;
IO.GpioSetMode(pin, PinMode.Output);

while (true)
{
    IO.GpioWrite(pin, true);
    Thread.Sleep(500);
    IO.GpioWrite(pin, false);
    Thread.Sleep(500);
}

Example of blinking an LED with the PiGpio.net Managed API

var pin = Board.Pins[18];

while (true)
{
    pin.Value = !pin.Value;
    Thread.Sleep(500);
}

Related Projects and Nugets

Name Author Description
RaspberryIO Unosquare The Raspberry Pi's IO Functionality in an easy-to-use API for .NET (Mono/.NET Core).
PiGpio.net Unosquare Provides complete managed access to the popular pigpio C library
Raspberry Abstractions Unosquare Allows you to implement your own provider for RaspberryIO.
Raspberry# IO raspberry-sharp Raspberry# IO is a .NET/Mono IO Library for Raspberry Pi. This project is an initiative of the Raspberry# Community.
WiringPi.Net Daniel Riches A simple C# wrapper for Gordon's WiringPi library.
PiSharp Andy Bradford Pi# is a library to expose the GPIO functionality of the Raspberry Pi computer to the C# and Visual Basic.Net languages
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].