From 7c55166e325e7e0d00b1e3b879cd4c2890b69681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 27 Jul 2022 15:29:43 +0200 Subject: [PATCH] fixxed some stuff MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 4396a73..3e132ed 100644 --- a/main.py +++ b/main.py @@ -70,13 +70,13 @@ def strobe(strip, color): strip.show() time.sleep(float(0.05)) -def randomColor(strip): +def randomColorPerLED(strip): for i in range(strip.numPixels()): strip.setPixelColor(i, Color(randint(0, 255), randint(0, 255), randint(0, 255))) strip.show() time.sleep(1) -def randomColorPerLED(strip): +def randomColor(strip): color = Color(randint(0, 255), randint(0, 255), randint(0, 255)) for i in range(strip.numPixels()): strip.setPixelColor(i, color)