forked from Makuna/NeoPixelBus
Merge pull request #133 from Makuna/ClearToFix
ClearTo with first and last index doesn't handle a single pixel
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Makuna/NeoPixelBus"
|
"url": "https://github.com/Makuna/NeoPixelBus"
|
||||||
},
|
},
|
||||||
"version": "2.2.2",
|
"version": "2.2.3",
|
||||||
"frameworks": "arduino",
|
"frameworks": "arduino",
|
||||||
"platforms": "*"
|
"platforms": "*"
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=NeoPixelBus by Makuna
|
name=NeoPixelBus by Makuna
|
||||||
version=2.2.2
|
version=2.2.3
|
||||||
author=Michael C. Miller (makuna@live.com)
|
author=Michael C. Miller (makuna@live.com)
|
||||||
maintainer=Michael C. Miller (makuna@live.com)
|
maintainer=Michael C. Miller (makuna@live.com)
|
||||||
sentence=A library that makes controlling NeoPixels (WS2811, WS2812 & SK6812) and DotStars (ADA102) easy.
|
sentence=A library that makes controlling NeoPixels (WS2811, WS2812 & SK6812) and DotStars (ADA102) easy.
|
||||||
|
@@ -211,7 +211,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (first < _countPixels &&
|
if (first < _countPixels &&
|
||||||
last < _countPixels &&
|
last < _countPixels &&
|
||||||
first < last)
|
first <= last)
|
||||||
{
|
{
|
||||||
uint8_t temp[T_COLOR_FEATURE::PixelSize];
|
uint8_t temp[T_COLOR_FEATURE::PixelSize];
|
||||||
uint8_t* pixels = _method.getPixels();
|
uint8_t* pixels = _method.getPixels();
|
||||||
|
Reference in New Issue
Block a user