Example #1
0
 private void init()
 {
     CP3   = new CP3Smart(this._controlSystem);
     light = new ILiveSmartLight(this._controlSystem);
     CP3.RegisterDevices();
     light.RegisterDevice();
 }
Example #2
0
        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);
            }
        }
Example #3
0
        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);
            }
        }
Example #4
0
        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();
        }
Example #5
0
 public SecurityAPI(CP3Smart smartExec)
 {
     this._smartExec = smartExec;
 }