nissan-leaf-reader/processString.py
2019-05-23 09:24:30 -07:00

9 lines
264 B
Python

def processString(s):
voltages = []
for i in range(0, 96):
x = s[i*4:i*4+4]
x = int(x, 16)/100
voltages.append(x)
for z in range(0, 96):
print("Cell " + str(z + 1) + "= %.2f" % (voltages[z]))
return