CCSWE.nanoFramework.NeoPixel 1.1.86

dotnet add package CCSWE.nanoFramework.NeoPixel --version 1.1.86
                    
NuGet\Install-Package CCSWE.nanoFramework.NeoPixel -Version 1.1.86
                    
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.86" />
                    
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.86" />
                    
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.86
                    
#r "nuget: CCSWE.nanoFramework.NeoPixel, 1.1.86"
                    
#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.86
                    
#: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.86
                    
Install as a Cake Addin
#tool nuget:?package=CCSWE.nanoFramework.NeoPixel&version=1.1.86
                    
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.86 156 11/6/2025
1.1.84 135 10/3/2025
1.1.83 232 7/7/2025
1.1.82 355 6/9/2025
1.1.81 315 6/9/2025
1.1.79 218 4/29/2025
1.1.78 198 4/28/2025
1.1.77 219 4/24/2025
1.1.75 261 4/17/2025
1.1.74 242 4/2/2025
1.1.73 207 3/26/2025
1.1.72 223 3/19/2025
1.1.71 156 3/14/2025
1.1.69 241 3/11/2025
1.1.68 203 3/11/2025
1.1.67 285 3/6/2025
1.1.66 266 3/3/2025
1.1.65 217 2/27/2025
1.1.64 152 2/26/2025
1.1.63 220 2/10/2025
1.1.62 161 2/10/2025
1.1.61 162 2/10/2025
1.1.56 143 2/7/2025
1.1.55 138 2/7/2025
1.1.54 159 2/7/2025
1.1.53 156 2/6/2025
1.1.52 159 2/6/2025
1.1.51 163 2/6/2025
1.1.50 151 2/6/2025
1.1.49 163 2/6/2025
1.1.48 160 2/5/2025
1.1.47 160 2/5/2025
1.1.46 149 2/5/2025
1.1.45 155 2/4/2025
1.1.44 159 2/4/2025
1.1.43 155 2/4/2025
1.1.42 153 2/4/2025
1.1.41 161 2/3/2025
1.1.40 156 2/3/2025
1.1.39 143 2/3/2025
1.1.37 168 2/3/2025
1.1.36 167 2/2/2025
1.1.35 166 2/2/2025
1.1.33 168 2/2/2025
1.1.29 155 1/31/2025
1.1.27 209 1/17/2025
1.1.24 150 1/17/2025
1.1.22 136 1/13/2025
1.1.21 130 1/12/2025
1.1.20 137 1/12/2025
1.1.19 127 1/12/2025
1.1.18 141 1/11/2025
1.0.72 169 1/7/2025
1.0.71 165 12/31/2024
1.0.70 168 12/24/2024
1.0.69 171 12/17/2024
1.0.68 183 12/10/2024
1.0.67 200 12/3/2024
1.0.66 190 11/26/2024
1.0.65 260 10/29/2024
1.0.64 181 10/22/2024
1.0.63 175 10/15/2024
1.0.62 206 10/8/2024
1.0.61 200 10/1/2024
1.0.60 191 9/26/2024
1.0.59 164 9/21/2024
1.0.58 154 9/21/2024
1.0.57 199 9/13/2024
1.0.56 179 8/31/2024
1.0.55 179 8/31/2024
1.0.54 188 8/29/2024
1.0.53 211 8/11/2024
1.0.52 184 8/11/2024
1.0.51 187 8/7/2024
1.0.50 153 8/5/2024
1.0.49 161 8/2/2024
1.0.48 154 8/2/2024
1.0.47 184 7/26/2024
1.0.46 195 7/25/2024
1.0.45 166 7/24/2024
1.0.44 189 7/18/2024
1.0.43 156 7/18/2024
1.0.42 181 7/17/2024
1.0.41 180 7/16/2024
1.0.40 166 7/15/2024
1.0.39 180 7/13/2024
1.0.38 176 7/13/2024
1.0.37 178 7/12/2024
1.0.36 179 7/1/2024
1.0.35 190 6/29/2024
1.0.34 200 6/26/2024
1.0.32 179 6/26/2024
1.0.25 176 6/21/2024
1.0.24 194 6/14/2024
1.0.23 183 6/13/2024
1.0.22 182 6/12/2024
1.0.21 178 6/5/2024
1.0.20 167 6/5/2024
1.0.18 186 6/4/2024
1.0.17 171 6/3/2024
1.0.16 175 6/3/2024
1.0.15 167 6/3/2024
1.0.14 185 6/3/2024
1.0.13 187 5/25/2024
1.0.12 169 5/24/2024
1.0.11 184 5/23/2024
1.0.10 188 5/19/2024
1.0.9 187 5/17/2024
1.0.8 177 5/16/2024
1.0.7 177 5/15/2024
1.0.6 166 5/13/2024
1.0.5 181 5/11/2024
1.0.4 192 5/10/2024
1.0.3 179 5/10/2024
1.0.2 194 4/26/2024
1.0.1 187 4/25/2024
1.0.0 199 4/25/2024
0.3.17 193 4/11/2024
0.3.16 192 4/10/2024
0.3.15 191 4/9/2024
0.3.14 169 4/8/2024
0.3.13 188 4/5/2024
0.3.12 186 4/4/2024
0.3.11 187 4/3/2024
0.3.10 176 3/23/2024
0.3.9 217 2/3/2024
0.3.8 167 2/1/2024
0.3.7 185 1/28/2024
0.3.6 166 1/26/2024
0.3.5 180 1/25/2024
0.3.4 300 11/20/2023
0.3.3 190 11/16/2023
0.3.2 207 11/10/2023
0.3.1 190 11/10/2023
0.3.0 142 11/10/2023
0.2.4 186 11/9/2023
0.2.3 185 11/8/2023
0.2.2 194 11/4/2023
0.2.1 202 11/3/2023
0.2.0 187 11/3/2023
0.1.6 183 11/2/2023
0.1.5 190 11/2/2023
0.1.4 171 11/2/2023
0.1.2 191 11/2/2023
0.1.1 174 11/2/2023
0.1.0 181 11/1/2023