Ejemplo n.º 1
0
        public static void StartInput()
        {
            phi = new InterPhi();

            phi.AddSensor(new Sensor("0", "A", 400));
            phi.AddSensor(new Sensor("1", "D", 400));
            phi.AddSensor(new Sensor("2", "SPACE", 400));

            phi.StartPhidget();
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     InterPhi phi = new InterPhi();
     phi.AddSensor(new Sensor("0", "A", 850));
     phi.AddSensor(new Sensor("1", "D", 850));
     phi.AddSensor(new Sensor("2", "SPACE", 500));
     phi.StartPhidget();
     Console.ReadKey();
     Console.WriteLine(phi.GetState());
     Console.ReadKey();
 }
Ejemplo n.º 3
0
        public static void StartInput(List<Sensor> sensors)
        {
            phi = new InterPhi();

            foreach (Sensor s in sensors)
            {
                phi.AddSensor(s);
            }

            phi.StartPhidget();
        }