void SendDummyData()
    {
        var packet = new ArtnetDmx(0);

        packet.setChannel(channel, value);
        msgBytes       = packet.toBytes();
        pendingMessage = true;
    }
Exemple #2
0
    private static void _fadeChannel(ushort channel)
    {
        byte val = packet.getChannel(channel);

        if (directions[channel] && ++val == 255)
        {
            directions[channel] = false;
        }
        else if (!directions[channel] && --val == 0)
        {
            directions[channel] = true;
        }

        //Console.WriteLine("Val is {0}", val);

        packet.setChannel(channel, val);
    }