[rgb] fix set_rgb_fill method
The code was wrongly iterating the neopixel, running `fill()` on every individual pixels.
This commit is contained in:
parent
f21fa5edb7
commit
90c4ce99f3
@ -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):
|
||||
'''
|
||||
|
Loading…
x
Reference in New Issue
Block a user