Create a gist now

Instantly share code, notes, and snippets.

@plainspooky /hexbin.py Secret
Created Feb 18, 2016

What would you like to do?
Conversor bem simples de arquivos Intel Hex para binário
#!/usr/bin/env python2
import bincopy
import sys
def main(argv):
inputfile = argv[0]
f = bincopy.File()
with open(inputfile, "r") as fin:
f.add_ihex(fin)
print f.as_binary()
if __name__ == "__main__":
main(sys.argv[1:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment