System.Device.Gpio
3.2.0
Prefix Reserved
dotnet add package System.Device.Gpio --version 3.2.0
NuGet\Install-Package System.Device.Gpio -Version 3.2.0
<PackageReference Include="System.Device.Gpio" Version="3.2.0" />
paket add System.Device.Gpio --version 3.2.0
#r "nuget: System.Device.Gpio, 3.2.0"
// Install System.Device.Gpio as a Cake Addin #addin nuget:?package=System.Device.Gpio&version=3.2.0 // Install System.Device.Gpio as a Cake Tool #tool nuget:?package=System.Device.Gpio&version=3.2.0
.NET IoT Libraries
.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 and Hummingboard.
The repository also contains Iot.Device.Bindings, a growing set of community-maintained device bindings for IoT components.
Hardware requirements
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.
.NET Versions
Both libraries System.Device.Gpio
(this one) and Iot.Device.Bindings are cross-targeting .NET Standard 2.0, .NET Core 3.1, and .NET 6.0. They can be used from any project targeting .NET Core 2.0 or higher, and also from .NET Framework or mono. If you are looking at a Micro Controller Unit (MCU) support, check .NET nanoFramework.
The sample projects target the latest stable .NET Version. This applies to the sample projects with each device as well as the example projects.
How to Install
From Visual Studio, you can just add a nuget by searching for System.Device.Gpio
and Iot.Device.Bindings
.
Getting started
After installing, please see the following areas to learn more:
- Official Documentation - Concepts, quickstarts, tutorials, and API reference documentation.
- API Documentation - Direct link to API reference documentation for all public interfaces. Be sure to choose the library version you are using.
- Microsoft Learn interactive learning module
- Let's Learn .NET: IoT livestream (September 2021)
- .NET IoT 101 (Jan 2020) - An introduction series on how to create .NET IoT applications with a Raspberry Pi.
- Hardware Documentation - Resources related to electronics, devices, vendors, software and other IoT topics.
- Samples - Step-by-step instructions on building your first app.
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.
Community
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.
Contributing
We welcome PR and contributions. We are primarily interested in the following:
- Improving quality and capability of the drivers for supported boards.
- Implementations for additional boards.
- .NET device bindings for a wide variety of sensors, chips, displays and other components.
- Request a device binding or protocol that you need for your project (file an issue).
- Links to blog posts or tweets that showcase .NET Core being used for great IoT scenarios (file an issue).
License
.NET (including the iot repo) is licensed under the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows10.0.17763 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Memory (>= 4.5.5)
- System.Runtime.InteropServices.WindowsRuntime (>= 4.3.0)
- System.Runtime.WindowsRuntime (>= 4.6.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net6.0
- No dependencies.
-
net6.0-windows10.0.17763
- No dependencies.
NuGet packages (69)
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 that use System.Device.Gpio package to communicate with a microcontroller. |
|
piTop
piTop module. |
|
pi-top
pi-top[4] device. |
|
OmicronLab.VectorNetworkAnalysis.MidLayer
This package contains all the Mid-Layer components needed to measure with a VNA device. |
|
sphero.Rvr
.NET Api for Sphero RVR platform |
GitHub repositories (7)
Showing the top 5 popular GitHub repositories that depend on System.Device.Gpio:
Repository | Stars |
---|---|
dotnet/samples
Sample code referenced by the .NET documentation
|
|
dotnet/iot
This repo includes .NET Core implementations for various IoT boards, chips, displays and PCBs.
|
|
genielabs/HomeGenie
HomeGenie, the programmable automation intelligence
|
|
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.
|
|
OPCFoundation/UA-IIoT-StarterKit
Samples and tutorials to illustrate how to build OPC UA PubSub applications.
|
Version | Downloads | Last updated |
---|---|---|
3.2.0 | 63,390 | 6/20/2024 |
3.1.0 | 194,218 | 11/16/2023 |
3.0.0 | 136,723 | 7/13/2023 |
2.3.0-prerelease.22520.10 | 3,709 | 10/24/2022 |
2.2.0 | 171,563 | 9/29/2022 |
2.1.0 | 111,321 | 2/26/2022 |
2.0.0 | 20,698 | 1/25/2022 |
2.0.0-prerelease.22069.4 | 345 | 1/21/2022 |
1.5.0 | 80,382 | 7/16/2021 |
1.4.0 | 53,751 | 3/17/2021 |
1.4.0-prerelease.21160.2 | 348 | 3/10/2021 |
1.3.0 | 26,875 | 12/22/2020 |
1.2.0 | 16,402 | 11/24/2020 |
1.1.0 | 7,279 | 11/9/2020 |
1.1.0-prerelease.20555.1 | 32,928 | 11/5/2020 |
1.1.0-prerelease.20276.1 | 44,460 | 7/22/2020 |
1.1.0-prerelease.20153.1 | 4,059 | 3/3/2020 |
1.0.0 | 126,843 | 9/23/2019 |
1.0.0-prerelease.19413.1 | 1,421 | 8/13/2019 |
0.1.0-prerelease.19376.1 | 1,328 | 7/26/2019 |
0.1.0-prerelease.19310.5 | 2,144 | 6/11/2019 |
0.1.0-prerelease.19171.3 | 2,375 | 3/21/2019 |
0.1.0-prerelease.19078.2 | 4,336 | 1/28/2019 |