OPTController_Handle m_OPTControllerHanlde; //CODetectDlg类里创建对象: Dlg.c文件 void CODetectDlg::OnBnClickedInit() //初始化按钮 { //初始化端口并把通道1的亮度设为0 OPTController_InitSerialPort("COM3", &m_OPTControllerHanlde); //初始化端口COM3 OPTController_TurnOnChannel(m_OPTController...
OPTController_Handle m_OPTControllerHanlde; //CODetectDlg类里创建对象: Dlg.c文件 void CODetectDlg::OnBnClickedInit() //初始化按钮 { //初始化端口并把通道1的亮度设为0 OPTController_InitSerialPort("COM3", &m_OPTControllerHanlde); //初始化端口COM3 OPTController_TurnOnChannel(m_OPTController...