示例#1
0
        public ILiveSmartAPI(CrestronControlSystem system)
        {
            this.cp3 = new CP3Smart(system);
            this.cp3.RegisterDevices();
            this.light = new ILiveLight(system);
            this.light.RegisterDevices();

            this.Curtains = new ILiveCurtains();
            this.Curtains.RegisterDevices();

            this.Muisc = new ILiveMusic(system);
            this.Muisc.RegisterDevices();

            //IRACC接CP3 com1

            ILiveComPort com = new ILiveComPort(system.ComPorts[1]);

            com.Register();
            this.iracc = new ILiveIRACC(com);

            //this.iracc = new ILiveIRACC(system.ComPorts[1]);



            //this.cp3.CongPu.Push16IEvent += new ILiveCongPu.Push16IHandler(CongPu_Push16IEvent);
        }
示例#2
0
 public void RegisterDevices()
 {
     #region 注册串口
     if (this.controlSystem.SupportsComPort)
     {
         ILiveComPort com = new ILiveComPort(this.controlSystem.ComPorts[2]);
         com.Register();
         this.music = new ILiveDM8318(com);
     }
     #endregion
 }