From a3624eed6eb09113fbc535b075e1c919b7fee065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 17:14:28 +0100 Subject: [PATCH] added global rgb_values_list for start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/main.py b/client/main.py index b28567a..c1402e4 100644 --- a/client/main.py +++ b/client/main.py @@ -31,6 +31,8 @@ if __name__ == "__main__": mqttc.on_message = on_message mqttc.loop_start() + global rgb_values_list + rgb_values_list = eval("['[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]', '[0, 0, 0]']") while True: update_led_strip(rgb_values_list, strip) time.sleep(0.5)