def main_artsync(universe, ip='127.0.0.1', tmp=5, pause=5):
    target_ip = ip
    packet_size = 512
    port = 6454
    a = StupidArtnet(target_ip, port, universe, packet_size)
    anim = Animation(filename, a)
    anim.anime_pause_artsync(Animation.anime_1, tmp, pause)
示例#2
0
def main_artsync(universe1, universe2, ip='127.0.0.1', tmp=0.5):
    target_ip = ip
    packet_size = 512
    port = 6454
    a1 = StupidArtnet(target_ip, port, universe1, packet_size)
    a2 = StupidArtnet(target_ip, port, universe2, packet_size)
    anim = Animation(filename, a1, a2)
    anim.anime_artsync(Animation.anime_1, tmp)
示例#3
0
def main_no_artsync(universe1,
                    universe2,
                    ip1='127.0.0.1',
                    ip2='127.0.0.1',
                    tmp=0.5):
    packet_size = 512
    port = 6454
    a1 = StupidArtnet(ip1, port, universe1, packet_size)
    a2 = StupidArtnet(ip2, port, universe2, packet_size)
    anim = Animation(filename, a1, a2)
    anim.anime_noartsync(Animation.anime_1, tmp)
示例#4
0
def main_artsync(universe,
                 start_channel,
                 end_channel,
                 ip='127.0.0.1',
                 tmp=0.5):
    target_ip = ip
    packet_size = 512
    port = 6454
    a = StupidArtnet(target_ip, port, universe, packet_size)
    anim = Animation(filename, a)
    anim.anime_artsync(Animation.anime_2, tmp, start_channel, end_channel)
def main_artsync(universe, start_channel, end_channel, ip='127.0.0.1', tmp=5):
    target_ip = ip
    packet_size = 512
    port = 6454
    a = StupidArtnet(target_ip, port, universe, packet_size)
    packet = Animation.anime_2(packet_size, start_channel, end_channel)
    a.set(packet[0])
    file.write(StupidArtnet.print_object_and_packet(a))
    group = ArtNetGroup(a)
    group.start(True)
    time.sleep(tmp)
    group.stop()
    group.set(bytearray(512))
    group.show(True)