disable NP autoshow
This commit is contained in:
parent
189f0d4bbb
commit
c1951402d7
|
@ -43,7 +43,7 @@ class leds:
|
||||||
|
|
||||||
def __update_leds(self):
|
def __update_leds(self):
|
||||||
self.mcu.neopixel_fill(
|
self.mcu.neopixel_fill(
|
||||||
r=self.ambient_light[0], g=self.ambient_light[1], b=self.ambient_light[2])
|
r=self.ambient_light[0], g=self.ambient_light[1], b=self.ambient_light[2], auto_show=False)
|
||||||
if self.headlight:
|
if self.headlight:
|
||||||
for led in HEADLIGHT_LEDS:
|
for led in HEADLIGHT_LEDS:
|
||||||
self.mcu.neo_pixel_set_value(led, self.headlight * 255, self.headlight * 255,
|
self.mcu.neo_pixel_set_value(led, self.headlight * 255, self.headlight * 255,
|
||||||
|
|
Loading…
Reference in New Issue