def write_bytes(self, addr, buf):
assert self._device is not None, '<STR_LIT>'<EOL>self._select_device(addr)<EOL>self._device.write(buf)<EOL>
Write many bytes to the specified device. buf is a bytearray