def read(self, reg):
    assert 0 <= reg < 8, "register values must be between 0 and 7"
    self.spidev.write(self.cs,[CMD_READ | reg<<3])
    temp = self.spidev.read(self.cs,2)
    return temp
read(register)
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/ADT7310/adt7310.py/ADT7310.read