Animatroller.Framework.Expander.DMXPro.Connect C# (CSharp) Method

Connect() public method

public Connect ( PhysicalDevice device ) : DMXPro
device PhysicalDevice
return DMXPro
        public DMXPro Connect(PhysicalDevice.INeedsDmxOutput device)
        {
            device.DmxOutputPort = this;

            return this;
        }

Usage Example

 public void WireUp(Expander.DMXPro port)
 {
     port.Connect(new Physical.AmericanDJStrobe(georgeStrobeLight, 5));
     port.Connect(new Physical.RGBStrobe(spiderLight, 10));
     port.Connect(new Physical.GenericDimmer(skullsLight, 1));
     port.Connect(new Physical.GenericDimmer(cobWebLight, 3));
     port.Connect(new Physical.GenericDimmer(blinkyEyesLight, 4));
     port.Connect(new Physical.SmallRGBStrobe(candyLight, 16));
     port.Connect(new Physical.RGBStrobe(rgbLightRight, 20));
     port.Connect(new Physical.RGBStrobe(georgeLight, 30));
     port.Connect(new Physical.RGBStrobe(leftSkeletonLight, 40));
 }
All Usage Examples Of Animatroller.Framework.Expander.DMXPro::Connect