nanoFramework.Iot.Device.Multiplexing 1.2.862

Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 1.2.862
                    
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 1.2.862
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" Version="1.2.862" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Multiplexing" Version="1.2.862" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Multiplexing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Multiplexing --version 1.2.862
                    
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 1.2.862"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.2.862
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.2.862
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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,168 4/2/2025
1.2.848 664 3/10/2025
1.2.826 734 2/27/2025
1.2.813 567 2/25/2025
1.2.807 189 2/25/2025
1.2.771 824 2/4/2025
1.2.760 586 2/1/2025
1.2.751 470 1/31/2025
1.2.715 873 12/30/2024
1.2.693 527 12/16/2024
1.2.670 967 10/23/2024
1.2.628 1,175 8/28/2024
1.2.586 1,192 7/12/2024
1.2.557 1,094 5/29/2024
1.2.543 613 5/10/2024
1.2.423 3,225 11/9/2023
1.2.418 235 11/9/2023
1.2.415 549 11/8/2023
1.2.414 151 11/8/2023
1.2.325 4,094 5/24/2023
1.2.300 1,609 5/10/2023
1.2.295 1,026 5/3/2023
1.2.285 539 4/5/2023
1.2.270 1,478 3/15/2023
1.2.201 4,993 12/28/2022
1.2.141 5,597 10/25/2022
1.2.120 5,188 10/12/2022
1.2.112 2,975 10/8/2022
1.2.93 5,949 9/22/2022
1.2.84 2,584 9/15/2022
1.2.82 2,277 9/14/2022
1.1.113.2032 5,332 6/23/2022
1.1.1 7,008 4/14/2022
1.0.300 2,856 3/30/2022
1.0.277-preview.125 216 3/25/2022
1.0.277-preview.99 343 3/10/2022
1.0.277-preview.98 200 3/8/2022
1.0.277-preview.77 193 2/18/2022
1.0.277-preview.60 191 2/4/2022
1.0.277-preview.41 199 1/28/2022
1.0.277-preview.32 185 1/27/2022
1.0.277-preview.17 190 1/24/2022
1.0.277-preview.15 179 1/21/2022
1.0.277-preview.1 196 1/11/2022
1.0.259 380 12/9/2021
1.0.160 375 9/6/2021