Line 40... |
Line 40... |
40 |
print "External Voltage Measurement" |
40 |
print "External Voltage Measurement" |
41 |
guage.WriteFlashByte(64, 0, 7, 0x2) # Two Cells |
41 |
guage.WriteFlashByte(64, 0, 7, 0x2) # Two Cells |
42 |
print "Two Cells" |
42 |
print "Two Cells" |
43 |
guage.WriteFlashByte(64, 0, 4, 0x74) # 8 LED (1+7), Shift Register |
43 |
guage.WriteFlashByte(64, 0, 4, 0x74) # 8 LED (1+7), Shift Register |
44 |
print "LED" |
44 |
print "LED" |
45 |
guage.WriteFlashByte(104, 0, 14, 0x28) # Voltage Measurement Range 10240 mV |
45 |
guage.WriteFlashByte(104, 0, 14, 0x25) # Voltage Measurement Range 9484 mV |
46 |
guage.WriteFlashByte(104, 0, 15, 0x00) # |
46 |
guage.WriteFlashByte(104, 0, 15, 0x0C) # |
47 |
print "Voltage Measurement Range" |
47 |
print "Voltage Measurement Range" |
48 |
guage.WriteFlashByte(82, 0, 0, 0x0D) # Set initial cell capacity 3350 mAh |
48 |
guage.WriteFlashByte(82, 0, 0, 0x0D) # Set initial cell capacity 3350 mAh |
49 |
guage.WriteFlashByte(82, 0, 1, 0x16) # |
49 |
guage.WriteFlashByte(82, 0, 1, 0x16) # |
50 |
print "Initial cell capacity" |
50 |
print "Initial cell capacity" |
51 |
guage.WriteFlashByte(83, 0, 0, 0x20) # Set Chem ID |
51 |
guage.WriteFlashByte(83, 0, 0, 0x20) # Set Chem ID |