Distribute on/off on PWM pins to all config templates.
This commit is contained in:
parent
0b11812ce5
commit
7c3920a552
|
|
@ -325,9 +325,6 @@ DEFINE_TEMP_SENSOR(bed, TT_INTERCOM, AIO1, 0)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -340,15 +337,22 @@ DEFINE_TEMP_SENSOR(bed, TT_INTERCOM, AIO1, 0)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
// DEFINE_HEATER(extruder, PINB3)
|
||||
// DEFINE_HEATER(bed, PINB4)
|
||||
// name port pwm
|
||||
// DEFINE_HEATER(extruder, PINB3, 1)
|
||||
// DEFINE_HEATER(bed, PINB4, 1)
|
||||
|
||||
/** \def HEATER_EXTRUDER
|
||||
\def HEATER_BED
|
||||
|
|
|
|||
|
|
@ -317,9 +317,6 @@ DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO5, THERMISTOR_EXTRUDER)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -332,14 +329,21 @@ DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO5, THERMISTOR_EXTRUDER)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, PD6)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, PD6, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -326,9 +326,6 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO2, THERMISTOR_BED)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -341,15 +338,22 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO2, THERMISTOR_BED)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, DIO4)
|
||||
DEFINE_HEATER(bed, DIO3)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, DIO4, 1)
|
||||
DEFINE_HEATER(bed, DIO3, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -326,9 +326,6 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO0, THERMISTOR_BED)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -341,15 +338,22 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO0, THERMISTOR_BED)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, DIO4)
|
||||
DEFINE_HEATER(bed, DIO3)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, DIO4, 1)
|
||||
DEFINE_HEATER(bed, DIO3, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -321,9 +321,6 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1, THERMISTOR_EXTRUDER)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -336,6 +333,13 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1, THERMISTOR_EXTRUDER)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
|
|
@ -343,10 +347,10 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1, THERMISTOR_EXTRUDER)
|
|||
#endif
|
||||
|
||||
// NOTE: these pins are for RAMPS V1.1 and newer. V1.0 is different
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, PB4)
|
||||
DEFINE_HEATER(bed, PH5)
|
||||
DEFINE_HEATER(fan, PH6)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, PB4, 1)
|
||||
DEFINE_HEATER(bed, PH5, 1)
|
||||
DEFINE_HEATER(fan, PH6, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -325,9 +325,6 @@ DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO13, THERMISTOR_EXTRUDER)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -340,6 +337,13 @@ DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO13, THERMISTOR_EXTRUDER)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
|
|
@ -347,9 +351,9 @@ DEFINE_TEMP_SENSOR(extruder, TT_THERMISTOR, AIO13, THERMISTOR_EXTRUDER)
|
|||
#endif
|
||||
|
||||
// NOTE: these pins are for RAMPS V1.1 and newer. V1.0 is different
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, PB4)
|
||||
//DEFINE_HEATER( bed, PH5)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, PB4, 1)
|
||||
//DEFINE_HEATER( bed, PH5, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -322,9 +322,6 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6, THERMISTOR_EXTRUDER)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -337,15 +334,22 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6, THERMISTOR_EXTRUDER)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, PD5)
|
||||
DEFINE_HEATER(bed, PD6)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, PD5, 1)
|
||||
DEFINE_HEATER(bed, PD6, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -322,9 +322,6 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6, THERMISTOR_BED)
|
|||
* *
|
||||
* Define your heaters here. *
|
||||
* *
|
||||
* Currently, heaters work on PWM-able pins, only. See the end of this file *
|
||||
* for PWM-able pin mappings. *
|
||||
* *
|
||||
* To attach a heater to a temp sensor above, simply use exactly the same *
|
||||
* name - copy+paste is your friend. Some common names are 'extruder', *
|
||||
* 'bed', 'fan', 'motor', ... names with special meaning can be found *
|
||||
|
|
@ -337,15 +334,22 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO6, THERMISTOR_BED)
|
|||
* temperature sensor of TT_NONE, then you can control the spindle's rpm *
|
||||
* via temperature commands. M104 S1..255 for spindle on, M104 S0 for off. *
|
||||
* *
|
||||
* Set 'pwm' to ... *
|
||||
* 1 for using PWM on a PWM-able pin and on/off on other pins. *
|
||||
* 0 for using on/off on a PWM-able pin, too. *
|
||||
* Using PWM usually gives smoother temperature control but can conflict *
|
||||
* with slow switches, like solid state relays. PWM frequency can be *
|
||||
* influenced globally with FAST_PWM, see below. *
|
||||
* *
|
||||
\***************************************************************************/
|
||||
|
||||
#ifndef DEFINE_HEATER
|
||||
#define DEFINE_HEATER(...)
|
||||
#endif
|
||||
|
||||
// name port
|
||||
DEFINE_HEATER(extruder, PD5)
|
||||
DEFINE_HEATER(bed, PD4)
|
||||
// name port pwm
|
||||
DEFINE_HEATER(extruder, PD5, 1)
|
||||
DEFINE_HEATER(bed, PD4, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
|
|
@ -404,8 +404,8 @@ DEFINE_TEMP_SENSOR(bed, TT_THERMISTOR, AIO1, THERMISTOR_EXTRUDER)
|
|||
DEFINE_HEATER(extruder, DIO10, 1)
|
||||
DEFINE_HEATER(bed, DIO9, 1)
|
||||
DEFINE_HEATER(fan, DIO8, 0)
|
||||
// DEFINE_HEATER(chamber, PIND7)
|
||||
// DEFINE_HEATER(motor, PIND6)
|
||||
// DEFINE_HEATER(chamber, PIND7, 1)
|
||||
// DEFINE_HEATER(motor, PIND6, 1)
|
||||
|
||||
/// and now because the c preprocessor isn't as smart as it could be,
|
||||
/// uncomment the ones you've listed above and comment the rest.
|
||||
|
|
|
|||
Loading…
Reference in New Issue