parent
e32ff4233e
commit
db280ea7b7
|
@ -18,7 +18,7 @@ def get_eth0_ip():
|
||||||
debug = True
|
debug = True
|
||||||
|
|
||||||
# What DMX channels we want to listen to
|
# What DMX channels we want to listen to
|
||||||
dmxChannels = [1,2,3,4,5,6]
|
dmxChannels = 512
|
||||||
|
|
||||||
### ArtNet Config ###
|
### ArtNet Config ###
|
||||||
artnetBindIp = get_eth0_ip()
|
artnetBindIp = get_eth0_ip()
|
||||||
|
@ -48,7 +48,7 @@ while True:
|
||||||
|
|
||||||
# Then print out the data from each channel
|
# Then print out the data from each channel
|
||||||
print("Received data: ", end="")
|
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
|
# Lists in python start at 0, so to access a specific DMX channel you have to subtract one
|
||||||
print(dmxPacket[i-1], end=" ")
|
print(dmxPacket[i-1], end=" ")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue