[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
|
Takes an RGB or RGBW and displays it on all LEDs/Neopixels
|
||||||
:param rgb: RGB or RGBW
|
:param rgb: RGB or RGBW
|
||||||
'''
|
'''
|
||||||
for pixels in self.pixels:
|
self.pixels.fill(rgb)
|
||||||
pixels.fill(rgb)
|
if not self.disable_auto_write:
|
||||||
if not self.disable_auto_write:
|
self.pixels.show()
|
||||||
pixels.show()
|
|
||||||
|
|
||||||
def increase_hue(self, step=None):
|
def increase_hue(self, step=None):
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user