From cf6e19a2a6dc2ae2dfcafb30872933d308aac165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 05:15:24 +0100 Subject: [PATCH] strip type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index ec2736e..d37ad23 100644 --- a/client/main.py +++ b/client/main.py @@ -25,8 +25,9 @@ global LEDS_PER_PIXEL LEDS_PER_PIXEL = 5 # Global variables for LED strip control +STRIP_TYPE = ws.2812B_STRIP_RGB global strip -strip = Adafruit_NeoPixel(LED_COUNT, 18, 800000, 5, False, 255, 0, ws.2812B_STRIP_RGB) +strip = Adafruit_NeoPixel(LED_COUNT, 18, 800000, 5, False, 255, 0, STRIP_TYPE) strip.begin() def register_tube():