import struct # make ./example/memory_map.bin # ./tools/ftdi_transfer.sh ./example/memory_map.bin # ./tools/dump_texture_memory.sh # sha256sum # cf5070b1fdfa26ecb527c86afaf046553b09ad677a88ef569a2b802790ccde03 with open("texture_memory_write_64_read_32.bin", "rb") as f: buf = memoryview(f.read()) lookup = [ struct.unpack("