public override void DoInit() { port = new System.IO.Ports.SerialPort(); mento_Controller = new MENTO_CONTROLLER.Mento_controller(); Panels = new LightPanelEnum[] { LightPanelEnum.Panel0, LightPanelEnum.Panel1, LightPanelEnum.Panel2, LightPanelEnum.Panel3 };//初始化通道数 if (lightCtrlParaItem != null) { port.PortName = lightCtrlParaItem.PortName.ToString(); port.BaudRate = 115200; port.Handshake = System.IO.Ports.Handshake.None; port.Parity = System.IO.Ports.Parity.None; port.DataBits = 8; port.StopBits = System.IO.Ports.StopBits.One; } }
public override void DoInit() { base.DoInit(); Panels = new LightPanelEnum[] { LightPanelEnum.Panel0, LightPanelEnum.Panel1, LightPanelEnum.Panel2, LightPanelEnum.Panel3 };//初始化通道数 }