def __init__(self, addr, port=1): self.addr = addr self.bus = smbus.SMBus(port) # Write a single command