🎨 Rename FAN_PIN to FAN0_PIN (#25568)
This commit is contained in:
parent
01296788dc
commit
2e4bf0ab9b
|
@ -255,84 +255,6 @@ enum ClockSource2 : uint8_t {
|
|||
#define SET_FOCB(T,V) SET_FOC(T,B,V)
|
||||
#define SET_FOCC(T,V) SET_FOC(T,C,V)
|
||||
|
||||
#if 0
|
||||
|
||||
/**
|
||||
* PWM availability macros
|
||||
*/
|
||||
|
||||
// Determine which hardware PWMs are already in use
|
||||
#define _PWM_CHK_FAN_B(P) (P == E0_AUTO_FAN_PIN || P == E1_AUTO_FAN_PIN || P == E2_AUTO_FAN_PIN || P == E3_AUTO_FAN_PIN || P == E4_AUTO_FAN_PIN || P == E5_AUTO_FAN_PIN || P == E6_AUTO_FAN_PIN || P == E7_AUTO_FAN_PIN || P == CHAMBER_AUTO_FAN_PIN || P == COOLER_AUTO_FAN_PIN)
|
||||
#if PIN_EXISTS(CONTROLLER_FAN)
|
||||
#define PWM_CHK_FAN_B(P) (_PWM_CHK_FAN_B(P) || P == CONTROLLER_FAN_PIN)
|
||||
#else
|
||||
#define PWM_CHK_FAN_B(P) _PWM_CHK_FAN_B(P)
|
||||
#endif
|
||||
|
||||
#if ANY_PIN(FAN, FAN1, FAN2, FAN3, FAN4, FAN5, FAN6, FAN7)
|
||||
#if PIN_EXISTS(FAN7)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN || P == FAN6_PIN || P == FAN7_PIN)
|
||||
#elif PIN_EXISTS(FAN6)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN || P == FAN6_PIN)
|
||||
#elif PIN_EXISTS(FAN5)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN || P == FAN5_PIN)
|
||||
#elif PIN_EXISTS(FAN4)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN || P == FAN4_PIN)
|
||||
#elif PIN_EXISTS(FAN3)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN || P == FAN3_PIN)
|
||||
#elif PIN_EXISTS(FAN2)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN || P == FAN2_PIN)
|
||||
#elif PIN_EXISTS(FAN1)
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN || P == FAN1_PIN)
|
||||
#else
|
||||
#define PWM_CHK_FAN_A(P) (P == FAN0_PIN)
|
||||
#endif
|
||||
#else
|
||||
#define PWM_CHK_FAN_A(P) false
|
||||
#endif
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_XY)
|
||||
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E_PIN || P == MOTOR_CURRENT_PWM_E0_PIN || P == MOTOR_CURRENT_PWM_E1_PIN || P == MOTOR_CURRENT_PWM_Z_PIN || P == MOTOR_CURRENT_PWM_XY_PIN)
|
||||
#elif PIN_EXISTS(MOTOR_CURRENT_PWM_Z)
|
||||
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E_PIN || P == MOTOR_CURRENT_PWM_E0_PIN || P == MOTOR_CURRENT_PWM_E1_PIN || P == MOTOR_CURRENT_PWM_Z_PIN)
|
||||
#else
|
||||
#define PWM_CHK_MOTOR_CURRENT(P) (P == MOTOR_CURRENT_PWM_E_PIN || P == MOTOR_CURRENT_PWM_E0_PIN || P == MOTOR_CURRENT_PWM_E1_PIN)
|
||||
#endif
|
||||
#else
|
||||
#define PWM_CHK_MOTOR_CURRENT(P) false
|
||||
#endif
|
||||
|
||||
#ifdef NUM_SERVOS
|
||||
#if AVR_ATmega2560_FAMILY
|
||||
#define PWM_CHK_SERVO(P) (P == 5 || (NUM_SERVOS > 12 && P == 6) || (NUM_SERVOS > 24 && P == 46)) // PWMS 3A, 4A & 5A
|
||||
#elif AVR_ATmega2561_FAMILY
|
||||
#define PWM_CHK_SERVO(P) (P == 5) // PWM3A
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
#define PWM_CHK_SERVO(P) false
|
||||
#elif AVR_AT90USB1286_FAMILY
|
||||
#define PWM_CHK_SERVO(P) (P == 16) // PWM3A
|
||||
#elif AVR_ATmega328_FAMILY
|
||||
#define PWM_CHK_SERVO(P) false
|
||||
#endif
|
||||
#else
|
||||
#define PWM_CHK_SERVO(P) false
|
||||
#endif
|
||||
|
||||
#if ENABLED(BARICUDA)
|
||||
#if HAS_HEATER_1 && HAS_HEATER_2
|
||||
#define PWM_CHK_HEATER(P) (P == HEATER_1_PIN || P == HEATER_2_PIN)
|
||||
#elif HAS_HEATER_1
|
||||
#define PWM_CHK_HEATER(P) (P == HEATER_1_PIN)
|
||||
#endif
|
||||
#else
|
||||
#define PWM_CHK_HEATER(P) false
|
||||
#endif
|
||||
|
||||
#define PWM_CHK(P) (PWM_CHK_HEATER(P) || PWM_CHK_SERVO(P) || PWM_CHK_MOTOR_CURRENT(P) || PWM_CHK_FAN_A(P) || PWM_CHK_FAN_B(P))
|
||||
|
||||
#endif // PWM_CHK is not used in Marlin
|
||||
|
||||
// define which hardware PWMs are available for the current CPU
|
||||
// all timer 1 PWMS deleted from this list because they are never available
|
||||
#if AVR_ATmega2560_FAMILY
|
||||
|
|
|
@ -69,8 +69,8 @@
|
|||
/**
|
||||
* Checks for SOFT PWM
|
||||
*/
|
||||
#if HAS_FAN0 && FAN_PIN == 9 && DISABLED(FAN_SOFT_PWM) && ENABLED(SPEAKER)
|
||||
#error "FAN_PIN 9 Hardware PWM uses Timer 2 which conflicts with Arduino AVR Tone Timer (for SPEAKER)."
|
||||
#if HAS_FAN0 && FAN0_PIN == 9 && DISABLED(FAN_SOFT_PWM) && ENABLED(SPEAKER)
|
||||
#error "FAN0_PIN 9 Hardware PWM uses Timer 2 which conflicts with Arduino AVR Tone Timer (for SPEAKER)."
|
||||
#error "Disable SPEAKER or enable FAN_SOFT_PWM."
|
||||
#endif
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
* Check for common serial pin conflicts
|
||||
*/
|
||||
#define _CHECK_SERIAL_PIN(N) (( \
|
||||
BTN_EN1 == N || DOGLCD_CS == N || HEATER_BED_PIN == N || FAN_PIN == N || \
|
||||
BTN_EN1 == N || DOGLCD_CS == N || HEATER_BED_PIN == N || FAN0_PIN == N || \
|
||||
SDIO_D2_PIN == N || SDIO_D3_PIN == N || SDIO_CK_PIN == N || SDIO_CMD_PIN == N \
|
||||
))
|
||||
#define CHECK_SERIAL_PIN(T,N) defined(UART##N##_##T##_PIN) && _CHECK_SERIAL_PIN(UART##N##_##T##_PIN)
|
||||
|
|
|
@ -81,7 +81,7 @@ typedef uint16_t hal_timer_t;
|
|||
#endif
|
||||
|
||||
#if MB(BTT_SKR_MINI_E3_V1_0, BTT_SKR_E3_DIP, BTT_SKR_MINI_E3_V1_2, MKS_ROBIN_LITE, MKS_ROBIN_E3D, MKS_ROBIN_E3)
|
||||
// SKR Mini E3 boards use PA8 as FAN_PIN, so TIMER 1 is used for Fan PWM.
|
||||
// SKR Mini E3 boards use PA8 as FAN0_PIN, so TIMER 1 is used for Fan PWM.
|
||||
#ifdef STM32_HIGH_DENSITY
|
||||
#define MF_TIMER_SERVO0 8 // tone.cpp uses Timer 4
|
||||
#else
|
||||
|
|
|
@ -2631,16 +2631,12 @@
|
|||
#define _NOT_E_AUTO(N,F) (E##N##_AUTO_FAN_PIN != FAN##F##_PIN)
|
||||
#define _HAS_FAN(F) (PIN_EXISTS(FAN##F) \
|
||||
&& CONTROLLER_FAN_PIN != FAN##F##_PIN \
|
||||
&& _NOT_E_AUTO(0,F) \
|
||||
&& _NOT_E_AUTO(1,F) \
|
||||
&& _NOT_E_AUTO(2,F) \
|
||||
&& _NOT_E_AUTO(3,F) \
|
||||
&& _NOT_E_AUTO(4,F) \
|
||||
&& _NOT_E_AUTO(5,F) \
|
||||
&& _NOT_E_AUTO(6,F) \
|
||||
&& _NOT_E_AUTO(7,F) \
|
||||
&& _NOT_E_AUTO(0,F) && _NOT_E_AUTO(1,F) \
|
||||
&& _NOT_E_AUTO(2,F) && _NOT_E_AUTO(3,F) \
|
||||
&& _NOT_E_AUTO(4,F) && _NOT_E_AUTO(5,F) \
|
||||
&& _NOT_E_AUTO(6,F) && _NOT_E_AUTO(7,F) \
|
||||
&& F < MAX_FANS)
|
||||
#if PIN_EXISTS(FAN)
|
||||
#if _HAS_FAN(0)
|
||||
#define HAS_FAN0 1
|
||||
#endif
|
||||
#if _HAS_FAN(1)
|
||||
|
|
|
@ -682,6 +682,8 @@
|
|||
#error "PROBE_PT_[123]_[XY] is now defined using PROBE_PT_[123] with an array { x, y }."
|
||||
#elif defined(SQUARE_WAVE_STEPPING)
|
||||
#error "SQUARE_WAVE_STEPPING is now EDGE_STEPPING."
|
||||
#elif defined(FAN_PIN)
|
||||
#error "FAN_PIN is now FAN0_PIN."
|
||||
#endif
|
||||
|
||||
// L64xx stepper drivers have been removed
|
||||
|
@ -2371,21 +2373,21 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
|
|||
*/
|
||||
#if HAS_AUTO_FAN
|
||||
#if HAS_FAN0
|
||||
#if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN_PIN
|
||||
#error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."
|
||||
#elif PIN_EXISTS(E1_AUTO_FAN) && E1_AUTO_FAN_PIN == FAN_PIN
|
||||
#error "You cannot set E1_AUTO_FAN_PIN equal to FAN_PIN."
|
||||
#elif PIN_EXISTS(E2_AUTO_FAN) && E2_AUTO_FAN_PIN == FAN_PIN
|
||||
#error "You cannot set E2_AUTO_FAN_PIN equal to FAN_PIN."
|
||||
#elif PIN_EXISTS(E3_AUTO_FAN) && E3_AUTO_FAN_PIN == FAN_PIN
|
||||
#error "You cannot set E3_AUTO_FAN_PIN equal to FAN_PIN."
|
||||
#if PIN_EXISTS(E0_AUTO_FAN) && E0_AUTO_FAN_PIN == FAN0_PIN
|
||||
#error "You cannot set E0_AUTO_FAN_PIN equal to FAN0_PIN."
|
||||
#elif PIN_EXISTS(E1_AUTO_FAN) && E1_AUTO_FAN_PIN == FAN0_PIN
|
||||
#error "You cannot set E1_AUTO_FAN_PIN equal to FAN0_PIN."
|
||||
#elif PIN_EXISTS(E2_AUTO_FAN) && E2_AUTO_FAN_PIN == FAN0_PIN
|
||||
#error "You cannot set E2_AUTO_FAN_PIN equal to FAN0_PIN."
|
||||
#elif PIN_EXISTS(E3_AUTO_FAN) && E3_AUTO_FAN_PIN == FAN0_PIN
|
||||
#error "You cannot set E3_AUTO_FAN_PIN equal to FAN0_PIN."
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_FAN0
|
||||
#if CONTROLLER_FAN_PIN == FAN_PIN
|
||||
#error "You cannot set CONTROLLER_FAN_PIN equal to FAN_PIN."
|
||||
#if CONTROLLER_FAN_PIN == FAN0_PIN
|
||||
#error "You cannot set CONTROLLER_FAN_PIN equal to FAN0_PIN."
|
||||
#elif ENABLED(FAN_SOFT_PWM_REQUIRED) && DISABLED(FAN_SOFT_PWM)
|
||||
#error "FAN_SOFT_PWM is required for your board. Enable it to continue."
|
||||
#endif
|
||||
|
@ -2427,8 +2429,8 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE, "Movement bounds (X_MIN_POS, X_MAX_POS
|
|||
#if NEED_CASE_LIGHT_PIN
|
||||
#if !PIN_EXISTS(CASE_LIGHT)
|
||||
#error "CASE_LIGHT_ENABLE requires CASE_LIGHT_PIN, CASE_LIGHT_USE_NEOPIXEL, or CASE_LIGHT_USE_RGB_LED."
|
||||
#elif CASE_LIGHT_PIN == FAN_PIN
|
||||
#error "CASE_LIGHT_PIN conflicts with FAN_PIN. Resolve before continuing."
|
||||
#elif CASE_LIGHT_PIN == FAN0_PIN
|
||||
#error "CASE_LIGHT_PIN conflicts with FAN0_PIN. Resolve before continuing."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -4191,11 +4193,11 @@ static_assert(_PLUS_TEST(4), "HOMING_FEEDRATE_MM_M values must be positive.");
|
|||
#elif !(defined(SPEED_POWER_MIN) && defined(SPEED_POWER_MAX) && defined(SPEED_POWER_STARTUP))
|
||||
#error "SPINDLE_LASER_USE_PWM equation constant(s) missing."
|
||||
#elif _PIN_CONFLICT(X_MIN)
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with X_MIN_PIN."
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with X_MIN_PIN."
|
||||
#elif _PIN_CONFLICT(X_MAX)
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with X_MAX_PIN."
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with X_MAX_PIN."
|
||||
#elif _PIN_CONFLICT(Z_STEP)
|
||||
#error "SPINDLE_LASER_USE_PWM pin conflicts with Z_STEP_PIN."
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with Z_STEP_PIN."
|
||||
#elif _PIN_CONFLICT(CASE_LIGHT)
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with CASE_LIGHT_PIN."
|
||||
#elif _PIN_CONFLICT(E0_AUTO_FAN)
|
||||
|
@ -4215,7 +4217,7 @@ static_assert(_PLUS_TEST(4), "HOMING_FEEDRATE_MM_M values must be positive.");
|
|||
#elif _PIN_CONFLICT(E7_AUTO_FAN)
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with E7_AUTO_FAN_PIN."
|
||||
#elif _PIN_CONFLICT(FAN)
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with FAN_PIN."
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with FAN0_PIN."
|
||||
#elif _PIN_CONFLICT(FAN1)
|
||||
#error "SPINDLE_LASER_PWM_PIN conflicts with FAN1_PIN."
|
||||
#elif _PIN_CONFLICT(FAN2)
|
||||
|
|
|
@ -2677,7 +2677,7 @@ void Temperature::init() {
|
|||
#endif
|
||||
|
||||
#if HAS_FAN0
|
||||
INIT_FAN_PIN(FAN_PIN);
|
||||
INIT_FAN_PIN(FAN0_PIN);
|
||||
#endif
|
||||
#if HAS_FAN1
|
||||
INIT_FAN_PIN(FAN1_PIN);
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 0
|
||||
#define FAN0_PIN 0
|
||||
#define HEATER_BED_PIN 15
|
||||
|
||||
//
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
|
||||
// General use mosfets, useful for things like pumps and solenoids
|
||||
// Shift register pins 128, 129, 130 and 131 are broken out and can be used
|
||||
#define FAN_PIN 132
|
||||
#define FAN0_PIN 132
|
||||
#define FAN1_PIN 134
|
||||
#define FAN2_PIN 135
|
||||
#define FAN3_PIN 136
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define FAN0_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
// SPI
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define FAN0_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
//
|
||||
#define HEATER_0_PIN 145
|
||||
#define HEATER_1_PIN 146
|
||||
#define FAN_PIN 147
|
||||
#define FAN0_PIN 147
|
||||
#define FAN1_PIN 148
|
||||
#define HEATER_BED_PIN 144
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 145 // 2
|
||||
#define FAN_PIN 146 // 15
|
||||
#define FAN0_PIN 146 // 15
|
||||
#define HEATER_BED_PIN 144 // 4
|
||||
|
||||
#define CONTROLLER_FAN_PIN 147
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
//
|
||||
#define HEATER_0_PIN 108
|
||||
#define HEATER_BED_PIN 109
|
||||
#define FAN_PIN 118 // FAN0
|
||||
#define FAN0_PIN 118 // FAN0
|
||||
#define FAN1_PIN 119 // FAN1
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
|
|
|
@ -161,21 +161,21 @@
|
|||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_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 FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define FAN1_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_SF // Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
|
@ -184,8 +184,8 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 4 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -82,8 +82,8 @@
|
|||
// EFB
|
||||
#define HEATER_0_PIN P2_04
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_07
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_07
|
||||
#endif
|
||||
#define FAN1_PIN P0_26
|
||||
|
||||
|
|
|
@ -97,8 +97,8 @@
|
|||
//
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -168,7 +168,7 @@
|
|||
* PWM1.4 P1_23 <none>
|
||||
* PWM1.4 P2_3 E0_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN
|
||||
* PWM1.5 P2_4 FAN_PIN
|
||||
* PWM1.5 P2_4 FAN0_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN
|
||||
* PWM1.6 P2_5 HEATER_BED_PIN
|
||||
*/
|
||||
|
|
|
@ -74,8 +74,8 @@
|
|||
//
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -147,7 +147,7 @@
|
|||
* PWM1.4 P1_23 <none>
|
||||
* PWM1.4 P2_3 E0_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN
|
||||
* PWM1.5 P2_4 FAN_PIN
|
||||
* PWM1.5 P2_4 FAN0_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN
|
||||
* PWM1.6 P2_5 HEATER_BED_PIN
|
||||
*/
|
||||
|
|
|
@ -101,8 +101,8 @@
|
|||
#define HEATER_1_PIN P2_04
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_03
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_03
|
||||
#endif
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN P2_05
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
#define HEATER_0_PIN P2_06 // (H2: 10A shared)
|
||||
#define HEATER_1_PIN P2_07 // (H3: 10A shared)
|
||||
|
||||
#define FAN_PIN P2_11 // (FAN0: 1A)
|
||||
#define FAN0_PIN P2_11 // (FAN0: 1A)
|
||||
#define FAN1_PIN P2_13 // (FAN1: 1A)
|
||||
|
||||
//
|
||||
|
|
|
@ -123,7 +123,7 @@
|
|||
//
|
||||
#define HEATER_BED_PIN P1_19 // Not a PWM pin, software PWM required
|
||||
#define HEATER_0_PIN P3_26 // PWM1[3]
|
||||
#define FAN_PIN P3_25 // Part cooling fan - connected to PWM1[2]
|
||||
#define FAN0_PIN P3_25 // Part cooling fan - connected to PWM1[2]
|
||||
#define E0_AUTO_FAN_PIN P0_27 // Extruder cooling fan
|
||||
|
||||
//
|
||||
|
|
|
@ -101,8 +101,8 @@
|
|||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P2_06
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -209,8 +209,8 @@
|
|||
#define HEATER_1_PIN P2_06
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -203,15 +203,15 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#ifndef FAN0_PIN
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#define FAN0_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -87,8 +87,8 @@
|
|||
#define HEATER_BED2_PIN P2_04
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P2_06
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P1_24
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P1_24
|
||||
#endif
|
||||
#define FAN1_PIN P1_26
|
||||
|
||||
|
|
|
@ -100,8 +100,8 @@
|
|||
#define HEATER_BED_PIN P2_07
|
||||
#define HEATER_0_PIN P2_04
|
||||
#define HEATER_1_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P0_26
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P0_26
|
||||
#endif
|
||||
#define FAN1_PIN P1_22
|
||||
|
||||
|
|
|
@ -104,8 +104,8 @@
|
|||
//
|
||||
#define HEATER_BED_PIN P2_07
|
||||
#define HEATER_0_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P0_26
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P0_26
|
||||
#endif
|
||||
#define FAN1_PIN P1_25
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
#define HEATER_0_PIN P2_03 // EXTRUDER 0
|
||||
#define HEATER_1_PIN P2_04 // EXTRUDER 1
|
||||
#define HEATER_BED_PIN P2_05 // BED
|
||||
#define FAN_PIN P2_01
|
||||
#define FAN0_PIN P2_01
|
||||
#define FAN1_PIN P2_02
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
|
|
|
@ -94,8 +94,8 @@
|
|||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07 // FET 1
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06 // FET 3
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06 // FET 3
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -125,7 +125,7 @@
|
|||
#define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
||||
#undef HEATER_BED_PIN
|
||||
#define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
||||
#undef FAN_PIN
|
||||
#undef FAN0_PIN
|
||||
#define SPINDLE_DIR_PIN P2_06 // FET 3
|
||||
#endif
|
||||
|
||||
|
|
|
@ -119,8 +119,8 @@
|
|||
#define HEATER_0_PIN P2_07 // FET 1
|
||||
#define HEATER_1_PIN P1_23 // FET 2
|
||||
#define HEATER_2_PIN P1_22 // FET 3
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06 // FET 4
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06 // FET 4
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@ -152,7 +152,7 @@
|
|||
#if HAS_CUTTER
|
||||
#undef HEATER_0_PIN
|
||||
#undef HEATER_BED_PIN
|
||||
#undef FAN_PIN
|
||||
#undef FAN0_PIN
|
||||
#define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
||||
#define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
||||
#define SPINDLE_DIR_PIN P2_06 // FET 4
|
||||
|
|
|
@ -144,8 +144,8 @@
|
|||
#define HEATER_0_PIN P3_25
|
||||
#define HEATER_1_PIN P1_20
|
||||
#define HEATER_2_PIN P1_23
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P1_18
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P1_18
|
||||
#endif
|
||||
#define FAN1_PIN P1_21
|
||||
#define FAN2_PIN P1_24
|
||||
|
|
|
@ -229,8 +229,8 @@
|
|||
#define FAN2_PIN P2_06 // HE1 for FAN3
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04 // FAN1
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04 // FAN1
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN P1_04 // FAN2
|
||||
|
|
|
@ -85,8 +85,8 @@
|
|||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P1_23
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06
|
||||
#endif
|
||||
#define FAN1_PIN P2_04
|
||||
|
||||
|
|
|
@ -119,8 +119,8 @@
|
|||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06
|
||||
#endif
|
||||
#define FAN1_PIN P1_22
|
||||
|
||||
|
|
|
@ -86,8 +86,8 @@
|
|||
#define HEATER_1_PIN 7
|
||||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 9
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 3
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 3
|
||||
#endif
|
||||
#define FAN2_PIN 58 // additional fan or light control output
|
||||
|
||||
|
|
|
@ -93,8 +93,8 @@
|
|||
#define HEATER_3_PIN 46
|
||||
#define HEATER_BED_PIN 2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
//#define FAN_PIN 7 // common PWM pin for all tools
|
||||
#ifndef FAN0_PIN
|
||||
//#define FAN0_PIN 7 // common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -93,8 +93,8 @@
|
|||
#define HEATER_3_PIN 3
|
||||
#define HEATER_BED_PIN 24
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
//
|
||||
// Fans
|
||||
//
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
|
||||
//
|
||||
// Auto fans
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define HEATER_0_PIN 83
|
||||
#define HEATER_BED_PIN 38
|
||||
|
||||
#define FAN_PIN 82
|
||||
#define FAN0_PIN 82
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -92,8 +92,8 @@
|
|||
#define HEATER_2_PIN 17 // 12V PWM3
|
||||
#define HEATER_BED_PIN 44 // DOUBLE 12V PWM
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 16 // 5V PWM
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 16 // 5V PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -95,8 +95,8 @@
|
|||
#define HEATER_0_PIN 2
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
#define HEATER_1_PIN 3
|
||||
#define HEATER_2_PIN 2
|
||||
#define HEATER_BED_PIN 4
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 8
|
||||
#define FAN2_PIN 7
|
||||
|
||||
|
|
|
@ -92,8 +92,8 @@
|
|||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
#define HEATER_0_PIN 2 // PWM
|
||||
#define HEATER_BED_PIN 4 // PWM
|
||||
#define HEATER_CHAMBER_PIN 3 // PWM
|
||||
#define FAN_PIN 7 // PWM
|
||||
#define FAN0_PIN 7 // PWM
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
#define HEATER_2_PIN 11 // 13
|
||||
#define HEATER_BED_PIN 10 // 14/15
|
||||
|
||||
#define FAN_PIN 7
|
||||
#define FAN0_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
#define HEATER_1_PIN 9 // Misc Connector, pins 5 and 6 (Out3)
|
||||
#define HEATER_BED_PIN 6 // Misc Connector, pins 9(-) and 10(+) (OutA)
|
||||
|
||||
#define FAN_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
|
||||
#define FAN0_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
|
||||
|
||||
#define LED_PIN 13
|
||||
|
||||
|
|
|
@ -93,8 +93,8 @@
|
|||
#define HEATER_1_PIN 11
|
||||
#define HEATER_BED_PIN 45
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 // M106 Sxxx command supported and tested. M107 as well.
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 // M106 Sxxx command supported and tested. M107 as well.
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN1
|
||||
|
|
|
@ -114,8 +114,8 @@
|
|||
#define HEATER_1_PIN 34
|
||||
#define HEATER_BED_PIN 28
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 39
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 39
|
||||
#endif
|
||||
#define FAN1_PIN 35
|
||||
#define FAN2_PIN 36
|
||||
|
|
|
@ -89,8 +89,8 @@
|
|||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 // IO pin. Buffer needed
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -103,8 +103,8 @@
|
|||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
|
|
|
@ -127,8 +127,8 @@
|
|||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 6
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 6
|
||||
#endif
|
||||
#define FAN1_PIN 7
|
||||
|
||||
|
|
|
@ -166,8 +166,8 @@
|
|||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN MOSFET_D_PIN
|
||||
#elif !defined(FAN_PIN)
|
||||
#define FAN_PIN MOSFET_D_PIN
|
||||
#elif !defined(FAN0_PIN)
|
||||
#define FAN0_PIN MOSFET_D_PIN
|
||||
#endif
|
||||
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
|
|
|
@ -90,8 +90,8 @@
|
|||
#define HEATER_1_PIN 8 // EXTRUDER 2
|
||||
#define HEATER_BED_PIN 3 // BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#define FAN_PIN 7 // material cooling fan
|
||||
#define FAN0_PIN 7 // material cooling fan
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
|
|
@ -108,8 +108,8 @@
|
|||
#endif
|
||||
#define HEATER_BED_PIN 8 // HEAT-BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
#ifndef FAN_2_PIN
|
||||
#define FAN_2_PIN 7
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#define HEATER_0_PIN 9 // E0
|
||||
#define HEATER_1_PIN 10 // E1
|
||||
#define FAN_PIN 11
|
||||
#define FAN0_PIN 11
|
||||
#define FAN2_PIN 12
|
||||
|
||||
#include "pins_PICA.h"
|
||||
|
|
|
@ -57,8 +57,8 @@
|
|||
#define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 5
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN 7
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
//
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_BED_PIN 44
|
||||
#define FAN_PIN 12 // IO pin. Buffer needed
|
||||
#define FAN0_PIN 12 // IO pin. Buffer needed
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
//
|
||||
#define HEATER_0_PIN 10 // EXTRUDER 1
|
||||
#define HEATER_BED_PIN 8 // BED
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#define FAN0_PIN 4 // IO pin. Buffer needed
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -739,8 +739,8 @@
|
|||
//
|
||||
// Fans
|
||||
//
|
||||
#if PIN_EXISTS(FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN_PIN)
|
||||
#if PIN_EXISTS(FAN0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN0_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN1_PIN)
|
||||
|
|
|
@ -377,10 +377,9 @@
|
|||
#undef W_SERIAL_RX_PIN
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN -1
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN -1
|
||||
#endif
|
||||
#define FAN0_PIN FAN_PIN
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN -1
|
||||
#endif
|
||||
|
|
|
@ -128,11 +128,11 @@
|
|||
#define HEATER_0_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#ifndef FAN0_PIN
|
||||
#ifdef MK3_FAN_PINS
|
||||
#define FAN_PIN 6
|
||||
#define FAN0_PIN 6
|
||||
#else
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -135,8 +135,8 @@
|
|||
#define HEATER_0_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
|
|
|
@ -109,8 +109,8 @@
|
|||
#endif
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
|
|
|
@ -140,8 +140,8 @@
|
|||
#define HEATER_2_PIN 6
|
||||
#define HEATER_BED_PIN 3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 6
|
||||
|
|
|
@ -105,8 +105,8 @@
|
|||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
#define FAN2_PIN 2
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
#define Y_STOP_PIN 14
|
||||
#define Z_STOP_PIN 18
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 6
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 6
|
||||
#endif
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
#define HEATER_0_PIN 4 // PG5 / PWM4
|
||||
#define HEATER_BED_PIN 3 // PE5 / PWM3
|
||||
|
||||
#define FAN_PIN 5 // PE3 / PWM5
|
||||
#define FAN0_PIN 5 // PE3 / PWM5
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -129,8 +129,8 @@
|
|||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#define BOARD_INFO_NAME "Formbot Raptor2"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#define FAN_PIN 6
|
||||
#define FAN0_PIN 6
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 22
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 58
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
#define FIL_RUNOUT_PIN 4
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 12
|
||||
|
||||
#define FIL_RUNOUT_PIN 22
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
#define HEATER_2_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 44
|
||||
#define FAN0_PIN 44
|
||||
#define FAN1_PIN 45
|
||||
#define FAN2_PIN 46
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN -1
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 10
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
#define CONTROLLER_FAN_PIN 9
|
||||
|
||||
//
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
//
|
||||
// PSU / SERVO
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define MOSFET_A_PIN 9 // HE0
|
||||
#define MOSFET_B_PIN 8 // HE1
|
||||
#define MOSFET_C_PIN 10 // HBED
|
||||
#define FAN_PIN 7
|
||||
#define FAN0_PIN 7
|
||||
|
||||
//
|
||||
// CS Pins wired to avoid conflict with the LCD
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
//
|
||||
// CS Pins wired to avoid conflict with the LCD
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
//
|
||||
// CS Pins wired to avoid conflict with the LCD
|
||||
|
|
|
@ -257,15 +257,15 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#ifndef FAN0_PIN
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#define FAN0_PIN 4 // IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
// Heaters / Fans
|
||||
//
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
#define FIL_RUNOUT_PIN 2
|
||||
#if NUM_RUNOUT_SENSORS >= 2
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
// band (case light). Thus the hotend and controller fans are always-on.
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE)
|
||||
#undef FAN_PIN
|
||||
#undef FAN0_PIN
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
|
|
|
@ -88,14 +88,14 @@
|
|||
#if ENABLED(RAMPS_V_1_0)
|
||||
#define HEATER_0_PIN 12
|
||||
#define HEATER_BED_PIN -1
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 11
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 11
|
||||
#endif
|
||||
#else // RAMPS_V_1_1 or RAMPS_V_1_2
|
||||
#define HEATER_0_PIN 10
|
||||
#define HEATER_BED_PIN 8
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -172,12 +172,12 @@
|
|||
|
||||
#if MB(RAMPS_S_12_EEFB) // Hotend0, Hotend1, Fan, Bed
|
||||
#define HEATER_1_PIN RAMPS_S_HE_1
|
||||
#define FAN_PIN RAMPS_S_HE_2
|
||||
#define FAN0_PIN RAMPS_S_HE_2
|
||||
#elif MB(RAMPS_S_12_EEEB) // Hotend0, Hotend1, Hotend2, Bed
|
||||
#define HEATER_1_PIN RAMPS_S_HE_1
|
||||
#define HEATER_2_PIN RAMPS_S_HE_2
|
||||
#elif MB(RAMPS_S_12_EFFB) // Hotend, Fan0, Fan1, Bed
|
||||
#define FAN_PIN RAMPS_S_HE_1
|
||||
#define FAN0_PIN RAMPS_S_HE_1
|
||||
#define FAN1_PIN RAMPS_S_HE_2
|
||||
#endif
|
||||
|
||||
|
|
|
@ -84,8 +84,8 @@
|
|||
#undef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8 // Same as RAMPS_13_EEF
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8 // Same as RAMPS_13_EEF
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -159,8 +159,8 @@
|
|||
#define HEATER_3_PIN 8
|
||||
#define HEATER_BED_PIN 9
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 8
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#define BOARD_INFO_NAME "Tango"
|
||||
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
#define FAN1_PIN -1
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
#define HEATER_1_PIN 11
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 5 // Normally this would be a servo pin
|
||||
|
||||
// XXX Runout support unknown?
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
#define HEATER_1_PIN 10
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN2_PIN 5 // Normally this would be a servo pin
|
||||
|
||||
//#define NUM_RUNOUT_SENSORS 0
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define FAN_PIN 9 // FAN0
|
||||
#define FAN0_PIN 9 // FAN0
|
||||
#define FAN1_PIN 7 // FAN1
|
||||
#define FAN2_PIN 44 // FAN2
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
|
|
|
@ -192,7 +192,7 @@
|
|||
#define HEATER_2_PIN 44
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
#if EXTRUDERS >= 5
|
||||
#define HEATER_4_PIN 6
|
||||
|
|
|
@ -112,8 +112,8 @@
|
|||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
|
|
|
@ -99,8 +99,8 @@
|
|||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#undef FAN_PIN
|
||||
#define FAN_PIN 5 // Using the pin for the controller fan since controller fan is always on.
|
||||
#undef FAN0_PIN
|
||||
#define FAN0_PIN 5 // Using the pin for the controller fan since controller fan is always on.
|
||||
#define CONTROLLER_FAN_PIN 8
|
||||
|
||||
//
|
||||
|
|
|
@ -164,7 +164,7 @@
|
|||
|
||||
#define HEATER_0_PIN 10
|
||||
#define HEATER_1_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define HEATER_BED_PIN 8
|
||||
#define FAN1_PIN 6
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@
|
|||
#define HEATER_3_PIN 5
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
|
|
@ -116,7 +116,7 @@ A stepper for E0 extruder
|
|||
//
|
||||
#define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55
|
||||
#define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57
|
||||
#define FAN_PIN 54 // "Abort": Analog pin 0, Digital pin 54
|
||||
#define FAN0_PIN 54 // "Abort": Analog pin 0, Digital pin 54
|
||||
#undef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56
|
||||
|
||||
|
|
|
@ -113,8 +113,8 @@
|
|||
#define HEATER_3_PIN 97 // PC20 on piggy
|
||||
#define HEATER_BED_PIN 69 // PA0
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 92 // PA5
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 92 // PA5
|
||||
#endif
|
||||
#define FAN1_PIN 31 // PA7
|
||||
|
||||
|
|
|
@ -153,8 +153,8 @@
|
|||
#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
|
||||
#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 4 // D4 PC26 FET_PWM1
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 4 // D4 PC26 FET_PWM1
|
||||
#endif
|
||||
#define FAN1_PIN 5 // D5 PC25 FET_PWM2
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue