コード例 #1
0
 /// <summary>
 /// Reads commands from the IR-Remote. This will change mode to remote
 /// </summary>
 /// <param name="channel">Channel.</param>
 /// <returns>The remote command.</returns>
 public byte ReadRemoteCommand(IRChannel channel)
 {
     if (Mode != IRMode.Remote)
     {
         Mode = IRMode.Remote;
     }
     return(ReadBytes(4)[(int)channel]);
 }
コード例 #2
0
 public RemoteControl(IRSensorLockWrapper irSensorWrapper, IRChannel channel)
 {
     this.irSensorWrapper = irSensorWrapper;
     this.channel         = channel;
     queue  = new QueueThread();
     thread = new Thread(Loop)
     {
         IsBackground = true
     };
     thread.Start();
 }