[rgb] fix set_rgb_fill method

The code was wrongly iterating the neopixel, running `fill()` on every
individual pixels.
This commit is contained in:
jonathan nifenecker 2022-06-08 17:07:54 +02:00 committed by Kyle Brown
parent f21fa5edb7
commit 90c4ce99f3

View File

@ -287,10 +287,9 @@ class RGB(Extension):
Takes an RGB or RGBW and displays it on all LEDs/Neopixels
:param rgb: RGB or RGBW
'''
for pixels in self.pixels:
pixels.fill(rgb)
if not self.disable_auto_write:
pixels.show()
self.pixels.fill(rgb)
if not self.disable_auto_write:
self.pixels.show()
def increase_hue(self, step=None):
'''