nanoFramework.Iot.Device.Multiplexing
2.0.0-preview.11
Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.11
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 2.0.0-preview.11
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.11" />
<PackageVersion Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.11" />
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" />
paket add nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.11
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 2.0.0-preview.11"
#:package nanoFramework.Iot.Device.Multiplexing@2.0.0-preview.11
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.11&prerelease
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.11&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.35)
- nanoFramework.Runtime.Events (>= 2.0.0-preview.8)
- nanoFramework.System.Device.Gpio (>= 2.0.0-preview.9)
- nanoFramework.System.Threading (>= 2.0.0-preview.6)
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.Charlieplex
This package includes the .NET IoT Core binding Iot.Device.Charlieplex 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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.11 | 103 | 3/6/2026 |
| 2.0.0-preview.4 | 84 | 1/19/2026 |
| 2.0.0-preview.3 | 64 | 1/13/2026 |
| 1.2.862 | 3,732 | 4/2/2025 |
| 1.2.848 | 1,018 | 3/10/2025 |
| 1.2.826 | 1,199 | 2/27/2025 |
| 1.2.813 | 924 | 2/25/2025 |
| 1.2.807 | 351 | 2/25/2025 |
| 1.2.771 | 1,217 | 2/4/2025 |
| 1.2.760 | 989 | 2/1/2025 |
| 1.2.751 | 798 | 1/31/2025 |
| 1.2.715 | 1,267 | 12/30/2024 |
| 1.2.693 | 860 | 12/16/2024 |
| 1.2.670 | 1,260 | 10/23/2024 |
| 1.2.628 | 1,597 | 8/28/2024 |
| 1.2.586 | 1,758 | 7/12/2024 |
| 1.2.557 | 1,451 | 5/29/2024 |
| 1.2.543 | 930 | 5/10/2024 |
| 1.2.423 | 3,866 | 11/9/2023 |
| 1.2.418 | 345 | 11/9/2023 |