-
-
Save plainspooky/36ade3f187f901526b69 to your computer and use it in GitHub Desktop.
Conversor bem simples de arquivos Intel Hex para binário
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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