Juerd Waalboer cc17ec6fa1 ESP32 i2s: instead of runtime exception, silently upgrade pixelCount (#459)
Fixes #457

This workaround, compared to the old implementation of throwing an exception,
is simpler, makes the compiled program 260 smaller, and unbreaks existing code
that uses a pixel count of 1 that used to work prior to 2cce77e9 (v2.6.2).

This fix basically does the same thing as the recommended fix on the caller
side, except without bothering the caller. It does make `.GetPixelCount()`
return 2 instead of the provided number of pixels, but the resulting program is
arguably less broken than it is with the failing check at construction, and not
likely to really be much of an issue anyway.
2021-04-05 16:05:46 -07:00
2019-10-10 10:01:13 -07:00
2021-03-03 16:42:12 -08:00
2018-12-10 12:17:52 -08:00
2014-10-06 11:42:31 -07:00
2018-01-22 14:22:56 -08:00
2021-03-13 15:23:20 -08:00
2021-03-21 14:48:56 -07:00
2021-03-21 14:48:56 -07:00
2020-12-26 09:54:21 -08:00

NeoPixelBus

Donate

Arduino NeoPixel library

A library to control one wire protocol RGB and RGBW leds like APA106, SK6812, WS2811, WS2812 and WS2813 that are commonly refered to as NeoPixels and two wire protocol RGB like Lpd8806, APA102 and SK9822 commonly refered to as DotStars. Supports most Arduino platforms.

Please read this best practices link before connecting your NeoPixels, it will save you a lot of time and effort.
Adafruit NeoPixel Best Practices

For quick questions and support:

For bugs, make sure there isn't an active issue and then create one.

Why this library and not FastLED or some other library?

See Why this Library in the Wiki.

Documentation

See Wiki

Installing This Library (prefered, you just want to use it)

Open the Library Manager and search for "NeoPixelBus by Makuna" and install

Installing This Library From GitHub (advanced, you want to contribute)

Create a directory in your Arduino\Library folder named "NeoPixelBus" Clone (Git) this project into that folder.
It should now show up in the import list when you restart Arduino IDE.

S
Description
An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as the GitHub Issues feature is used for bug tracking.
Readme
7.8 MiB
Languages
C++ 89.5%
C 10.5%