Example #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();
        }
Example #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();
 }
Example #3
0
        public static void StartInput(List<Sensor> sensors)
        {
            phi = new InterPhi();

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

            phi.StartPhidget();
        }