nanoFramework.Iot.Device.Multiplexing 1.2.423

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Multiplexing --version 1.2.423
NuGet\Install-Package nanoFramework.Iot.Device.Multiplexing -Version 1.2.423
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.423" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Iot.Device.Multiplexing --version 1.2.423
#r "nuget: nanoFramework.Iot.Device.Multiplexing, 1.2.423"
#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.
// Install nanoFramework.Iot.Device.Multiplexing as a Cake Addin
#addin nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.2.423

// Install nanoFramework.Iot.Device.Multiplexing as a Cake Tool
#tool nuget:?package=nanoFramework.Iot.Device.Multiplexing&version=1.2.423

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 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.ShiftRegister for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.Sn74hc595 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.Sn74hc595 for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.CharacterLcd The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Character LCD for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.Charlieplex The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.Charlieplex for .NET nanoFramework C# projects.

nanoFramework.Iot.Device.Mbi5027 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes the .NET IoT Core binding Iot.Device.Mbi5027 for .NET nanoFramework C# projects.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on nanoFramework.Iot.Device.Multiplexing:

Repository Stars
nanoframework/nanoFramework.IoT.Device
📦 This repo includes .NET nanoFramework implementations for various sensors, chips, displays, hats and drivers
Version Downloads Last updated
1.2.423 2,418 11/9/2023
1.2.418 161 11/9/2023
1.2.415 467 11/8/2023
1.2.414 103 11/8/2023
1.2.325 2,852 5/24/2023
1.2.300 1,419 5/10/2023
1.2.295 900 5/3/2023
1.2.285 457 4/5/2023
1.2.270 1,341 3/15/2023
1.2.201 3,980 12/28/2022
1.2.141 5,336 10/25/2022
1.2.120 4,968 10/12/2022
1.2.112 2,826 10/8/2022
1.2.93 5,717 9/22/2022
1.2.84 2,436 9/15/2022
1.2.82 2,159 9/14/2022
1.1.113.2032 5,157 6/23/2022
1.1.1 6,757 4/14/2022
1.0.300 2,704 3/30/2022
1.0.277-preview.125 159 3/25/2022
1.0.277-preview.99 283 3/10/2022
1.0.277-preview.98 137 3/8/2022
1.0.277-preview.77 125 2/18/2022
1.0.277-preview.60 130 2/4/2022
1.0.277-preview.41 129 1/28/2022
1.0.277-preview.32 128 1/27/2022
1.0.277-preview.17 129 1/24/2022
1.0.277-preview.15 121 1/21/2022
1.0.277-preview.1 131 1/11/2022
1.0.259 303 12/9/2021
1.0.160 294 9/6/2021