public void RegisterDevices() { #region 注册调光模块 din1Dim4_3 = new Din1Dim4(0x03, this.controlSystem); if (din1Dim4_3.Register() != eDeviceRegistrationUnRegistrationResponse.Success) { ErrorLog.Error("din1Dim4_10 failed registration. Cause: {0}", din1Dim4_3.RegistrationFailureReason); } din1Dim4_4 = new Din1Dim4(0x04, this.controlSystem); if (din1Dim4_4.Register() != eDeviceRegistrationUnRegistrationResponse.Success) { ErrorLog.Error("din1Dim4_11 failed registration. Cause: {0}", din1Dim4_4.RegistrationFailureReason); } //din1Dim4_10.DinLoads[0].ParameterDimmable = eDimmable.No; #endregion #region 注册串口 if (this.controlSystem.SupportsComPort) { this.CongPu_3 = new ILiveGRODIGY8SW8(3, 8006); this.CongPu_4 = new ILiveGRODIGY8SW8(4, 8006); this.CongPu_5 = new ILiveGRODIGY8SW8(5, 8006); } #endregion }
public void RegisterDevices() { //UDPClient client = new UDPClient(); //this.wintom = new ILiveWintom(); #region 注册串口 this.CongPu_7 = new ILiveGRODIGY8SW8(7, 8006); this.CongPu_8 = new ILiveGRODIGY8SW8(8, 8006); #endregion }