Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Get_FTDI_connected() //ping FTDI driver
- {
- ftStatus = myFtdiDevice.GetNumberOfDevices(ref ftdiDeviceCount);
- if (ftStatus == FTDI.FT_STATUS.FT_OK && ftdiDeviceCount == 4)
- {
- if(!ftdi_inited)
- {
- label2.Text = "Initializing...";
- label2.ForeColor = System.Drawing.Color.Green;
- Update();
- // Thread.Sleep(2000);
- Init_FTDI();
- }
- }
- else
- {
- label2.Text = "No LakeWest board found!";
- label2.ForeColor = System.Drawing.Color.Red;
- ftdi_inited = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement