예제 #1
0
        public void WireUp(Animatroller.Simulator.SimulatorForm sim)
        {
            sim.Connect(new Animatroller.Simulator.TestLight(georgeStrobeLight), "George Strobe");
            sim.Connect(new Animatroller.Simulator.TestLight(spiderLight), "Spider Light");
            sim.Connect(new Animatroller.Simulator.TestLight(skullsLight), "Skulls Lights");
            sim.Connect(new Animatroller.Simulator.TestLight(cobWebLight), "Cobweb");
            sim.Connect(new Animatroller.Simulator.TestLight(blinkyEyesLight), "Blinky Eyes");
            sim.Connect(new Animatroller.Simulator.TestLight(rgbLightRight), "Right Skeleton");
            sim.Connect(new Animatroller.Simulator.TestLight(rgbLight3), "Left Skeleton");
            sim.Connect(new Animatroller.Simulator.TestLight(rgbLight4), "Unused");

            sim.AddDigitalInput_Momentarily("Pressure Mat").Connect(pressureMat);
            sim.AddDigitalOutput("Spider Lift").Connect(spiderLift);
            sim.AddMotor("George").Connect(georgeMotor);
        }
예제 #2
0
        public void WireUp(Animatroller.Simulator.SimulatorForm sim)
        {
            sim.AddDigitalInput_Momentarily("Blue").Connect(buttonBlue);
            sim.AddDigitalInput_Momentarily("Red").Connect(buttonRed);
            sim.Connect(new Animatroller.Simulator.TestLight(lightNetRight), "Net Right");
            sim.Connect(new Animatroller.Simulator.TestLight(lightGarlandRight), "Garland R");
            sim.Connect(new Animatroller.Simulator.TestLight(lightHatsRight), "Hats Right");
            sim.Connect(new Animatroller.Simulator.TestLight(lightTreesRight), "Tree Right");
            sim.Connect(new Animatroller.Simulator.TestLight(lightReindeers), "Reindeers");
            sim.Connect(new Animatroller.Simulator.TestLight(lightIcicles), "Icicles");
            sim.Connect(new Animatroller.Simulator.TestLight(lightNetLeft), "Net Left");
            sim.Connect(new Animatroller.Simulator.TestLight(lightTree), "Tree");
            sim.Connect(new Animatroller.Simulator.TestLight(lightGarlandLeft), "Garland L");
            //            sim.Connect(new Animatroller.Simulator.TestLight(lightUnused1), "Unused 1");
            //            sim.Connect(new Animatroller.Simulator.TestLight(lightUnused2), "Unused 2");
            sim.Connect(new Animatroller.Simulator.TestLight(lightJesus), "Jesus");
            sim.Connect(new Animatroller.Simulator.TestLight(lightCeiling1), "Ceiling 1");
            sim.Connect(new Animatroller.Simulator.TestLight(lightCeiling2), "Ceiling 2");
            sim.Connect(new Animatroller.Simulator.TestLight(lightCeiling3), "Ceiling 3");
            sim.Connect(new Animatroller.Simulator.TestLight(lightVader), "Vader");
            sim.Connect(new Animatroller.Simulator.TestPixel1D(testPixels), "Rope");

            sim.AddDigitalOutput("Blue Button").Connect(buttonLightBlue);
            sim.AddDigitalOutput("Red Button").Connect(buttonLightRed);
            sim.AddDigitalOutput("Lightsaber").Connect(elLightsaber);
            sim.AddDigitalOutput("Jesus Halo").Connect(elJesus);
            sim.AddDigitalOutput("Big Reindeer").Connect(bigReindeer);
            sim.AddDigitalInput_Momentarily("Reindeer").Connect(buttonStartReindeer);
        }