From 0e339c25c27464a02d778ae6ddde45f751cf8575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Fri, 16 Feb 2024 19:12:16 +0100 Subject: [PATCH] fixyed neopixel start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.py b/client/main.py index 707b69b..05c5dc8 100644 --- a/client/main.py +++ b/client/main.py @@ -1,6 +1,6 @@ import os import wifi -from neopixel import * +import neopixel import requests import json import time @@ -24,7 +24,7 @@ LEDS_PER_PIXEL = 5 # Global variables for LED strip control global strip -strip = Adafruit_NeoPixel(LED_COUNT, LED_STRIP_PIN, 800000, 10, False) +strip = neopixel.NeoPixel(LED_STRIP_PIN, LED_COUNT) strip.begin() def register_tube():