From 7b909fcf82e0693c2adabd1a563c8323c1ee4952 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Fri, 23 Mar 2012 02:21:10 +0100 Subject: [PATCH] Fix thermistor tables, which also fixes a build failure. Now we don't have tables for default or gen7 electronics, but two default tables for a single vs. two different thermistors. This seems to be more logical. --- ThermistorTable.default.h | 41 ------------ ...orTable.gen7.h => ThermistorTable.double.h | 64 ++++++++++-------- ThermistorTable.single.h | 66 +++++++++++++++++++ config.default.h | 20 ++++-- config.gen3.h | 18 +++-- config.gen6.h | 18 +++-- config.gen7.h | 26 ++++---- config.ramps-v1.2.h | 18 +++-- config.ramps-v1.3.h | 18 +++-- config.sanguinololu-v1.1.h | 21 +++--- config.sanguinololu-v1.2.h | 21 +++--- 11 files changed, 197 insertions(+), 134 deletions(-) delete mode 100644 ThermistorTable.default.h rename ThermistorTable.gen7.h => ThermistorTable.double.h (83%) create mode 100644 ThermistorTable.single.h diff --git a/ThermistorTable.default.h b/ThermistorTable.default.h deleted file mode 100644 index f21b24f..0000000 --- a/ThermistorTable.default.h +++ /dev/null @@ -1,41 +0,0 @@ -// default thermistor lookup table -// Thermistor lookup table, generated with --num-temps=50 and trimmed in lower temperature ranges. -// You may be able to improve the accuracy of this table in various ways. -// 1. Measure the actual resistance of the resistor. It's "nominally" 4.7K, but that's ± 5%. -// 2. Measure the actual beta of your thermistor:http://reprap.org/wiki/MeasuringThermistorBeta -// 3. Generate more table entries than you need, then trim down the ones in uninteresting ranges. (done) -// In either case you'll have to regenerate this table, which requires python, which is difficult to install on windows. -// Since you'll have to do some testing to determine the correct temperature for your application anyway, you -// may decide that the effort isn't worth it. Who cares if it's reporting the "right" temperature as long as it's -// keeping the temperature steady enough to print, right? -// ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700 --beta=4066 --max-adc=1023 -// r0: 100000 -// t0: 25 -// r1: 0 -// r2: 4700 -// beta: 4066 -// max adc: 1023 -#define NUMTEMPS 20 -// {ADC, temp*4 }, // temp -uint16_t temptable[NUMTEMPS][2] PROGMEM = { - {1, 3364}, // 841.027617469 C - {21, 1329}, // 332.486789769 C - {41, 1104}, // 276.102666373 C - {61, 987}, // 246.756060004 C - {81, 909}, // 227.268080588 C - {101, 851}, // 212.78847342 C - {121, 805}, // 201.30176775 C - {141, 767}, // 191.787692666 C - {161, 734}, // 183.662212795 C - {181, 706}, // 176.561442671 C - {201, 680}, // 170.244089549 C - {221, 658}, // 164.542298163 C - {241, 637}, // 159.33475843 C - {321, 567}, // 141.921298995 C - {381, 524}, // 131.166509425 C - {581, 406}, // 101.561865389 C - {781, 291}, // 72.9710018071 C - {881, 219}, // 54.8051659223 C - {981, 93}, // 23.4825243529 C - {1010, 1} // 0.498606463441 C -}; diff --git a/ThermistorTable.gen7.h b/ThermistorTable.double.h similarity index 83% rename from ThermistorTable.gen7.h rename to ThermistorTable.double.h index d43dce6..60c7bdb 100644 --- a/ThermistorTable.gen7.h +++ b/ThermistorTable.double.h @@ -1,34 +1,46 @@ -// default thermistor lookup table +// Thermistor lookup table for two different thermistors. -// How many thermistor tables we have +/* + This table doesn't depend on the type of electronics, but on the type of + thermistor(s) you use. You want one table for each thermistor type you use. +*/ + +// How many thermistor tables we have. #define NUMTABLES 2 -#define THERMISTOR_EXTRUDER 0 -#define THERMISTOR_BED 1 +// Names for our tables, so you can use them in config.h. +// Table numbering starts at 0. +#define THERMISTOR_EXTRUDER 0 +#define THERMISTOR_BED 1 -// Thermistor lookup table, generated with --num-temps=50 and trimmed in lower temperature ranges. -// You may be able to improve the accuracy of this table in various ways. -// 1. Measure the actual resistance of the resistor. It's "nominally" 4.7K, but that's ± 5%. -// 2. Measure the actual beta of your thermistor:http://reprap.org/wiki/MeasuringThermistorBeta -// 3. Generate more table entries than you need, then trim down the ones in uninteresting ranges. (done) -// In either case you'll have to regenerate this table, which requires python, which is difficult to install on windows. -// Since you'll have to do some testing to determine the correct temperature for your application anyway, you -// may decide that the effort isn't worth it. Who cares if it's reporting the "right" temperature as long as it's -// keeping the temperature steady enough to print, right? +/* + You may be able to improve the accuracy of this table in various ways. + + 1. Measure the actual resistance of the resistor. It's "nominally" 4.7K, + but that's ± 5%. + 2. Measure the actual beta of your thermistor: + http://reprap.org/wiki/MeasuringThermistorBeta + 3. Generate more table entries than you need, then trim down the ones + in uninteresting ranges. + + In either case you'll have to regenerate this table with + createTemperatureLookup.py, which requires python, which is difficult to + install on windows. Since you'll have to do some testing to determine the + correct temperature for your application anyway, you may decide that the + effort isn't worth it. Who cares if it's reporting the "right" temperature + as long as it's keeping the temperature steady enough to print, right? +*/ + +// The number of value pairs in our table. +// Must be the same for all tables. #define NUMTEMPS 102 -// {ADC, temp*4 }, // temp + uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { -// Thermistor table for the Extruder. If you want to get exact readings make sure to measure R2 appropriately! -// The thermistor used for this table was an Epocs B57560G104F +// Table for the Extruder. +// Thermistor: EPCOS B57560G104F // ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4555 --beta=4092 --max-adc=1023 -// r0: 100000 -// t0: 25 -// r1: 0 -// r2: 4555 -// beta: 4092 -// max adc: 1023 { {1, 3324}, // 831.245067985 C {11, 1585}, // 396.252474229 C @@ -134,16 +146,10 @@ uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { {1011, 0}, // -0.157748974426 C }, -// Thermistor table for the Heatbed. If you want to get exact readings make sure to measure R2 appropriately! +// Thermistor table for the Heatbed. // The thermistor used for this table was an Epocs B57560G104F // ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4580 --beta=4092 --max-adc=1023 -// r0: 100000 -// t0: 25 -// r1: 0 -// r2: 4580 -// beta: 4092 -// max adc: 1023 { {1, 3318}, // 829.616016745 C {11, 1582}, // 395.653631407 C diff --git a/ThermistorTable.single.h b/ThermistorTable.single.h new file mode 100644 index 0000000..68d8ba8 --- /dev/null +++ b/ThermistorTable.single.h @@ -0,0 +1,66 @@ +// Thermistor lookup table for one thermistor or +// identical thermistors in all places. + +/* + This table doesn't depend on the type of electronics, but on the type of + thermistor(s) you use. You want one table for each thermistor type you use. +*/ + +// How many thermistor tables we have. +#define NUMTABLES 1 + +// Names for our tables, so you can use them in config.h. +// Table numbering starts at 0. +#define THERMISTOR_EXTRUDER 0 + +/* + You may be able to improve the accuracy of this table in various ways. + + 1. Measure the actual resistance of the resistor. It's "nominally" 4.7K, + but that's ± 5%. + 2. Measure the actual beta of your thermistor: + http://reprap.org/wiki/MeasuringThermistorBeta + 3. Generate more table entries than you need, then trim down the ones + in uninteresting ranges. + + In either case you'll have to regenerate this table with + createTemperatureLookup.py, which requires python, which is difficult to + install on windows. Since you'll have to do some testing to determine the + correct temperature for your application anyway, you may decide that the + effort isn't worth it. Who cares if it's reporting the "right" temperature + as long as it's keeping the temperature steady enough to print, right? +*/ + +// The number of value pairs in our table. +// Must be the same for all tables. +#define NUMTEMPS 20 + +uint16_t temptable[NUMTABLES][NUMTEMPS][2] PROGMEM = { + +// Table for the Extruder. +// Thermistor: unknown + +// ./createTemperatureLookup.py --r0=100000 --t0=25 --r1=0 --r2=4700 --beta=4066 --max-adc=1023 +{ + {1, 3364}, // 841.027617469 C + {21, 1329}, // 332.486789769 C + {41, 1104}, // 276.102666373 C + {61, 987}, // 246.756060004 C + {81, 909}, // 227.268080588 C + {101, 851}, // 212.78847342 C + {121, 805}, // 201.30176775 C + {141, 767}, // 191.787692666 C + {161, 734}, // 183.662212795 C + {181, 706}, // 176.561442671 C + {201, 680}, // 170.244089549 C + {221, 658}, // 164.542298163 C + {241, 637}, // 159.33475843 C + {321, 567}, // 141.921298995 C + {381, 524}, // 131.166509425 C + {581, 406}, // 101.561865389 C + {781, 291}, // 72.9710018071 C + {881, 219}, // 54.8051659223 C + {981, 93}, // 23.4825243529 C + {1010, 1} // 0.498606463441 C +} +}; diff --git a/config.default.h b/config.default.h index 8dcb1ac..b3596ea 100644 --- a/config.default.h +++ b/config.default.h @@ -260,25 +260,31 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, 0, THERMISTOR_EXTRUDER) -// DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, 1, THERMISTOR_EXTRUDER) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, 0, THERMISTOR_EXTRUDER) +DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, 1, THERMISTOR_EXTRUDER) // "noheater" is a special name for a sensor which doesn't have a heater. // Use "M105 P#" to read it, where # is a zero-based index into this list. -// DEFINE_TEMP_SENSOR(noheater, TT_THERMISTOR, 1, 0) +// DEFINE_TEMP_SENSOR(noheater, TT_THERMISTOR, 1, 0) diff --git a/config.gen3.h b/config.gen3.h index 40480a1..52149d3 100644 --- a/config.gen3.h +++ b/config.gen3.h @@ -262,22 +262,28 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(noheater, TT_INTERCOM, 0, 0) -DEFINE_TEMP_SENSOR(bed, TT_INTERCOM, 1, 0) +// name type pin additional +DEFINE_TEMP_SENSOR(noheater, TT_INTERCOM, 0, 0) +DEFINE_TEMP_SENSOR(bed, TT_INTERCOM, 1, 0) // bed has no heater attached #define HEATER_bed HEATER_noheater diff --git a/config.gen6.h b/config.gen6.h index bbc2dc2..cda4bf6 100644 --- a/config.gen6.h +++ b/config.gen6.h @@ -260,23 +260,27 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* If your temperature sensor has no associated heater, enter '255' as the * -* heater index. Unassociated temperature sensors are still read, but they * -* do not affect firmware operation * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, PINA5, THERMISTOR_EXTRUDER) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, PINA5, THERMISTOR_EXTRUDER) diff --git a/config.gen7.h b/config.gen7.h index 977c01a..bc52d02 100644 --- a/config.gen7.h +++ b/config.gen7.h @@ -265,30 +265,28 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -//DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, 0, THERMISTOR_EXTRUDER) -// DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, 1, THERMISTOR_EXTRUDER) -// "noheater" is a special name for a sensor which doesn't have a heater. -// Use "M105 P#" to read it, where # is a zero-based index into this list. -// DEFINE_TEMP_SENSOR(noheater, TT_THERMISTOR, 1, 0) - -// to get both thermistors working make sure to use an appropriate 'ThermistorTable.h' file! -// See 'ThermistorTable.gen7.h' for an example -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, PINA1, THERMISTOR_EXTRUDER) -DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, PINA2, THERMISTOR_BED) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, PINA1, THERMISTOR_EXTRUDER) +DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, PINA2, THERMISTOR_BED) diff --git a/config.ramps-v1.2.h b/config.ramps-v1.2.h index 421f620..a4cc2e7 100644 --- a/config.ramps-v1.2.h +++ b/config.ramps-v1.2.h @@ -263,22 +263,28 @@ temperature is "achieved" for purposes of M109 and friends when actual temperatu /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO2_PIN, THERMISTOR_EXTRUDER) -DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1_PIN, THERMISTOR_EXTRUDER) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO2_PIN, THERMISTOR_EXTRUDER) +DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1_PIN, THERMISTOR_EXTRUDER) diff --git a/config.ramps-v1.3.h b/config.ramps-v1.3.h index 8d37bab..a120e20 100644 --- a/config.ramps-v1.3.h +++ b/config.ramps-v1.3.h @@ -267,22 +267,28 @@ temperature is "achieved" for purposes of M109 and friends when actual temperatu /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR( extruder, TT_THERMISTOR, AIO13_PIN, THERMISTOR_EXTRUDER) -//DEFINE_TEMP_SENSOR( bed, TT_THERMISTOR, AIO14_PIN, THERMISTOR_EXTRUDER) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO13_PIN, THERMISTOR_EXTRUDER) +// DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO14_PIN, THERMISTOR_EXTRUDER) diff --git a/config.sanguinololu-v1.1.h b/config.sanguinololu-v1.1.h index aae025b..f704cc4 100644 --- a/config.sanguinololu-v1.1.h +++ b/config.sanguinololu-v1.1.h @@ -264,25 +264,28 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO7_PIN, THERMISTOR_EXTRUDER) -DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6_PIN, THERMISTOR_EXTRUDER) -// "noheater" is a special name for a sensor which doesn't have a heater. -// Use "M105 P#" to read it, where # is a zero-based index into this list. -// DEFINE_TEMP_SENSOR(noheater, TT_THERMISTOR, 1, 0) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO7_PIN, THERMISTOR_EXTRUDER) +DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6_PIN, THERMISTOR_EXTRUDER) diff --git a/config.sanguinololu-v1.2.h b/config.sanguinololu-v1.2.h index 4676f03..52b1e6f 100644 --- a/config.sanguinololu-v1.2.h +++ b/config.sanguinololu-v1.2.h @@ -264,25 +264,28 @@ /***************************************************************************\ * * -* Define your temperature sensors here * +* Define your temperature sensors here. One line for each sensor, only * +* limited by the number of available ATmega pins. * * * -* for GEN3 set temp_type to TT_INTERCOM and temp_pin to 0 * +* For a GEN3 set temp_type to TT_INTERCOM and temp_pin to 0. * * * -* Types are same as TEMP_ list above- TT_MAX6675, TT_THERMISTOR, TT_AD595, * +* Types are same as TEMP_ list above - TT_MAX6675, TT_THERMISTOR, TT_AD595, * * TT_PT100, TT_INTERCOM, TT_NONE. See list in temp.c. * * * +* The "additional" field is used for TT_THERMISTOR only. It defines the * +* name of the table(s) in ThermistorTable.h to use. Typically, this is * +* THERMISTOR_EXTRUDER for the first or only table, or THERMISTOR_BED for * +* the second table. See also early in ThermistorTable.{single|double}.h. * +* * \***************************************************************************/ #ifndef DEFINE_TEMP_SENSOR #define DEFINE_TEMP_SENSOR(...) #endif -// name type pin additional -DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO7_PIN, THERMISTOR_EXTRUDER) -DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6_PIN, THERMISTOR_EXTRUDER) -// "noheater" is a special name for a sensor which doesn't have a heater. -// Use "M105 P#" to read it, where # is a zero-based index into this list. -// DEFINE_TEMP_SENSOR(noheater, TT_THERMISTOR, 1, 0) +// name type pin additional +DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO7_PIN, THERMISTOR_EXTRUDER) +DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6_PIN, THERMISTOR_BED)