import asyncio
from pyartnet import ArtNetNode
async def main():
# Run this code in your async function
node = ArtNetNode('192.168.1.93', 6454)
# Create universe 0
universe = node.add_universe(1)
# Add a channel to the universe which consists of 3 values
# Default size of a value is 8Bit (0..255) so this would fill
# the DMX values 1..3 of the universe
chn1 = universe.add_channel(start=1, width=3)
# Fade channel to 255,0,0 in 5s
# The fade will automatically run in the background
chn1.add_fade([100,200,250], 1000)
# this can be used to wait till the fade is complete
await chn1
asyncio.run(main())
if __name__ == '__main__':
pass
seems to me that it would send 3 bytes on the first 3 DMX addresses but my HW receives always 4 bytes:
Did I understand correctly the code? Seems to me there are one more byte always 0 for DMX 4th address. What do I need to send the fading values on the first 3 DMX addresses?
This is the original test code:
seems to me that it would send 3 bytes on the first 3 DMX addresses but my HW receives always 4 bytes:
Did I understand correctly the code? Seems to me there are one more byte always 0 for DMX 4th address. What do I need to send the fading values on the first 3 DMX addresses?