BrickPi.Sensors.EV3IRSensor.ReadRemoteCommand C# (CSharp) Method

ReadRemoteCommand() public method

Reads commands from the IR-Remote. This will change mode to remote
public ReadRemoteCommand ( ) : byte
return byte
        public byte ReadRemoteCommand()
        {
            if (Mode != IRMode.Remote)
            {
                Mode = IRMode.Remote;
            }
            return (byte)((brick.BrickPi.Sensor[(int)Port].Value >> (int)Channel) & 0x0F);
        }