def readRegister(self, addr, n_bytes=1):
    assert n_bytes > 0, "Can't read less than 1 byte!"
    request = [addr | 0x80] + [0]*n_bytes
    response = self.spi.transfer(self.cs, request)
    return response[1:] # slice off value read when writing register
Reads the value in the given register, or if the optional parameter 
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/BMP183/BMP183.py/BMP183.readRegister