public static void SetStroboscope(byte value, bool writeImmediately)
 {
     OpenDMX.setDmxValue(GetChannel(SECTIONS_P4.STROBE), value);
     if (writeImmediately)
     {
         OpenDMX.writeData();
     }
 }
 public static void SetMasterFader(byte value, bool writeImmediately)
 {
     OpenDMX.setDmxValue(GetChannel(SECTIONS_P4.MASTER), value);
     if (writeImmediately)
     {
         OpenDMX.writeData();
     }
 }
 public static void SetAllOff(bool writeImmediately)
 {
     for (int i = 0; i < 26; i++)
     {
         OpenDMX.setDmxValue(i, 0);
     }
     if (writeImmediately)
     {
         OpenDMX.writeData();
     }
 }
        public static void SetAllSingleColor(RGB color, byte value, bool writeImmediately)
        {
            List <int> channels = GetAllColorChannels(color);

            for (int i = 1; i < ChannelCount() + 1; i++)
            {
                if (channels.Contains(i))
                {
                    OpenDMX.setDmxValue(i, value);
                }
                else if (i == GetChannel(SECTIONS_P4.STROBE) || i == GetChannel(SECTIONS_P4.MASTER))
                {
                    continue;
                }
                else
                {
                    OpenDMX.setDmxValue(i, 0);
                }
            }
            if (writeImmediately)
            {
                OpenDMX.writeData();
            }
        }
 public static void SendData()
 {
     OpenDMX.writeData();
 }