Exemple #1
0
            public static ushort GetGroundRight()
            {
                byte lowByte  = I2C.ReadByte(I2C.Registers.Infrared.Ambient.GroundRight.Low);
                byte highByte = I2C.ReadByte(I2C.Registers.Infrared.Ambient.GroundRight.High);

                return((ushort)((highByte << 8) | lowByte));
            }
Exemple #2
0
            public static ushort GetBack()
            {
                byte lowByte  = I2C.ReadByte(I2C.Registers.Infrared.Ambient.Back.Low);
                byte highByte = I2C.ReadByte(I2C.Registers.Infrared.Ambient.Back.High);

                return((ushort)((highByte << 8) | lowByte));
            }