len dmx channels

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 20:37:29 +01:00
parent e32ff4233e
commit db280ea7b7
1 changed files with 2 additions and 2 deletions

View File

@ -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=" ")