CCSWE.nanoFramework.NeoPixel 1.1.83

dotnet add package CCSWE.nanoFramework.NeoPixel --version 1.1.83
                    
NuGet\Install-Package CCSWE.nanoFramework.NeoPixel -Version 1.1.83
                    
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="CCSWE.nanoFramework.NeoPixel" Version="1.1.83" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CCSWE.nanoFramework.NeoPixel" Version="1.1.83" />
                    
Directory.Packages.props
<PackageReference Include="CCSWE.nanoFramework.NeoPixel" />
                    
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 CCSWE.nanoFramework.NeoPixel --version 1.1.83
                    
#r "nuget: CCSWE.nanoFramework.NeoPixel, 1.1.83"
                    
#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 CCSWE.nanoFramework.NeoPixel@1.1.83
                    
#: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=CCSWE.nanoFramework.NeoPixel&version=1.1.83
                    
Install as a Cake Addin
#tool nuget:?package=CCSWE.nanoFramework.NeoPixel&version=1.1.83
                    
Install as a Cake Tool

Build License NuGet

CCSWE.nanoFramework.NeoPixel

A fast ESP32 RMT library for controlling LED chipsets (NeoPixel, WS2812B, etc.)

I was originally using the Ws28xx.Esp32 but it was taking 600-700ms to update a strip of 50 LEDs. This was not fast enough for my use case so I set out to find a faster solution.

The NeoPixelStripLowMemory sample code was much faster at 50-60ms to update the same strip so that's where I started. I've also been looking at the FastLED library as I've used that in the past and it is indeed fast.

I've never spent time learning how these LEDs actually work so I'm learning as I go along and would love feedback or contributions from others with more experience in this area.

Usage

See samples for more details.

Initialize the strip

// Configure the number of LEDs
ushort count = 47;

// Adjust the pin number
byte pin = 19;

// Choose the correct driver and color order
var driver = new Ws2812B(ColorOrder.GRB);

// Create the strip
var strip = new NeoPixelStrip(pin, count, driver);

Set the LEDs

// Set all LEDs
strip.Fill(Color.Pink);

for (var i = 0; i < strip.Count; i++)
{
    if (i % 2 == 0)
    {
        // Set an individual LED
        strip.SetLed(i, Color.Blue);
    }
}

// Send the data to update the strip
strip.Update();

Brightness scaling

Both the Fill and SetPixel methods have overloads that allow you to pass a brightness scaling factor. If you will be using the same color for multiple calls then it is more efficient to call ColorConverter.ScaleBrightness(Color, double) directly and use the pre-scaled Color across multiple calls.

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

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on CCSWE.nanoFramework.NeoPixel:

