Add OV() macro for use in thermistor tables

This commit is contained in:
Scott Lahteine
2017-11-15 03:14:55 -06:00
parent 24057270a3
commit 0918dae66e
25 changed files with 931 additions and 930 deletions

View File

@ -140,7 +140,7 @@ def main(argv):
for temp in temps:
adc = t.adc(temp)
print " { (short) (%7.2f * OVERSAMPLENR ), %4s }%s // v=%.3f\tr=%.3f\tres=%.3f degC/count" % (adc , temp, \
print " { OV(%7.2f), %4s }%s // v=%.3f\tr=%.3f\tres=%.3f degC/count" % (adc , temp, \
',' if temp != temps[-1] else ' ', \
t.voltage(adc), \
t.resist( adc), \