|
@ -169,51 +169,34 @@ |
|
|
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
|
|
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// Augmentation for auto-assigning RAMPS plugs
|
|
|
// Heaters / Fans
|
|
|
//
|
|
|
//
|
|
|
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D) |
|
|
#ifndef MOSFET_A_PIN |
|
|
#if HAS_MULTI_HOTEND |
|
|
#define MOSFET_A_PIN P2_05 |
|
|
#if TEMP_SENSOR_BED |
|
|
|
|
|
#define IS_RAMPS_EEB |
|
|
|
|
|
#else |
|
|
|
|
|
#define IS_RAMPS_EEF |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#elif TEMP_SENSOR_BED |
|
|
#ifndef MOSFET_B_PIN |
|
|
#define IS_RAMPS_EFB |
|
|
#define MOSFET_B_PIN P2_04 |
|
|
#else |
|
|
|
|
|
#define IS_RAMPS_EFF |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifndef MOSFET_C_PIN |
|
|
|
|
|
#define MOSFET_C_PIN P2_07 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
// Heaters / Fans
|
|
|
|
|
|
//
|
|
|
|
|
|
#ifndef MOSFET_D_PIN |
|
|
#ifndef MOSFET_D_PIN |
|
|
#define MOSFET_D_PIN -1 |
|
|
#define MOSFET_D_PIN -1 |
|
|
#endif |
|
|
#endif |
|
|
#ifndef RAMPS_D8_PIN |
|
|
|
|
|
#define RAMPS_D8_PIN P2_07 // (8)
|
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef RAMPS_D9_PIN |
|
|
|
|
|
#define RAMPS_D9_PIN P2_04 // (9)
|
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef RAMPS_D10_PIN |
|
|
|
|
|
#define RAMPS_D10_PIN P2_05 // (10)
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define HEATER_0_PIN RAMPS_D10_PIN |
|
|
#define HEATER_0_PIN MOSFET_A_PIN |
|
|
|
|
|
|
|
|
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
|
|
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
|
|
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
|
|
#define HEATER_1_PIN RAMPS_D9_PIN |
|
|
#define HEATER_1_PIN MOSFET_B_PIN |
|
|
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
|
|
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
|
|
#define HEATER_1_PIN RAMPS_D9_PIN |
|
|
#define HEATER_1_PIN MOSFET_B_PIN |
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
|
|
#elif FET_ORDER_EFF // Hotend, Fan, Fan
|
|
|
#define FAN1_PIN RAMPS_D8_PIN |
|
|
#define FAN1_PIN MOSFET_C_PIN |
|
|
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
|
|
#elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL) |
|
|
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL) |
|
|
#define FAN1_PIN MOSFET_D_PIN |
|
|
#define FAN1_PIN MOSFET_D_PIN |
|
|
#else |
|
|
#else |
|
@ -222,14 +205,14 @@ |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifndef FAN_PIN |
|
|
#ifndef FAN_PIN |
|
|
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
|
|
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
|
|
#define FAN_PIN RAMPS_D9_PIN |
|
|
#define FAN_PIN MOSFET_B_PIN |
|
|
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
|
|
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
|
|
#define FAN_PIN RAMPS_D8_PIN |
|
|
#define FAN_PIN MOSFET_C_PIN |
|
|
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
|
|
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
|
|
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
|
|
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
|
|
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
|
|
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
|
|
#define FAN_PIN RAMPS_D9_PIN |
|
|
#define FAN_PIN MOSFET_B_PIN |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -484,14 +467,14 @@ |
|
|
* All Fast PWMs have a 50Hz rate. |
|
|
* All Fast PWMs have a 50Hz rate. |
|
|
* |
|
|
* |
|
|
* The following pins/signals use the direct method. All other pins use the |
|
|
* The following pins/signals use the direct method. All other pins use the |
|
|
* the interrupt method. Note that SERVO2_PIN and RAMPS_D8_PIN use the |
|
|
* the interrupt method. Note that SERVO2_PIN and MOSFET_C_PIN use the |
|
|
* interrupt method. |
|
|
* interrupt method. |
|
|
* |
|
|
* |
|
|
* P1_20 (11) SERVO0_PIN |
|
|
* P1_20 (11) SERVO0_PIN |
|
|
* P1_21 ( 6) SERVO1_PIN J5-1 |
|
|
* P1_21 ( 6) SERVO1_PIN J5-1 |
|
|
* P0_18 ( 4) SERVO3_PIN 5V output |
|
|
* P0_18 ( 4) SERVO3_PIN 5V output |
|
|
* *P2_04 ( 9) RAMPS_D9_PIN |
|
|
* *P2_04 ( 9) MOSFET_B_PIN |
|
|
* *P2_05 (10) RAMPS_D10_PIN |
|
|
* *P2_05 (10) MOSFET_A_PIN |
|
|
* |
|
|
* |
|
|
* * - If used as a heater driver then a Fast PWM is NOT assigned. If used as |
|
|
* * - If used as a heater driver then a Fast PWM is NOT assigned. If used as |
|
|
* a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it. |
|
|
* a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it. |
|
|