def __init__(self, bus_num, mode=MASTER, baudrate=None):
if mode != self.MASTER:
raise NotImplementedError("Only I2C Master supported!")
def __init__(self, bus_num, mode=MASTER, baudrate=None):
if mode != self.MASTER:
raise NotImplementedError("Only I2C Master supported!")
def scan(self):
"""Try to read a byte from each address, if you get an OSError
it means the device isnt there"""
def scan(self):
"""Try to read a byte from each address, if you get an OSError
it means the device isnt there"""