Repository Stars
nanoframework/Samples
🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours
Version Downloads Last Updated
1.1.83 150 7/7/2025
1.1.82 301 6/9/2025
1.1.81 285 6/9/2025
1.1.79 179 4/29/2025
1.1.78 160 4/28/2025
1.1.77 187 4/24/2025
1.1.75 222 4/17/2025
1.1.74 214 4/2/2025
1.1.73 168 3/26/2025
1.1.72 183 3/19/2025
1.1.71 128 3/14/2025
1.1.69 199 3/11/2025
1.1.68 174 3/11/2025
1.1.67 245 3/6/2025
1.1.66 249 3/3/2025
1.1.65 179 2/27/2025
1.1.64 123 2/26/2025
1.1.63 188 2/10/2025
1.1.62 130 2/10/2025
1.1.61 133 2/10/2025
1.1.56 124 2/7/2025
1.1.55 119 2/7/2025
1.1.54 120 2/7/2025
1.1.53 130 2/6/2025
1.1.52 121 2/6/2025
1.1.51 125 2/6/2025
1.1.50 123 2/6/2025
1.1.49 125 2/6/2025
1.1.48 122 2/5/2025
1.1.47 122 2/5/2025
1.1.46 112 2/5/2025
1.1.45 129 2/4/2025
1.1.44 122 2/4/2025
1.1.43 123 2/4/2025
1.1.42 133 2/4/2025
1.1.41 119 2/3/2025
1.1.40 117 2/3/2025
1.1.39 116 2/3/2025
1.1.37 130 2/3/2025
1.1.36 139 2/2/2025
1.1.35 126 2/2/2025
1.1.33 132 2/2/2025
1.1.29 125 1/31/2025
1.1.27 171 1/17/2025
1.1.24 109 1/17/2025
1.1.22 111 1/13/2025
1.1.21 89 1/12/2025
1.1.20 97 1/12/2025
1.1.19 87 1/12/2025
1.1.18 103 1/11/2025
1.0.72 125 1/7/2025
1.0.71 131 12/31/2024
1.0.70 139 12/24/2024
1.0.69 140 12/17/2024
1.0.68 144 12/10/2024
1.0.67 161 12/3/2024
1.0.66 154 11/26/2024
1.0.65 217 10/29/2024
1.0.64 145 10/22/2024
1.0.63 150 10/15/2024
1.0.62 161 10/8/2024
1.0.61 163 10/1/2024
1.0.60 153 9/26/2024
1.0.59 127 9/21/2024
1.0.58 127 9/21/2024
1.0.57 161 9/13/2024
1.0.56 153 8/31/2024
1.0.55 151 8/31/2024
1.0.54 150 8/29/2024
1.0.53 171 8/11/2024
1.0.52 148 8/11/2024
1.0.51 148 8/7/2024
1.0.50 114 8/5/2024
1.0.49 121 8/2/2024
1.0.48 125 8/2/2024
1.0.47 144 7/26/2024
1.0.46 156 7/25/2024
1.0.45 130 7/24/2024
1.0.44 155 7/18/2024
1.0.43 129 7/18/2024
1.0.42 144 7/17/2024
1.0.41 151 7/16/2024
1.0.40 137 7/15/2024
1.0.39 145 7/13/2024
1.0.38 139 7/13/2024
1.0.37 153 7/12/2024
1.0.36 148 7/1/2024
1.0.35 154 6/29/2024
1.0.34 163 6/26/2024
1.0.32 142 6/26/2024
1.0.25 150 6/21/2024
1.0.24 154 6/14/2024
1.0.23 144 6/13/2024
1.0.22 144 6/12/2024
1.0.21 140 6/5/2024
1.0.20 137 6/5/2024
1.0.18 150 6/4/2024
1.0.17 138 6/3/2024
1.0.16 141 6/3/2024
1.0.15 131 6/3/2024
1.0.14 152 6/3/2024
1.0.13 150 5/25/2024
1.0.12 143 5/24/2024
1.0.11 146 5/23/2024
1.0.10 148 5/19/2024
1.0.9 158 5/17/2024
1.0.8 151 5/16/2024
1.0.7 149 5/15/2024
1.0.6 137 5/13/2024
1.0.5 143 5/11/2024
1.0.4 154 5/10/2024
1.0.3 141 5/10/2024
1.0.2 167 4/26/2024
1.0.1 160 4/25/2024
1.0.0 150 4/25/2024
0.3.17 156 4/11/2024
0.3.16 152 4/10/2024
0.3.15 154 4/9/2024
0.3.14 143 4/8/2024
0.3.13 162 4/5/2024
0.3.12 148 4/4/2024
0.3.11 151 4/3/2024
0.3.10 135 3/23/2024
0.3.9 180 2/3/2024
0.3.8 143 2/1/2024
0.3.7 148 1/28/2024
0.3.6 129 1/26/2024
0.3.5 144 1/25/2024
0.3.4 282 11/20/2023
0.3.3 161 11/16/2023
0.3.2 176 11/10/2023
0.3.1 159 11/10/2023
0.3.0 129 11/10/2023
0.2.4 154 11/9/2023
0.2.3 155 11/8/2023
0.2.2 172 11/4/2023
0.2.1 169 11/3/2023
0.2.0 153 11/3/2023
0.1.6 152 11/2/2023
0.1.5 159 11/2/2023
0.1.4 149 11/2/2023
0.1.2 160 11/2/2023
0.1.1 144 11/2/2023
0.1.0 150 11/1/2023