nanoFramework.Iot.Device.Multiplexing
2.0.0-preview.59
Prefix Reserved
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.59
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 2.0.0-preview.59
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.59" />
<PackageVersion Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.59" />
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" />
paket add nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.59
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 2.0.0-preview.59"
#:package nanoFramework.Iot.Device.Multiplexing@2.0.0-preview.59
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.59&prerelease
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.59&prerelease
Iot.Device.Multiplexing
Generic helper implementation for pin multiplexing. See ShiftRegister or Sn74hc595.
Usage
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Device.Gpio;
using System.Threading;
using Iot.Device.Multiplexing;
int[] pins = new int[] { 4, 17, 27, 22, 5, 6, 13, 19 };
using IOutputSegment segment = new GpioOutputSegment(pins);
CancellationTokenSource cts = new();
CancellationToken token = cts.Token;
bool controlCRequested = false;
TimeSpan delay = TimeSpan.FromSeconds(5);
WriteLine("Light all LEDs");
segment.TurnOffAll();
for (int i = 0; i < pins.Length; i++)
{
segment.Write(i, 1);
}
WriteLine("Light every other LED");
segment.TurnOffAll();
for (int i = 0; i < pins.Length; i++)
{
segment.Write(i, i % 2);
}
WriteLine("Light every other (other) LED");
segment.TurnOffAll();
for (int i = 0; i < pins.Length; i++)
{
segment.Write(i, (i + 1) % 2);
}
WriteLine("Display binary 128");
segment.TurnOffAll();
for (int i = 0; i < pins.Length; i++)
{
segment.Write(128);
}
segment.TurnOffAll();
WriteLine("Done.");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 2.0.0-preview.49)
- nanoFramework.Runtime.Events (>= 2.0.0-preview.12)
- nanoFramework.System.Device.Gpio (>= 2.0.0-preview.16)
- nanoFramework.System.Threading (>= 2.0.0-preview.11)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on nanoFramework.Iot.Device.Multiplexing:
| Package | Downloads |
|---|---|
|
nanoFramework.Iot.Device.ShiftRegister
This package includes the .NET IoT Core binding Iot.Device.ShiftRegister for .NET nanoFramework C# projects. |
|
|
nanoFramework.Iot.Device.CharacterLcd
This package includes the .NET IoT Core binding Character LCD for .NET nanoFramework C# projects. |
|
|
nanoFramework.Iot.Device.Sn74hc595
This package includes the .NET IoT Core binding Iot.Device.Sn74hc595 for .NET nanoFramework C# projects. |
|
|
nanoFramework.Iot.Device.Mbi5027
This package includes the .NET IoT Core binding Iot.Device.Mbi5027 for .NET nanoFramework C# projects. |
|
|
nanoFramework.Iot.Device.Charlieplex
This package includes the .NET IoT Core binding Iot.Device.Charlieplex for .NET nanoFramework C# projects. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.65 | 39 | 5/18/2026 |
| 2.0.0-preview.59 | 90 | 5/13/2026 |
| 2.0.0-preview.54 | 72 | 5/11/2026 |
| 2.0.0-preview.46 | 109 | 5/4/2026 |
| 2.0.0-preview.42 | 83 | 4/29/2026 |
| 2.0.0-preview.29 | 139 | 4/20/2026 |
| 2.0.0-preview.11 | 159 | 3/6/2026 |
| 2.0.0-preview.4 | 102 | 1/19/2026 |
| 2.0.0-preview.3 | 82 | 1/13/2026 |
| 1.2.862 | 4,141 | 4/2/2025 |
| 1.2.848 | 1,043 | 3/10/2025 |
| 1.2.826 | 1,219 | 2/27/2025 |
| 1.2.813 | 948 | 2/25/2025 |
| 1.2.807 | 375 | 2/25/2025 |
| 1.2.771 | 1,240 | 2/4/2025 |
| 1.2.760 | 1,007 | 2/1/2025 |
| 1.2.751 | 818 | 1/31/2025 |
| 1.2.715 | 1,304 | 12/30/2024 |
| 1.2.693 | 882 | 12/16/2024 |
| 1.2.670 | 1,284 | 10/23/2024 |