Sprinterでサーミスタのルックアップテーブルの作成

本家のcreateTemperature.pyには--max-adcを引数として与えられるような記載があるが、オプション解析が実装されていない点に注意(10bitの1023から変更したい時はハードコードする必要あり)

./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700.0 --beta=4267
(--max-adcはつけない)

// Thermistor lookup table for RepRap Temperature Sensor Boards (http://make.rrrf.org/ts)
// Made with createTemperatureLookup.py (http://svn.reprap.org/trunk/reprap/firmware/Arduino/utilities/createTemperatureLookup.py)
// ./createTemperatureLookup.py --r0=100000.0 --t0=25 --r1=0.0 --r2=4700.0 --beta=4267 --max-adc=1023
// r0: 100000.0
// t0: 25
// r1: 0.0
// r2: 4700.0
// beta: 4267
// max adc: 1023
#define NUMTEMPS 20
short temptable[NUMTEMPS][2] = {
   {1, 713},
   {54, 236},
   {107, 195},
   {160, 172},
   {213, 157},
   {266, 144},
   {319, 134},
   {372, 125},
   {425, 117},
   {478, 110},
   {531, 103},
   {584, 96},
   {637, 89},
   {690, 83},
   {743, 75},
   {796, 68},
   {849, 59},
   {902, 48},
   {955, 34},
   {1008, 3}
};