Exemplo n.º 1
0
 public void SetLED(KinectLEDStatus status)
 {
     UsbSetupPacket setup = new UsbSetupPacket(0x40, 0x06, (ushort)status, 0x0, 0x0);
     int len = 0;
     MyUsbDevice.ControlTransfer(ref setup, IntPtr.Zero, 0, out len);
 }
Exemplo n.º 2
0
 internal void SetLed(KinectLEDStatus ledStatus)
 {
     _motor.SetLED(ledStatus);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Set the LED on the Kinect
 /// </summary>
 /// <param name="status">The LED status to set.</param>
 internal void SetLED(KinectLEDStatus status)
 {
     if (!_canOperate) return;
     UsbSetupPacket setup = new UsbSetupPacket(0x40, 0x06, (ushort)status, 0x0, 0x0);
     int len = 0;
     MyUsbDevice.ControlTransfer(ref setup, IntPtr.Zero, 0, out len);
 }