nanoFramework.Iot.Device.Ws28xx
1.2.631
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Ws28xx --version 1.2.631
NuGet\Install-Package nanoFramework.Iot.Device.Ws28xx -Version 1.2.631
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.Ws28xx" Version="1.2.631" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nanoFramework.Iot.Device.Ws28xx --version 1.2.631
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.Ws28xx, 1.2.631"
#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.Ws28xx as a Cake Addin #addin nuget:?package=nanoFramework.Iot.Device.Ws28xx&version=1.2.631 // Install nanoFramework.Iot.Device.Ws28xx as a Cake Tool #tool nuget:?package=nanoFramework.Iot.Device.Ws28xx&version=1.2.631
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ws28xx/WS2812B/WS2815B/WS2808/SK6812/Neo pixel using SPI - LED drivers
This binding allows you to update the RGB LEDs on Ws28xx and based strips and matrices.
To see how to use the binding in code, see the sample.
Documentation
- WS2812B: Datasheet
- WS2815B: Datasheet
- WS2808: Datasheet
- SK6812: Datasheet
- Neo pixels guide
- Neo pixels x8 stick
Board
WS2812B
Usage
using System;
using System.Collections.Generic;
using System.Device.Spi;
using System.Drawing;
using Iot.Device.Graphics;
using Iot.Device.Ws28xx;
// Configure the count of pixels
const int Count = 8;
Console.Clear();
// Must specify pin functions on ESP32
Configuration.SetPinFunction(23, DeviceFunction.SPI2_MOSI);
Configuration.SetPinFunction(19, DeviceFunction.SPI2_MISO);
Configuration.SetPinFunction(18, DeviceFunction.SPI2_CLOCK);
Configuration.SetPinFunction(22, DeviceFunction.ADC1_CH10);
// Using VSPI on bus 2 for ESP32 and pin 22 for chipselect
SpiConnectionSettings settings = new(2, 22)
{
ClockFrequency = 2_400_000,
Mode = SpiMode.Mode0,
DataBitLength = 8
};
using SpiDevice spi = SpiDevice.Create(settings);
Ws28xx neo = new Ws2808(spi, count);
//Ws28xx neo = new Ws2812b(spi, Count);
while (true)
{
Rainbow(neo, Count);
System.Threading.Thread.Sleep(100);
}
void Rainbow(Ws28xx neo, int count, int iterations = 1)
{
BitmapImage img = neo.Image;
for (var i = 0; i < 255 * iterations; i++)
{
for (var j = 0; j < count; j++)
{
img.SetPixel(j, 0, Wheel((i + j) & 255));
}
neo.Update();
}
}
Product | Versions 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.
-
- nanoFramework.CoreLibrary (>= 1.15.5)
- nanoFramework.Graphics.Core (>= 1.2.15)
- nanoFramework.System.Device.Gpio (>= 1.1.41)
- nanoFramework.System.Device.Spi (>= 1.3.52)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on nanoFramework.Iot.Device.Ws28xx:
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.673 | 166 | 10/23/2024 |
1.2.665 | 104 | 10/16/2024 |
1.2.651 | 172 | 9/27/2024 |
1.2.631 | 214 | 8/28/2024 |
1.2.580 | 357 | 6/28/2024 |
1.2.570 | 160 | 6/14/2024 |
1.2.560 | 192 | 5/29/2024 |
1.2.548 | 192 | 5/15/2024 |
1.2.436 | 1,003 | 11/10/2023 |
1.2.329 | 1,263 | 5/26/2023 |
1.2.316 | 422 | 5/16/2023 |
1.2.313 | 131 | 5/12/2023 |
1.2.308 | 159 | 5/11/2023 |
1.2.304 | 157 | 5/10/2023 |
1.2.297 | 184 | 5/3/2023 |
1.2.212 | 1,141 | 1/5/2023 |
1.2.203 | 570 | 12/28/2022 |
1.2.159 | 571 | 11/14/2022 |
1.2.153 | 388 | 11/5/2022 |
1.2.141 | 404 | 10/25/2022 |
1.2.122 | 513 | 10/12/2022 |
1.2.114 | 444 | 10/8/2022 |
1.2.95 | 503 | 9/22/2022 |
1.2.87 | 839 | 9/15/2022 |
1.2.73 | 396 | 9/8/2022 |
1.2.5 | 831 | 7/13/2022 |
1.1.141.41205 | 438 | 7/6/2022 |
1.1.118.19693 | 445 | 6/24/2022 |
1.1.116.8772 | 414 | 6/24/2022 |
1.1.58.10097 | 451 | 5/23/2022 |
1.1.27 | 476 | 4/26/2022 |
1.1.20 | 431 | 4/21/2022 |
1.1.7 | 446 | 4/18/2022 |
1.1.1 | 430 | 4/14/2022 |
1.0.300 | 447 | 4/1/2022 |
1.0.288-preview.118 | 136 | 3/28/2022 |
1.0.288-preview.113 | 124 | 3/25/2022 |
1.0.288-preview.110 | 116 | 3/25/2022 |
1.0.288-preview.73 | 135 | 2/25/2022 |
1.0.288-preview.48 | 139 | 2/4/2022 |
1.0.288-preview.42 | 134 | 1/31/2022 |
1.0.288-preview.22 | 129 | 1/27/2022 |
1.0.288-preview.20 | 132 | 1/27/2022 |
1.0.288-preview.16 | 144 | 1/27/2022 |
1.0.279 | 175 | 1/14/2022 |
1.0.272 | 162 | 1/10/2022 |
1.0.270 | 266 | 1/6/2022 |
1.0.259 | 312 | 12/9/2021 |
1.0.250 | 298 | 12/4/2021 |
1.0.248 | 4,459 | 11/24/2021 |
1.0.226 | 377 | 10/24/2021 |