adafruit / Adafruit_NeoPixel

Arduino library for controlling single-wire LED pixels (NeoPixel, WS2812, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add new method copyPixelColor

lpatiny opened this issue · comments

In some cases you would like to copy a color from one pixel to another. If the brightness is not full there is some artifacts and after copying couple of times the color completely disappear.

In order to avoid this problem I propose to add a new method copyPixelColor

Something like

https://github.com/Hackuarium/esp32-c3/blob/fbde0087d2bee6eaba2ff8cb5e425c29093c7b4a/src/pixels/pixels.cpp#L127-L133

But directly in the library and dealing correctly with the presence of white.

If you think this can be useful I could try to make a PR (but I'm more a javascript guy than a Cpp).