VOOZH about

URL: https://www.nuget.org/packages/nanoFramework.Iot.Device.Sn74hc595/

⇱ NuGet Gallery | nanoFramework.Iot.Device.Sn74hc595 1.2.907




👁 Image
nanoFramework.Iot.Device.Sn74hc595 1.2.907

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Sn74hc595 --version 1.2.907
 
 
NuGet\Install-Package nanoFramework.Iot.Device.Sn74hc595 -Version 1.2.907
 
 
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.Sn74hc595" Version="1.2.907" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Sn74hc595" Version="1.2.907" />
 
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Sn74hc595" />
 
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.Sn74hc595 --version 1.2.907
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.Sn74hc595, 1.2.907"
 
 
#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.
#:package nanoFramework.Iot.Device.Sn74hc595@1.2.907
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Sn74hc595&version=1.2.907
 
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Sn74hc595&version=1.2.907
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SN74HC595 -- 8-bit shift register

SN74HC595 is a 8-bit shift register. Per the datasheet, the SN74HC595 is a "8-Bit Shift Register With 3-State Output Register". The is based on and is compatible with the more general binding. The Sn74hc595 binding adds the ability clear the storage register with a single pin. Either binding can be used to control the SN74HC595.

👁 shift-register

The abstracts the interaction with the data register, the register clock and other shift register capabilities. The binding enables interaction via GPIO or SPI.

Documentation

Usage

The following example code demonstrates how to use the SN74HC595 with its most basic functions.

Sn74hc595 sr = new(Sn74hc595PinMapping.Minimal);

// Light up three of first four LEDs
sr.ShiftBit(1);
sr.ShiftBit(1);
sr.ShiftBit(0);
sr.ShiftBit(1);
sr.Latch();

// Display for 1s
Thread.Sleep(1000);

// Write to all 8 registers with a byte value
// ShiftByte latches data by default
sr.ShiftByte(0b_1000_1101);

The following diagram demonstrates the required wiring for the Minimal pin mapping. In particular, OE must be wired to ground, and SRCLR must be wired high.

The following example demonstrates using additional features and requires different wiring.

Sn74hc595 sr = new(Sn74hc595PinMapping.Complete);

// Write to all 8 registers with a byte value
// ShiftByte latches data by default
sr.ShiftByte(0b_1000_1101);

// Display for 1s
Thread.Sleep(1000);

// disable output temporarily
sr.OutputEnable = false;

// Display for 1s
Thread.Sleep(1000);

// re-enable output
sr.OutputEnable = true;

// clear storage before writing new values
sr.ClearStorage();

// Light up three of first four LEDs
sr.ShiftBit(1);
sr.ShiftBit(1);
sr.ShiftBit(0);
sr.ShiftBit(1);
sr.Latch();

The following diagram demonstrates the required wiring for the Complete pin mapping.

If you want to use SPI, see the binding, which includes more information on SPI.

Product Versions Compatible and additional computed target framework versions.
.NET Framework net net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.85 47 6/1/2026
2.0.0-preview.80 52 5/27/2026
2.0.0-preview.73 52 5/20/2026
2.0.0-preview.69 56 5/18/2026
2.0.0-preview.62 59 5/13/2026
2.0.0-preview.49 48 5/4/2026
2.0.0-preview.45 57 4/29/2026
2.0.0-preview.37 53 4/22/2026
2.0.0-preview.32 62 4/20/2026
2.0.0-preview.16 78 3/10/2026
1.2.907 287 10/2/2025
1.2.869 330 4/2/2025
1.2.864 303 4/2/2025
1.2.852 326 3/11/2025
1.2.835 279 2/27/2025
1.2.833 262 2/27/2025
1.2.829 260 2/27/2025
1.2.822 262 2/26/2025
1.2.775 269 2/4/2025
1.2.772 246 2/4/2025
Loading failed