Skip to content
  • Unwatch
    Notifications
  • Fork

/vectron_64

Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

9 lines (6 sloc) 202 Bytes
# Generate code for EEPROM burner.
pos = 32768
for hex in open("hex.txt"):
hex = hex.strip()
print "write(\"" + bin(pos)[3:].zfill(15) + "\", \"" + bin(int(hex, 16))[2:].zfill(8) + "\");"
pos += 1
You can’t perform that action at this time.