CLNUIDeviceTest.CLNUIDevice.SetMotorLED C# (CSharp) Method

SetMotorLED() private method

private SetMotorLED ( IntPtr motor, byte mode ) : bool
motor System.IntPtr
mode byte
return bool
        public static extern bool SetMotorLED(IntPtr motor, byte mode);

Usage Example

Beispiel #1
0
 void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (errquit == false)
     {
         if (campaused == true)
         {
             captureThread.Resume();
         }
         if (accpaused == false)
         {
             accelerometerTimer.Stop();
         }
         CLNUIDevice.SetMotorLED(motor, 0);
         if (motor != IntPtr.Zero)
         {
             CLNUIDevice.DestroyMotor(motor);
         }
         running = false;
         captureThread.Join();
         if (camera != IntPtr.Zero)
         {
             CLNUIDevice.StopCamera(camera);
             CLNUIDevice.DestroyCamera(camera);
         }
     }
 }
All Usage Examples Of CLNUIDeviceTest.CLNUIDevice::SetMotorLED