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(); }
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(); }
public static void StartInput(List<Sensor> sensors) { phi = new InterPhi(); foreach (Sensor s in sensors) { phi.AddSensor(s); } phi.StartPhidget(); }