Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.78 KB | None | 0 0
  1.   private void Get_FTDI_connected() //ping FTDI driver
  2.         {
  3.            
  4.             ftStatus = myFtdiDevice.GetNumberOfDevices(ref ftdiDeviceCount);
  5.  
  6.             if (ftStatus == FTDI.FT_STATUS.FT_OK && ftdiDeviceCount == 4)
  7.             {
  8.                 if(!ftdi_inited)
  9.                 {
  10.                     label2.Text = "Initializing...";
  11.                     label2.ForeColor = System.Drawing.Color.Green;
  12.                     Update();
  13.                   //  Thread.Sleep(2000);
  14.                     Init_FTDI();
  15.                 }          
  16.             }
  17.             else
  18.             {
  19.                 label2.Text = "No LakeWest board found!";
  20.                 label2.ForeColor = System.Drawing.Color.Red;
  21.                 ftdi_inited = false;
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement