|
|
@ -168,52 +168,35 @@ |
|
|
|
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
|
|
|
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
|
|
|
|
|
|
|
//
|
|
|
|
// Augmentation for auto-assigning RAMPS plugs
|
|
|
|
//
|
|
|
|
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D) |
|
|
|
#if HAS_MULTI_HOTEND |
|
|
|
#if TEMP_SENSOR_BED |
|
|
|
#define IS_RAMPS_EEB |
|
|
|
#else |
|
|
|
#define IS_RAMPS_EEF |
|
|
|
#endif |
|
|
|
#elif TEMP_SENSOR_BED |
|
|
|
#define IS_RAMPS_EFB |
|
|
|
#else |
|
|
|
#define IS_RAMPS_EFF |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
#ifndef MOSFET_D_PIN |
|
|
|
#define MOSFET_D_PIN -1 |
|
|
|
#ifndef MOSFET_A_PIN |
|
|
|
#define MOSFET_A_PIN P2_05 |
|
|
|
#endif |
|
|
|
#ifndef RAMPS_D8_PIN |
|
|
|
#define RAMPS_D8_PIN P2_07 // (8)
|
|
|
|
#ifndef MOSFET_B_PIN |
|
|
|
#define MOSFET_B_PIN P2_04 |
|
|
|
#endif |
|
|
|
#ifndef RAMPS_D9_PIN |
|
|
|
#define RAMPS_D9_PIN P2_04 // (9)
|
|
|
|
#ifndef MOSFET_C_PIN |
|
|
|
#define MOSFET_C_PIN P2_07 |
|
|
|
#endif |
|
|
|
#ifndef RAMPS_D10_PIN |
|
|
|
#define RAMPS_D10_PIN P2_05 // (10)
|
|
|
|
#ifndef MOSFET_D_PIN |
|
|
|
#define MOSFET_D_PIN -1 |
|
|
|
#endif |
|
|
|
|
|
|
|
#define HEATER_0_PIN RAMPS_D10_PIN |
|
|
|
|
|
|
|
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
|
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
|
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
|
|
|
#define HEATER_1_PIN RAMPS_D9_PIN |
|
|
|
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
|
|
|
#define HEATER_1_PIN RAMPS_D9_PIN |
|
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
|
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
|
|
|
#define FAN1_PIN RAMPS_D8_PIN |
|
|
|
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
|
|
|
#define HEATER_BED_PIN RAMPS_D8_PIN |
|
|
|
#define HEATER_0_PIN MOSFET_A_PIN |
|
|
|
|
|
|
|
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
|
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
|
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
|
|
|
#define HEATER_1_PIN MOSFET_B_PIN |
|
|
|
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
|
|
|
#define HEATER_1_PIN MOSFET_B_PIN |
|
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
|
#elif FET_ORDER_EFF // Hotend, Fan, Fan
|
|
|
|
#define FAN1_PIN MOSFET_C_PIN |
|
|
|
#elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
|
|
|
#define HEATER_BED_PIN MOSFET_C_PIN |
|
|
|
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL) |
|
|
|
#define FAN1_PIN MOSFET_D_PIN |
|
|
|
#else |
|
|
@ -222,14 +205,14 @@ |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef FAN_PIN |
|
|
|
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
|
|
|
#define FAN_PIN RAMPS_D9_PIN |
|
|
|
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
|
|
|
#define FAN_PIN RAMPS_D8_PIN |
|
|
|
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
|
|
|
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
|
|
|
#define FAN_PIN MOSFET_B_PIN |
|
|
|
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
|
|
|
#define FAN_PIN MOSFET_C_PIN |
|
|
|
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
|
|
|
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
|
|
|
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
|
|
|
#define FAN_PIN RAMPS_D9_PIN |
|
|
|
#define FAN_PIN MOSFET_B_PIN |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
@ -484,14 +467,14 @@ |
|
|
|
* All Fast PWMs have a 50Hz rate. |
|
|
|
* |
|
|
|
* 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. |
|
|
|
* |
|
|
|
* P1_20 (11) SERVO0_PIN |
|
|
|
* P1_21 ( 6) SERVO1_PIN J5-1 |
|
|
|
* P0_18 ( 4) SERVO3_PIN 5V output |
|
|
|
* *P2_04 ( 9) RAMPS_D9_PIN |
|
|
|
* *P2_05 (10) RAMPS_D10_PIN |
|
|
|
* *P2_04 ( 9) MOSFET_B_PIN |
|
|
|
* *P2_05 (10) MOSFET_A_PIN |
|
|
|
* |
|
|
|
* * - 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. |
|
|
|