Lines Matching refs:f
28 with open(os.path.join(IMAGES_DIR, filename), "rb") as f:
29 return f.read()
70 with open(output_file.name, "rb") as f:
71 return f.read()
210 with tempfile.NamedTemporaryFile(suffix=".hex", delete=False) as f:
211 f.write(hex)
217 [(0x1000, f.name), (0x10000, "ram_helloworld/helloworld-esp32.bin")],
221 os.unlink(f.name)
271 with tempfile.NamedTemporaryFile(delete=False) as f:
272 f.write(b":")
274 merged = self.run_merge_bin("esp32", [(0x0, f.name)])
277 os.unlink(f.name)
316 with open(self.f_name, "rb") as f:
317 for chunk in iter(partial(f.read, UF2Writer.UF2_BLOCK_SIZE), b""):
327 with open(self.f_name, "ab") as f:
328 f.write(data)
334 with tempfile.NamedTemporaryFile(delete=False) as f:
336 f.write(struct.pack("B", random.randrange(0, 1 << 7)))
337 return f.name
369 itertools.chain(*[(hex(addr), f) for addr, f in iter_addr_offset_tuples])
377 exp_list = [f"Adding {f} at {hex(addr)}" for addr, f in iter_addr_offset_tuples]
379 f"bytes to file {of_name}, ready to be flashed with any ESP USB Bridge"