Skip to content

Using set_values #47

@tmolberg

Description

@tmolberg

Hi,

Probably not an issue with the project but just wanted to check if im doing something wrong trying to set an explicite value and not a fade.

For reference, I have a PKnight Artnet4 - Cr041 (probably one of cheapest artnet controllers avaliable :D)

the fade function works as intended as shown in your example. If I on the other hand try to use the set_values function towards a device, nothing seems to happen. Changing the fade time to 0, seems to do something along the lines of what I want, it just feels wrong when there is a specific function to set the value directly.

I had a look in the issues list and found another reference of a person having issues using the set_values function. The example below does not seem to do anything.

import asyncio, time
from pyartnet import ArtNetNode

async def main():
    node = ArtNetNode('192.168.100.22', 6454, start_refresh_task=True)
    universe = node.add_universe(0)
    channel = universe.add_channel(start=1, width=6)
    channel.set_values([255,255,255,255,255,0]) #on this specific device, the last channel is used for special effects (strobes)
    await channel
    asyncio.sleep(1)
    channel.set_values([0,0,0,0,0,0])
    
asyncio.run(main())

Have I misunderstood how the set_values function should work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions