![]() |
VOOZH | about |
dotnet add package System.Device.Gpio --version 4.2.0
NuGet\Install-Package System.Device.Gpio -Version 4.2.0
<PackageReference Include="System.Device.Gpio" Version="4.2.0" />
<PackageVersion Include="System.Device.Gpio" Version="4.2.0" />Directory.Packages.props
<PackageReference Include="System.Device.Gpio" />Project file
paket add System.Device.Gpio --version 4.2.0
#r "nuget: System.Device.Gpio, 4.2.0"
#:package System.Device.Gpio@4.2.0
#addin nuget:?package=System.Device.Gpio&version=4.2.0Install as a Cake Addin
#tool nuget:?package=System.Device.Gpio&version=4.2.0Install as a Cake Tool
.NET can be used to build applications for IoT devices and scenarios. IoT applications typically interact with sensors, displays and input devices that require the use of GPIO pins, serial ports or similar hardware.
You might want to start with our official documentation.
This repository contains the System.Device.Gpio library and implementations for various boards like Raspberry Pi.
The repository also contains Iot.Device.Bindings, a growing set of community-maintained device bindings for IoT components.
While most of the bindings and examples in this project require and are designed to support specific hardware (such as LCD displays, temperature sensors, single-board computers, microcontrollers, etc.), the library itself tries to be as hardware-independent as possible. Some bindings are even written to showcase the use of IOT interfaces with hardware that is already present in normal desktop computers (such as keyboards or CPU temperature sensors). So to get started, you do not need expensive hardware. Or you can start out with cheap stuff, such as an Arduino Uno. You can also use FT232H or FT4222 on a Windows, Linux or MacOS traditional laptop or desktop.
Both libraries System.Device.Gpio (this one) and Iot.Device.Bindings are targeting .NET 8.0. They can be used from any project targeting .NET 8.0. If you are looking at a Micro Controller Unit (MCU) support, check .NET nanoFramework. If you need to support Mono or .NET Standard 2.0, you can use the 3.X versions of these libraries.
The sample projects target the latest stable .NET Version. This applies to the sample projects with each device as well as the example projects.
From Visual Studio, you can just add a nuget by searching for System.Device.Gpio and Iot.Device.Bindings.
After installing, please see the following areas to learn more:
All bindings (in src/devices) contains a samples folder where you will find examples on how to use each of the devices, sensor, displays and other components.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
We welcome PR and contributions. We are primarily interested in the following:
.NET (including the iot repo) is licensed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on System.Device.Gpio:
| Package | Downloads |
|---|---|
|
Iot.Device.Bindings
This package provides a set of Device Bindings ("Device drivers") that use System.Device.Gpio package to communicate with sensors and microcontrollers. |
|
|
piTop
piTop module. |
|
|
pi-top
pi-top[4] device. |
|
|
sphero.Rvr
.NET Api for Sphero RVR platform |
|
|
OmicronLab.VectorNetworkAnalysis.MidLayer
This package contains all the Mid-Layer components needed to measure with a VNA device. |
Showing the top 4 popular GitHub repositories that depend on System.Device.Gpio:
| Repository | Stars |
|---|---|
|
dotnet/samples
Sample code referenced by the .NET documentation
|
|
|
junkai-li/NetCoreKevin
🤖基于.NET搭建的企业级中台AI知识库智能体开源架构:Skills技能管理、AI-Qdrant知识库、知识库重排模型、AI联网搜索、多智能体协同、聊天记录压缩策略、智能体权限管控、AgentFramework、RAG检索增强、本地Ollama AI模型调用、智能体技能可控加载、领域事件、一库多租户、Log4、Jwt、CAP、SignalR、Mcp、Ioc、Hangfire、RabbitMQ、Xunit、前端(Vue + Ant Design)
|
|
|
maker-community/ElectronBot.DotNet
一个为ElectronBot机器人和瀚文键盘(HelloWorldKeyboard)开发的上位机软件(包含机器人USB操作SDK和瀚文键盘HID操作SDK),采用Windows App SDK框架编写界面。 A host computer software developed for ElectronBot robots (including robot USB operation SDK), using the Windows App SDK framework to write UI.
|
|
|
PowerShell/PowerShell-IoT
Interact with I2C, SPI & GPIO devices using PowerShell Core!
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.0 | 36,409 | 3/26/2026 |
| 4.1.0 | 41,200 | 1/15/2026 |
| 4.0.1 | 112,697 | 5/19/2025 |
| 3.2.0 | 336,507 | 6/20/2024 |
| 3.1.0 | 352,504 | 11/16/2023 |
| 3.0.0 | 195,457 | 7/13/2023 |
| 2.3.0-prerelease.22520.10 | 4,487 | 10/24/2022 |
| 2.2.0 | 202,780 | 9/29/2022 |
| 2.1.0 | 146,533 | 2/26/2022 |
| 2.0.0 | 24,787 | 1/25/2022 |
| 2.0.0-prerelease.22069.4 | 654 | 1/21/2022 |
| 1.5.0 | 101,122 | 7/16/2021 |
| 1.4.0 | 62,146 | 3/17/2021 |
| 1.4.0-prerelease.21160.2 | 695 | 3/10/2021 |
| 1.3.0 | 28,935 | 12/22/2020 |
| 1.2.0 | 17,355 | 11/24/2020 |
| 1.1.0 | 7,875 | 11/9/2020 |
| 1.1.0-prerelease.20555.1 | 36,586 | 11/5/2020 |
| 1.1.0-prerelease.20276.1 | 47,832 | 7/22/2020 |