Add OV() macro for thermistor tables

This commit is contained in:
Scott Lahteine 2017-11-15 03:20:36 -06:00
parent d2613ce077
commit 69a710fef1
26 changed files with 965 additions and 964 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), \