예제 #1
0
        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);
        }
예제 #2
0
        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);
        }