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)); }
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)); }