public HalloweenScene1(IEnumerable<string> args) { hours = new OperatingHours("Hours"); georgeStrobeLight = new StrobeDimmer("George Strobe"); spiderLight = new StrobeColorDimmer("Spider Light"); skullsLight = new Dimmer("Skulls"); cobWebLight = new Dimmer("Cob Web"); blinkyEyesLight = new Switch("Blinky Eyes"); rgbLightRight = new StrobeColorDimmer("Light Right"); georgeLight = new StrobeColorDimmer("George Light"); leftSkeletonLight = new StrobeColorDimmer("Skeleton Light"); georgeMotor = new MotorWithFeedback("George Motor"); candyLight = new StrobeColorDimmer("Candy Light"); spiderLift = new Switch("Slider Lift"); smokeMachine = new Switch("Smoke Machine"); spiderEyes = new Switch("Spider Eyes"); pressureMat = new DigitalInput("Pressure Mat"); testButton = new DigitalInput("Test"); pulsatingEffect1 = new Effect.Pulsating("Pulse FX 1", S(2), 0.1, 0.4); pulsatingEffect2 = new Effect.Pulsating("Pulse FX 2", S(2), 0.3, 0.5); candyPulse = new Effect.Pulsating("Candy Pulse", S(3), 0.01, 0.1); flickerEffect = new Effect.Flicker("Flicker", 0.4, 0.6); audioPlayer = new Physical.NetworkAudioPlayer( Properties.Settings.Default.NetworkAudioPlayerIP, Properties.Settings.Default.NetworkAudioPlayerPort); }
public AmericanDJStrobe(StrobeDimmer logicalDevice, int dmxChannel) : this((Dimmer)logicalDevice, dmxChannel) { logicalDevice.StrobeSpeedChanged += (sender, e) => { if (e.NewSpeed == 0) DmxOutputPort.SendDimmerValue(dmxChannel, 255); else { // 2-127 strobe effect, slow to fast DmxOutputPort.SendDimmerValue(dmxChannel, (byte)(2 + e.NewSpeed.GetByteScale(125))); } }; }
public TestScene1(IEnumerable<string> args) { georgeStrobeLight = new StrobeDimmer("George Strobe"); spiderLight = new StrobeColorDimmer("Spider Light"); skullsLight = new Dimmer("Skulls"); cobWebLight = new Dimmer("Cob Web"); blinkyEyesLight = new Switch("Blinky Eyes"); rgbLightRight = new StrobeColorDimmer("Light Right"); rgbLight3 = new StrobeColorDimmer("Light 3"); rgbLight4 = new StrobeColorDimmer("Light 4"); georgeMotor = new MotorWithFeedback("George Motor"); spiderLift = new Switch("Spider Lift"); pressureMat = new DigitalInput("Pressure Mat"); pulsatingEffect = new Effect.Pulsating(S(1), 0.2, 0.7); flickerEffect = new Effect.Flicker(0.4, 0.6); }
public HalloweenScene2013B(IEnumerable<string> args) { this.lastFogRun = DateTime.Now; stateMachine = new Controller.EnumStateMachine<States>("Main"); pulsatingEffect1 = new Effect.Pulsating("Pulse FX 1", S(2), 0.1, 0.5, false); pulsatingEffect2 = new Effect.Pulsating("Pulse FX 2", S(2), 0.2, 0.8, false); flickerEffect = new Effect.Flicker("Flicker", 0.4, 0.6, false); flickerEffect2 = new Effect.Flicker("Flicker 2", 0.4, 0.6, false); popOutEffect = new Effect.PopOut("PopOut", S(1)); hoursSmall = new OperatingHours("Hours Small"); hoursFull = new OperatingHours("Hours Full"); buttonMotionCat = new DigitalInput("Walkway Motion"); buttonMotionBeauty = new DigitalInput("Beauty Motion"); buttonTriggerStairs = new DigitalInput("Stairs Trigger 1"); buttonTriggerPopup = new DigitalInput("Popup Trigger"); buttonTestA = new DigitalInput("Test A"); buttonTestB = new DigitalInput("Test B"); buttonTestC = new DigitalInput("Test C"); buttonTestSpider = new DigitalInput("Spider"); switchDeadendDrive = new Switch("Deadend dr"); catLights = new Switch("Cat lights"); catFan = new Switch("Cat"); georgeMotor = new MotorWithFeedback("George Motor"); lightPopup = new StrobeDimmer("Popup light"); lightGeorge = new StrobeColorDimmer("George light"); lightBeauty = new StrobeColorDimmer("Beauty light"); lightFloor = new StrobeColorDimmer("Floor light"); lightSign = new StrobeColorDimmer("Sign"); skullsLight = new Dimmer("Skulls"); lightTreeGhost = new Dimmer("Ghosts in tree"); skullsLight2 = new Dimmer("Skulls 2"); lightSpiderWeb = new Dimmer("Spiderweb"); lightEyes = new Switch("Eyes"); audioCat = new AudioPlayer("Audio Cat"); audioGeorge = new AudioPlayer("Audio George"); audioBeauty = new AudioPlayer("Audio Beauty"); audioSpider = new AudioPlayer("Audio Spider"); switchHand = new Switch("Hand"); switchHead = new Switch("Head"); switchDrawer1 = new Switch("Drawer 1"); switchDrawer2 = new Switch("Drawer 2"); switchPopEyes = new Switch("Pop Eyes"); switchPopUp = new Switch("Pop Up"); switchSpider = new Switch("Spider"); switchSpiderEyes1 = new Switch("Spider Eyes 1"); switchSpiderEyes2 = new Switch("Spider Eyes 2"); switchFog = new Switch("Fog"); allPixels = new VirtualPixel1D("All Pixels", 28 + 50); }
public HalloweenScene2013B(IEnumerable<string> args) { this.lastFogRun = DateTime.Now; stateMachine = new Controller.EnumStateMachine<States>("Main"); pulsatingEffect1 = new Effect.Pulsating(S(2), 0.1, 0.5, false); pulsatingEffect2 = new Effect.Pulsating(S(2), 0.2, 0.8, false); flickerEffect = new Effect.Flicker(0.4, 0.6, false); flickerEffect2 = new Effect.Flicker(0.4, 0.6, false); popOutEffect = new Effect.PopOut(S(1)); hoursSmall = new OperatingHours("Hours Small"); hoursFull = new OperatingHours("Hours Full"); buttonMotionCat = new DigitalInput("Walkway Motion"); buttonMotionBeauty = new DigitalInput("Beauty Motion"); buttonTriggerStairs = new DigitalInput("Stairs Trigger 1"); buttonTriggerPopup = new DigitalInput("Popup Trigger"); buttonTestA = new DigitalInput("Test A"); buttonTestB = new DigitalInput("Test B"); buttonTestC = new DigitalInput("Test C"); buttonTestSpider = new DigitalInput("Spider"); switchDeadendDrive = new Switch("Deadend dr"); catLights = new Switch("Cat lights"); catFan = new Switch("Cat"); georgeMotor = new MotorWithFeedback("George Motor"); lightPopup = new StrobeDimmer("Popup light"); lightGeorge = new StrobeColorDimmer("George light"); lightBeauty = new StrobeColorDimmer("Beauty light"); lightFloor = new StrobeColorDimmer("Floor light"); lightSign = new StrobeColorDimmer("Sign"); skullsLight = new Dimmer("Skulls"); lightTreeGhost = new Dimmer("Ghosts in tree"); skullsLight2 = new Dimmer("Skulls 2"); lightSpiderWeb = new Dimmer("Spiderweb"); lightEyes = new Switch("Eyes"); audioCat = new AudioPlayer("Audio Cat"); audioGeorge = new AudioPlayer("Audio George"); audioBeauty = new AudioPlayer("Audio Beauty"); audioSpider = new AudioPlayer("Audio Spider"); switchHand = new Switch("Hand"); switchHead = new Switch("Head"); switchDrawer1 = new Switch("Drawer 1"); switchDrawer2 = new Switch("Drawer 2"); switchPopEyes = new Switch("Pop Eyes"); switchPopUp = new Switch("Pop Up"); switchSpider = new Switch("Spider"); switchSpiderEyes1 = new Switch("Spider Eyes 1"); switchSpiderEyes2 = new Switch("Spider Eyes 2"); switchFog = new Switch("Fog"); allPixels = new VirtualPixel1D(28 + 50); // Cat raspberry1.DigitalInputs[0].Connect(buttonMotionCat); raspberry1.DigitalInputs[4].Connect(buttonTriggerStairs, true); raspberry1.DigitalOutputs[0].Connect(switchDeadendDrive); raspberry1.DigitalOutputs[1].Connect(switchFog); raspberry1.Motor.Connect(georgeMotor); raspberry1.Connect(audioCat); // Beauty raspberry2.Connect(audioBeauty); raspberry2.DigitalOutputs[7].Connect(switchHand); raspberry2.DigitalOutputs[2].Connect(switchHead); raspberry2.DigitalOutputs[5].Connect(switchDrawer1); raspberry2.DigitalOutputs[6].Connect(switchDrawer2); raspberry2.DigitalOutputs[3].Connect(switchPopEyes); raspberry2.DigitalOutputs[4].Connect(switchPopUp); raspberry2.DigitalInputs[5].Connect(buttonMotionBeauty, true); raspberry2.DigitalInputs[6].Connect(buttonTriggerPopup, true); // Background/George raspberry3.Connect(audioGeorge); // Spider raspberry4.Connect(audioSpider); raspberry4.DigitalOutputs[0].Connect(switchSpider); raspberry4.DigitalOutputs[2].Connect(switchSpiderEyes1); raspberry4.DigitalOutputs[3].Connect(switchSpiderEyes2); }