nanoFramework.Iot.Device.Multiplexing
1.0.277-preview.98
Prefix Reserved
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 1.0.277-preview.98
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 1.0.277-preview.98
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" Version="1.0.277-preview.98" />
<PackageVersion Include="nanoFramework.Iot.Device.Multiplexing" Version="1.0.277-preview.98" />
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" />
paket add nanoFramework.Iot.Device.Multiplexing --version 1.0.277-preview.98
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 1.0.277-preview.98"
#:package nanoFramework.Iot.Device.Multiplexing@1.0.277-preview.98
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.0.277-preview.98&prerelease
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.0.277-preview.98&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 (>= 1.12.0-preview.9)
- nanoFramework.Runtime.Events (>= 1.10.0-preview.4)
- nanoFramework.System.Device.Gpio (>= 1.0.3-preview.14)
- nanoFramework.System.Threading (>= 1.0.4-preview.16)
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 |
---|---|---|
1.2.862 | 1,880 | 4/2/2025 |
1.2.848 | 777 | 3/10/2025 |
1.2.826 | 896 | 2/27/2025 |
1.2.813 | 658 | 2/25/2025 |
1.2.807 | 231 | 2/25/2025 |
1.2.771 | 961 | 2/4/2025 |
1.2.760 | 674 | 2/1/2025 |
1.2.751 | 567 | 1/31/2025 |
1.2.715 | 984 | 12/30/2024 |
1.2.693 | 617 | 12/16/2024 |
1.2.670 | 1,058 | 10/23/2024 |
1.2.628 | 1,306 | 8/28/2024 |
1.2.586 | 1,375 | 7/12/2024 |
1.2.557 | 1,212 | 5/29/2024 |
1.2.543 | 705 | 5/10/2024 |
1.2.423 | 3,471 | 11/9/2023 |
1.2.418 | 248 | 11/9/2023 |
1.2.415 | 585 | 11/8/2023 |
1.2.414 | 165 | 11/8/2023 |
1.2.325 | 4,325 | 5/24/2023 |
1.2.300 | 1,725 | 5/10/2023 |
1.2.295 | 1,110 | 5/3/2023 |
1.2.285 | 575 | 4/5/2023 |
1.2.270 | 1,561 | 3/15/2023 |
1.2.201 | 5,244 | 12/28/2022 |
1.2.141 | 5,755 | 10/25/2022 |
1.2.120 | 5,316 | 10/12/2022 |
1.2.112 | 3,086 | 10/8/2022 |
1.2.93 | 6,081 | 9/22/2022 |
1.2.84 | 2,667 | 9/15/2022 |
1.2.82 | 2,348 | 9/14/2022 |
1.1.113.2032 | 5,396 | 6/23/2022 |
1.1.1 | 7,079 | 4/14/2022 |
1.0.300 | 2,931 | 3/30/2022 |
1.0.277-preview.125 | 265 | 3/25/2022 |
1.0.277-preview.99 | 384 | 3/10/2022 |
1.0.277-preview.98 | 255 | 3/8/2022 |
1.0.277-preview.77 | 248 | 2/18/2022 |
1.0.277-preview.60 | 236 | 2/4/2022 |
1.0.277-preview.41 | 252 | 1/28/2022 |
1.0.277-preview.32 | 226 | 1/27/2022 |
1.0.277-preview.17 | 233 | 1/24/2022 |
1.0.277-preview.15 | 237 | 1/21/2022 |
1.0.277-preview.1 | 250 | 1/11/2022 |
1.0.259 | 431 | 12/9/2021 |
1.0.160 | 425 | 9/6/2021 |