Skip to content

Commit e07a059

Browse files
Simon Pilepichthinkyhead
authored andcommitted
🔧 Anycubic alternate Z1/Z2 wiring (MarlinFirmware#25071)
1 parent 313716e commit e07a059

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Marlin/src/pins/ramps/pins_TRIGORILLA_14.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,15 @@
8888
#ifndef FIL_RUNOUT_PIN
8989
#define FIL_RUNOUT_PIN 33
9090
#endif
91+
#define HEATER_BED_PIN MOSFET_B_PIN // HEATER1
92+
#else
93+
#ifndef FIL_RUNOUT_PIN
94+
#define FIL_RUNOUT_PIN 19
95+
#endif
96+
#endif
9197

92-
// Chiron swaps the Z stepper connections
98+
#if EITHER(TRIGORILLA_MAPPING_CHIRON, SWAP_Z_MOTORS)
99+
// Chiron and some Anycubic i3 MEGAs swap Z steppers
93100
#define Z_STEP_PIN 36
94101
#define Z_DIR_PIN 34
95102
#define Z_ENABLE_PIN 30
@@ -99,12 +106,6 @@
99106
#define Z2_DIR_PIN 48
100107
#define Z2_ENABLE_PIN 62
101108
#define Z2_CS_PIN 40
102-
103-
#define HEATER_BED_PIN MOSFET_B_PIN // HEATER1
104-
#else
105-
#ifndef FIL_RUNOUT_PIN
106-
#define FIL_RUNOUT_PIN 19
107-
#endif
108109
#endif
109110
#endif
110111

0 commit comments

Comments
 (0)