private int ReadRegister(byte registerAddress, I2cDevice device)
        {
            var word = new byte[2];

            device.ReadAtRegisterAddress(registerAddress, word);
            return(BitConverter.IsLittleEndian ? BinaryPrimitives.ReadInt16LittleEndian(word) : BinaryPrimitives.ReadInt16BigEndian(word));
        }