|
45 | 45 | //
|
46 | 46 | #define SERVO0_PIN PB14
|
47 | 47 |
|
48 |
| -// |
49 |
| -// Misc. Functions |
50 |
| -// |
51 |
| -#define LED_PIN PA14 |
52 |
| - |
53 | 48 | //
|
54 | 49 | // Trinamic Stallguard pins
|
55 | 50 | //
|
56 | 51 | #define X_DIAG_PIN PF0 // M1-STOP
|
57 | 52 | #define Y_DIAG_PIN PF2 // M2-STOP
|
58 | 53 | #define Z_DIAG_PIN PF4 // M3-STOP
|
59 |
| -#define Z2_DIAG_PIN PF3 // M4-STOP |
60 |
| -#define E0_DIAG_PIN PF1 // M5-STOP |
61 |
| -#define E1_DIAG_PIN PC15 // M6-STOP |
| 54 | +#define Z2_DIAG_PIN PF3 // M4-DET |
| 55 | +#define E0_DIAG_PIN PF1 // M5-DET |
| 56 | +#define E1_DIAG_PIN PC15 // M6-DET |
62 | 57 | #define E2_DIAG_PIN PF12 // PWRDET
|
63 | 58 |
|
64 |
| -// |
65 |
| -// Z Probe (when not Z_MIN_PIN) |
66 |
| -// |
67 |
| -#ifndef Z_MIN_PROBE_PIN |
68 |
| - #define Z_MIN_PROBE_PIN PB15 |
69 |
| -#endif |
70 |
| - |
71 | 59 | //
|
72 | 60 | // Limit Switches
|
73 | 61 | //
|
74 | 62 | #ifdef X_STALL_SENSITIVITY
|
75 | 63 | #define X_STOP_PIN X_DIAG_PIN
|
76 | 64 | #if X_HOME_TO_MIN
|
77 |
| - #define X_MAX_PIN E0_DIAG_PIN // E0DET |
| 65 | + #define X_MAX_PIN E0_DIAG_PIN // M4-DET |
78 | 66 | #else
|
79 |
| - #define X_MIN_PIN E0_DIAG_PIN // E0DET |
| 67 | + #define X_MIN_PIN E0_DIAG_PIN // M4-DET |
80 | 68 | #endif
|
81 | 69 | #elif NEEDS_X_MINMAX
|
82 | 70 | #ifndef X_MIN_PIN
|
83 | 71 | #define X_MIN_PIN X_DIAG_PIN // X-STOP
|
84 | 72 | #endif
|
85 | 73 | #ifndef X_MAX_PIN
|
86 |
| - #define X_MAX_PIN E0_DIAG_PIN // E0DET |
| 74 | + #define X_MAX_PIN E0_DIAG_PIN // M4-DET |
87 | 75 | #endif
|
88 | 76 | #else
|
89 | 77 | #define X_STOP_PIN X_DIAG_PIN // X-STOP
|
|
92 | 80 | #ifdef Y_STALL_SENSITIVITY
|
93 | 81 | #define Y_STOP_PIN Y_DIAG_PIN
|
94 | 82 | #if Y_HOME_TO_MIN
|
95 |
| - #define Y_MAX_PIN E1_DIAG_PIN // E1DET |
| 83 | + #define Y_MAX_PIN E1_DIAG_PIN // M5-DET |
96 | 84 | #else
|
97 |
| - #define Y_MIN_PIN E1_DIAG_PIN // E1DET |
| 85 | + #define Y_MIN_PIN E1_DIAG_PIN // M5-DET |
98 | 86 | #endif
|
99 | 87 | #elif NEEDS_Y_MINMAX
|
100 | 88 | #ifndef Y_MIN_PIN
|
101 | 89 | #define Y_MIN_PIN Y_DIAG_PIN // Y-STOP
|
102 | 90 | #endif
|
103 | 91 | #ifndef Y_MAX_PIN
|
104 |
| - #define Y_MAX_PIN E1_DIAG_PIN // E1DET |
| 92 | + #define Y_MAX_PIN E1_DIAG_PIN // M5-DET |
105 | 93 | #endif
|
106 | 94 | #else
|
107 | 95 | #define Y_STOP_PIN Y_DIAG_PIN // Y-STOP
|
|
126 | 114 | #endif
|
127 | 115 |
|
128 | 116 | //
|
129 |
| -// Filament Runout Sensor |
130 |
| -// |
131 |
| -#define FIL_RUNOUT_PIN PF1 // E0DET |
132 |
| -#define FIL_RUNOUT2_PIN PF15 // E1DET |
133 |
| - |
134 |
| -// |
135 |
| -// Power Supply Control |
| 117 | +// Z Probe (when not Z_MIN_PIN) |
136 | 118 | //
|
137 |
| -#ifndef PS_ON_PIN |
138 |
| - #define PS_ON_PIN PF13 // PS-ON |
| 119 | +#ifndef Z_MIN_PROBE_PIN |
| 120 | + #define Z_MIN_PROBE_PIN PB15 |
139 | 121 | #endif
|
140 | 122 |
|
141 | 123 | //
|
142 |
| -// Power Loss Detection |
| 124 | +// Filament Runout Sensor |
143 | 125 | //
|
144 |
| -#ifndef POWER_LOSS_PIN |
145 |
| - #define POWER_LOSS_PIN PF12 // PWRDET |
146 |
| -#endif |
| 126 | +#define FIL_RUNOUT_PIN PF1 // M5-DET |
| 127 | +#define FIL_RUNOUT2_PIN PC15 // M6-DET |
147 | 128 |
|
148 | 129 | //
|
149 | 130 | // Steppers
|
|
244 | 225 | #define FAN5_PIN PF8 // 4 wire Fan5
|
245 | 226 | #define FAN6_PIN PA2 // 4 wire Fan6
|
246 | 227 |
|
| 228 | +// |
| 229 | +// Power Supply Control |
| 230 | +// |
| 231 | +#ifndef PS_ON_PIN |
| 232 | + #define PS_ON_PIN PF13 // PS-ON |
| 233 | +#endif |
| 234 | + |
| 235 | +// |
| 236 | +// Power Loss Detection |
| 237 | +// |
| 238 | +#ifndef POWER_LOSS_PIN |
| 239 | + #define POWER_LOSS_PIN PF12 // PWRDET |
| 240 | +#endif |
| 241 | + |
| 242 | +// |
| 243 | +// Misc. Functions |
| 244 | +// |
| 245 | +#define LED_PIN PA14 |
| 246 | +#ifndef FILWIDTH_PIN |
| 247 | + #define FILWIDTH_PIN PC0 |
| 248 | +#endif |
| 249 | +#ifndef FILWIDTH2_PIN |
| 250 | + #define FILWIDTH2_PIN PF10 |
| 251 | +#endif |
| 252 | + |
247 | 253 | //
|
248 | 254 | // SD Support
|
249 | 255 | //
|
|
0 commit comments