removed pixel order entirely and also enable auto write+commented strip.show

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 15:13:35 +01:00
parent 5555ad430c
commit 4da42e8782
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ LEDS_PER_PIXEL = 5
# Global variables for LED strip control # Global variables for LED strip control
global strip global strip
strip = neopixel.NeoPixel(pin = board.D18, n = LED_COUNT, auto_write = False, pixel_order = neopixel.GRBW) strip = neopixel.NeoPixel(pin = board.D18, n = LED_COUNT, auto_write = True)
def register_tube(): def register_tube():
# Register or reauthenticate the tube with the server # Register or reauthenticate the tube with the server
@ -85,7 +85,7 @@ def on_message(mqttc, obj, msg):
for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6): for pixel in range(LEDS_PER_PIXEL*5, LEDS_PER_PIXEL*6):
update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip)
strip.show() # strip.show()
if __name__ == "__main__": if __name__ == "__main__":
# Connect to Wi-Fi # Connect to Wi-Fi