public QuickTest() { InitializeComponent(); // udpPacket = new UdpPacket(); // udpPacket.RemoteHostName = "192.168.0.200"; // udpPacket.RemotePort = 10000; // udpPacket.LocalPort = 10000; // udpPacket.Open(); // oscUdp = new Osc(udpPacket); usbPacket = new UsbPacket(); usbPacket.Open(); osc = new Osc(usbPacket); osc.SetAddressHandler("/analogin/7/value", TrimPotReading); }
public DeskTimerForm() { InitializeComponent(); // udpPacket = new UdpPacket(); // udpPacket.RemoteHostName = "192.168.0.200"; // udpPacket.RemotePort = 10000; // udpPacket.LocalPort = 10000; // udpPacket.Open(); // osc = new Osc(udpPacket); usbPacket = new UsbPacket(); usbPacket.Open(); osc = new Osc(usbPacket); Working = true; ResetTimers(); osc.SetAddressHandler("/analogin/0/value", SensorReading); }