From db280ea7b7ee5be2c8e55fe1ba4a83dea441b7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 20:37:29 +0100 Subject: [PATCH] len dmx channels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/exampleReceiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 72abb40..7f0c279 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -18,7 +18,7 @@ def get_eth0_ip(): debug = True # What DMX channels we want to listen to -dmxChannels = [1,2,3,4,5,6] +dmxChannels = 512 ### ArtNet Config ### artnetBindIp = get_eth0_ip() @@ -48,7 +48,7 @@ while True: # Then print out the data from each channel print("Received data: ", end="") - for i in dmxChannels: + for i in len(dmxChannels): # Lists in python start at 0, so to access a specific DMX channel you have to subtract one print(dmxPacket[i-1], end=" ")