private void init() { CP3 = new CP3Smart(this._controlSystem); light = new ILiveSmartLight(this._controlSystem); CP3.RegisterDevices(); light.RegisterDevice(); }
public MovieAPI(CP3Smart smartexe) { this.relayBedRoomScreenUp = smartexe.relayBedRoomScreenUp; this.relayBedRoomScreenDown = smartexe.relayBedRoomScreenDown; this.irBedRoom = smartexe.myIROutputPort2; try { irBedRoom.LoadIRDriver(Crestron.SimplSharp.CrestronIO.Directory.GetApplicationDirectory() + "\\IR\\OnkyoRecv.ir"); irBedRoom.LoadIRDriver(Crestron.SimplSharp.CrestronIO.Directory.GetApplicationDirectory() + "\\IR\\LG.ir"); } catch (Exception ex) { ILiveDebug.Instance.WriteLine(ex.Message); } }
public ClinateAPI(CP3Smart smart) { this.irStudyRoom = smart.myIROutputPort5; //书房空调 this.irLiving = smart.myIROutputPort6; //客厅空调 string file = Crestron.SimplSharp.CrestronIO.Directory.GetApplicationDirectory() + "\\IR\\songxia.ir"; // ILiveDebug.WriteLine(file); try { uint i = irStudyRoom.LoadIRDriver(file); uint j = irLiving.LoadIRDriver(file); // ILiveDebug.WriteLine("dirver"+i); } catch (Exception ex) { ILiveDebug.Instance.WriteLine(ex.Message); } }
private void Init() { smartExec = new CP3Smart(this._controlSystem); _lightExec = new ILiveLight(this._controlSystem); _lightExec.RegisterDevices(); //注册灯光模块 // Queue<Thread> dd = null; smartExec.RegisterDevices(); //注册快思聪模块 //this._music = new MusicAPI(); this._security = new SecurityAPI(smartExec); this._security.SetYelaPressEvent(this.YelaPress); this._movie = new MovieAPI(smartExec); this._clinate = new ClinateAPI(smartExec); // this._sms = new SMSAPI(smartExec.comSMS); this._sms = new ALiYunSMS(); }
public SecurityAPI(CP3Smart smartExec) { this._smartExec = smartExec; }