createTemperatureLookupMarlin.py: Add output of Steinhart-Hart coefficients.

This commit is contained in:
David Forrest 2014-01-29 22:45:10 -05:00
parent 7216583b8b
commit f5b5dd8038

1
Marlin/createTemperatureLookupMarlin.py Normal file → Executable file
View file

@ -135,6 +135,7 @@ def main(argv):
print "// Thermistor lookup table for Marlin"
print "// ./createTemperatureLookup.py --rp=%s --t1=%s:%s --t2=%s:%s --t3=%s:%s --num-temps=%s" % (rp, t1, r1, t2, r2, t3, r3, num_temps)
print "// Steinhart-Hart Coefficients: %.15g, %.15g, %.15g " % (t.c1, t.c2, t.c3)
print "//#define NUMTEMPS %s" % (len(temps))
print "const short temptable[NUMTEMPS][2] PROGMEM = {"