Searched refs:file_content (Results 1 – 1 of 1) sorted by relevance
102 def convert_to_carray(file_content): argument103 outp = "const unsigned long bindata_len = %d;\n" % len(file_content)105 for i in range(len(file_content)):108 outp += "0x%02x, " % file_content[i]112 def convert_to_uf2(file_content): argument117 numblocks = (len(file_content) + 255) // 256121 chunk = file_content[ptr:ptr + 256]230 file_content = file.read()231 return re.search("Board-ID: ([^\r\n]*)", file_content).group(1)