diff --git a/client/main.py b/client/main.py index 541ca58..d0dac3d 100644 --- a/client/main.py +++ b/client/main.py @@ -26,7 +26,7 @@ LEDS_PER_PIXEL = 5 # Global variables for LED strip control 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(): # 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): update_led_strip(tuple(eval(rgb_values_list[5])), pixel, strip) - strip.show() + # strip.show() if __name__ == "__main__": # Connect to Wi-Fi