Skip to content

Commit 3b9134d

Browse files
committed
🔧 Add PART_COOLING_FAN pin abstraction
MarlinFirmware/Marlin#28356
1 parent eed9014 commit 3b9134d

411 files changed

Lines changed: 7809 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎config/default/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,25 @@
580580

581581
// @section fans
582582

583+
/**
584+
* Part Cooling Fan Pins
585+
* Override the default part cooling fan pins for each fan index.
586+
* Allows remapping which physical fan pin is used for part cooling.
587+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
588+
*/
589+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
590+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
591+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
592+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
593+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
594+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
595+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
596+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
597+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
598+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
599+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
600+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
601+
583602
/**
584603
* Controller Fan
585604
* To cool down the stepper drivers and MOSFETs.

‎config/examples/3DFabXYZ/Migbot/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/3DMatik/XL/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/ADIMLab/Gantry v1/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/ADIMLab/Gantry v2/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/Alfawise/U20-bltouch/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/Alfawise/U20/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/AliExpress/CL-260/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/AliExpress/UM2pExt/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

‎config/examples/Anet/A2/Configuration_adv.h‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,25 @@
575575

576576
// @section fans
577577

578+
/**
579+
* Part Cooling Fan Pins
580+
* Override the default part cooling fan pins for each fan index.
581+
* Allows remapping which physical fan pin is used for part cooling.
582+
* By default: FAN0 -> FAN0_PIN, FAN1 -> FAN1_PIN, etc.
583+
*/
584+
//#define PART_COOLING_FAN0_PIN FAN0_PIN
585+
//#define PART_COOLING_FAN1_PIN FAN1_PIN
586+
//#define PART_COOLING_FAN2_PIN FAN2_PIN
587+
//#define PART_COOLING_FAN3_PIN FAN3_PIN
588+
//#define PART_COOLING_FAN4_PIN FAN4_PIN
589+
//#define PART_COOLING_FAN5_PIN FAN5_PIN
590+
//#define PART_COOLING_FAN6_PIN FAN6_PIN
591+
//#define PART_COOLING_FAN7_PIN FAN7_PIN
592+
//#define PART_COOLING_FAN8_PIN FAN8_PIN
593+
//#define PART_COOLING_FAN9_PIN FAN9_PIN
594+
//#define PART_COOLING_FAN10_PIN FAN10_PIN
595+
//#define PART_COOLING_FAN11_PIN FAN11_PIN
596+
578597
/**
579598
* Controller Fan
580599
* To cool down the stepper drivers and MOSFETs.

0 commit comments

Comments
 (0)