nanoFramework.Iot.Device.Multiplexing
2.0.0-preview.77
Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.77
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 2.0.0-preview.77
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.77" />
<PackageVersion Include="nanoFramework.Iot.Device.Multiplexing" Version="2.0.0-preview.77" />
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" />
paket add nanoFramework.Iot.Device.Multiplexing --version 2.0.0-preview.77
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 2.0.0-preview.77"
#:package nanoFramework.Iot.Device.Multiplexing@2.0.0-preview.77
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.77&prerelease
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=2.0.0-preview.77&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. |
|---|---|
| .NETnanoFramework | netnano1.0 is compatible. |
-
.NETnanoFramework 1.0
- nanoFramework.CoreLibrary (>= 2.0.0-preview.52)
- nanoFramework.Runtime.Events (>= 2.0.0-preview.13)
- nanoFramework.System.Device.Gpio (>= 2.0.0-preview.18)
- nanoFramework.System.Threading (>= 2.0.0-preview.14)
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.77 | 185 | 5/27/2026 |
| 2.0.0-preview.70 | 98 | 5/20/2026 |
| 2.0.0-preview.65 | 100 | 5/18/2026 |
| 2.0.0-preview.59 | 109 | 5/13/2026 |
| 2.0.0-preview.54 | 76 | 5/11/2026 |
| 2.0.0-preview.46 | 116 | 5/4/2026 |
| 2.0.0-preview.42 | 90 | 4/29/2026 |
| 2.0.0-preview.29 | 155 | 4/20/2026 |
| 2.0.0-preview.11 | 167 | 3/6/2026 |
| 2.0.0-preview.4 | 107 | 1/19/2026 |
| 2.0.0-preview.3 | 87 | 1/13/2026 |
| 1.2.862 | 4,328 | 4/2/2025 |
| 1.2.848 | 1,052 | 3/10/2025 |
| 1.2.826 | 1,227 | 2/27/2025 |
| 1.2.813 | 958 | 2/25/2025 |
| 1.2.807 | 384 | 2/25/2025 |
| 1.2.771 | 1,248 | 2/4/2025 |
| 1.2.760 | 1,019 | 2/1/2025 |
| 1.2.751 | 828 | 1/31/2025 |
| 1.2.715 | 1,312 | 12/30/2024 |