System.Device.Gpio 2.2.0

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
.NET 6.0 .NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package System.Device.Gpio --version 2.2.0
NuGet\Install-Package System.Device.Gpio -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="System.Device.Gpio" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Device.Gpio --version 2.2.0
#r "nuget: System.Device.Gpio, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install System.Device.Gpio as a Cake Addin
#addin nuget:?package=System.Device.Gpio&version=2.2.0

// Install System.Device.Gpio as a Cake Tool
#tool nuget:?package=System.Device.Gpio&version=2.2.0

The System.Device.Gpio package supports general-purpose I/O (GPIO) pins, PWM, I2C, SPI and related interfaces for interacting with low level hardware pins to control hardware sensors, displays and input devices on single-board-computers; Raspberry Pi, BeagleBoard, HummingBoard, ODROID, and other single-board-computers that are supported by Linux and Windows 10 IoT Core OS can be used with .NET Core and System.Device.Gpio.  On Windows 10 IoT Core OS, the library wraps the Windows.Devices.Gpio.dll assembly.  On Linux, the library supports three driver modes: libgpiod for fast full-featured GPIO access on all Linux distros since version 4.8 of the Linux kernel; slower and limited-functionality GPIO access via the deprecated Sysfs interface (/sys/class/gpio) when running on older Linux distro versions with a Linux kernel older than version 4.8; and lastly board-specific Linux drivers that access GPIO addresses in /dev/mem for fasted performance at the trade-off of being able to run on very specific versions of single-board-computers.  In the future, the board-specific Linux drivers may be removed in favor of only supporting libgpiod and sysfs Linux interfaces.  In addition to System.Device.Gpio, the optional Iot.Device.Bindings NuGet package contains device bindings for many sensors, displays, and input devices that can be used with System.Device.Gpio.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net6.0-windows10.0.17763 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (48)

Showing the top 5 NuGet packages that depend on System.Device.Gpio:

Package Downloads
Iot.Device.Bindings The ID prefix of this package has been reserved for one of the owners of this package by

This package provides a set of Device Bindings that use System.Device.Gpio package to communicate with a microcontroller.


piTop module.


pi-top[4] device.


Package Description


.Net Standard 2.0 One Wire library for Windows IoT on Raspberry Pi via DS2482-100 and DS2482-800 I2C to One Wire bridge

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on System.Device.Gpio:

Repository Stars
Sample code referenced by the .NET documentation
This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.
HomeGenie, the programmable automation system for smart devices and applications.
Interact with I2C, SPI & GPIO devices using PowerShell Core!
Version Downloads Last updated
2.3.0-prerelease.22520.10 1,762 10/24/2022
2.2.0 43,030 9/29/2022
2.1.0 63,820 2/26/2022
2.0.0 12,423 1/25/2022
2.0.0-prerelease.22069.4 264 1/21/2022
1.5.0 63,157 7/16/2021
1.4.0 33,190 3/17/2021
1.4.0-prerelease.21160.2 280 3/10/2021
1.3.0 21,174 12/22/2020
1.2.0 12,672 11/24/2020
1.1.0 5,746 11/9/2020
1.1.0-prerelease.20555.1 18,527 11/5/2020
1.1.0-prerelease.20276.1 26,471 7/22/2020
1.1.0-prerelease.20153.1 3,485 3/3/2020
1.0.0 114,294 9/23/2019
1.0.0-prerelease.19413.1 1,320 8/13/2019
0.1.0-prerelease.19376.1 1,220 7/26/2019
0.1.0-prerelease.19310.5 1,941 6/11/2019
0.1.0-prerelease.19171.3 2,247 3/21/2019
0.1.0-prerelease.19078.2 4,220 1/28/2019