Browse Source

Merge pull request #3702 from thinkyhead/rc_sensitive_fan_pins

Remove need to define unused pins as -1 in pins files
Scott Lahteine 8 years ago
parent
commit
1b90682617

+ 0
- 5
Marlin/Marlin.h View File

52
 
52
 
53
 typedef unsigned long millis_t;
53
 typedef unsigned long millis_t;
54
 
54
 
55
-// Arduino < 1.0.0 does not define this, so we need to do it ourselves
56
-#ifndef analogInputToDigitalPin
57
-  #define analogInputToDigitalPin(p) ((p) + 0xA0)
58
-#endif
59
-
60
 #ifdef USBCON
55
 #ifdef USBCON
61
   #include "HardwareSerial.h"
56
   #include "HardwareSerial.h"
62
 #endif
57
 #endif

+ 114
- 22
Marlin/pins.h View File

23
 #ifndef PINS_H
23
 #ifndef PINS_H
24
 #define PINS_H
24
 #define PINS_H
25
 
25
 
26
-// Preset optional pins
27
-#define X_MS1_PIN -1
28
-#define X_MS2_PIN -1
29
-#define Y_MS1_PIN -1
30
-#define Y_MS2_PIN -1
31
-#define Z_MS1_PIN -1
32
-#define Z_MS2_PIN -1
33
-#define E0_MS1_PIN -1
34
-#define E0_MS2_PIN -1
35
-#define E1_MS1_PIN -1
36
-#define E1_MS2_PIN -1
37
-#define HEATER_3_PIN -1
38
-#define TEMP_3_PIN -1
39
-
40
 #if MB(GEN7_CUSTOM)
26
 #if MB(GEN7_CUSTOM)
41
   #include "pins_GEN7_CUSTOM.h"
27
   #include "pins_GEN7_CUSTOM.h"
42
 #elif MB(GEN7_12)
28
 #elif MB(GEN7_12)
157
   #error "Unknown MOTHERBOARD value set in Configuration.h"
143
   #error "Unknown MOTHERBOARD value set in Configuration.h"
158
 #endif
144
 #endif
159
 
145
 
146
+// Define certain undefined pins
147
+#ifndef X_MS1_PIN
148
+  #define X_MS1_PIN -1
149
+#endif
150
+#ifndef X_MS2_PIN
151
+  #define X_MS2_PIN -1
152
+#endif
153
+#ifndef Y_MS1_PIN
154
+  #define Y_MS1_PIN -1
155
+#endif
156
+#ifndef Y_MS2_PIN
157
+  #define Y_MS2_PIN -1
158
+#endif
159
+#ifndef Z_MS1_PIN
160
+  #define Z_MS1_PIN -1
161
+#endif
162
+#ifndef Z_MS2_PIN
163
+  #define Z_MS2_PIN -1
164
+#endif
165
+#ifndef E0_MS1_PIN
166
+  #define E0_MS1_PIN -1
167
+#endif
168
+#ifndef E0_MS2_PIN
169
+  #define E0_MS2_PIN -1
170
+#endif
171
+#ifndef E1_MS1_PIN
172
+  #define E1_MS1_PIN -1
173
+#endif
174
+#ifndef E1_MS2_PIN
175
+  #define E1_MS2_PIN -1
176
+#endif
177
+
178
+#ifndef FAN_PIN
179
+  #define FAN_PIN -1
180
+#endif
181
+#ifndef FAN1_PIN
182
+  #define FAN1_PIN -1
183
+#endif
184
+#ifndef FAN2_PIN
185
+  #define FAN2_PIN -1
186
+#endif
187
+
188
+#ifndef HEATER_0_PIN
189
+  #define HEATER_0_PIN -1
190
+#endif
191
+#ifndef HEATER_1_PIN
192
+  #define HEATER_1_PIN -1
193
+#endif
194
+#ifndef HEATER_2_PIN
195
+  #define HEATER_2_PIN -1
196
+#endif
197
+#ifndef HEATER_3_PIN
198
+  #define HEATER_3_PIN -1
199
+#endif
200
+#ifndef HEATER_BED_PIN
201
+  #define HEATER_BED_PIN -1
202
+#endif
203
+
204
+#ifndef TEMP_0_PIN
205
+  #define TEMP_0_PIN -1
206
+#endif
207
+#ifndef TEMP_1_PIN
208
+  #define TEMP_1_PIN -1
209
+#endif
210
+#ifndef TEMP_2_PIN
211
+  #define TEMP_2_PIN -1
212
+#endif
213
+#ifndef TEMP_3_PIN
214
+  #define TEMP_3_PIN -1
215
+#endif
216
+#ifndef TEMP_BED_PIN
217
+  #define TEMP_BED_PIN -1
218
+#endif
219
+
220
+#ifndef SD_DETECT_PIN
221
+  #define SD_DETECT_PIN -1
222
+#endif
223
+#ifndef SDPOWER
224
+  #define SDPOWER -1
225
+#endif
226
+#ifndef SDSS
227
+  #define SDSS -1
228
+#endif
229
+#ifndef LED_PIN
230
+  #define LED_PIN -1
231
+#endif
232
+#ifndef PS_ON_PIN
233
+  #define PS_ON_PIN -1
234
+#endif
235
+#ifndef KILL_PIN
236
+  #define KILL_PIN -1
237
+#endif
238
+#ifndef SUICIDE_PIN
239
+  #define SUICIDE_PIN -1
240
+#endif
241
+
242
+// Marlin needs to account for pins that equal -1
243
+#define marlinAnalogInputToDigitalPin(p) ((p) == -1 ? -1 : (p) + 0xA0)
244
+
160
 // List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
245
 // List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
161
-#define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN, analogInputToDigitalPin(TEMP_0_PIN),
246
+#define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, E0_MS1_PIN, E0_MS2_PIN, HEATER_0_PIN, EXTRUDER_0_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_0_PIN),
162
 #define _E1_PINS
247
 #define _E1_PINS
163
 #define _E2_PINS
248
 #define _E2_PINS
164
 #define _E3_PINS
249
 #define _E3_PINS
165
 
250
 
166
 #if EXTRUDERS > 1
251
 #if EXTRUDERS > 1
167
   #undef _E1_PINS
252
   #undef _E1_PINS
168
-  #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN, analogInputToDigitalPin(TEMP_1_PIN),
253
+  #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN, E1_MS1_PIN, E1_MS2_PIN, EXTRUDER_1_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_1_PIN),
169
   #if EXTRUDERS > 2
254
   #if EXTRUDERS > 2
170
     #undef _E2_PINS
255
     #undef _E2_PINS
171
-    #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN, analogInputToDigitalPin(TEMP_2_PIN),
256
+    #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN, EXTRUDER_2_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_2_PIN),
172
     #if EXTRUDERS > 3
257
     #if EXTRUDERS > 3
173
       #undef _E3_PINS
258
       #undef _E3_PINS
174
-      #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN, HEATER_3_PIN, analogInputToDigitalPin(TEMP_3_PIN),
259
+      #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN, HEATER_3_PIN, EXTRUDER_3_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_3_PIN),
175
     #endif
260
     #endif
176
   #endif
261
   #endif
177
 #elif ENABLED(Y_DUAL_STEPPER_DRIVERS) || ENABLED(Z_DUAL_STEPPER_DRIVERS)
262
 #elif ENABLED(Y_DUAL_STEPPER_DRIVERS) || ENABLED(Z_DUAL_STEPPER_DRIVERS)
179
   #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN,
264
   #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN,
180
 #endif
265
 #endif
181
 
266
 
267
+#define BED_PINS HEATER_BED_PIN, marlinAnalogInputToDigitalPin(TEMP_BED_PIN),
268
+
269
+//
270
+// Assign endstop pins for boards with only 3 connectors
271
+//
182
 #ifdef X_STOP_PIN
272
 #ifdef X_STOP_PIN
183
   #if X_HOME_DIR < 0
273
   #if X_HOME_DIR < 0
184
     #define X_MIN_PIN X_STOP_PIN
274
     #define X_MIN_PIN X_STOP_PIN
209
   #endif
299
   #endif
210
 #endif
300
 #endif
211
 
301
 
302
+//
303
+// Disable unused endstop / probe pins
304
+//
212
 #if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) || DISABLED(Z_MIN_PROBE_ENDSTOP) // Allow code to compile regardless of Z_MIN_PROBE_ENDSTOP setting.
305
 #if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) || DISABLED(Z_MIN_PROBE_ENDSTOP) // Allow code to compile regardless of Z_MIN_PROBE_ENDSTOP setting.
213
   #undef Z_MIN_PROBE_PIN
306
   #undef Z_MIN_PROBE_PIN
214
   #define Z_MIN_PROBE_PIN    -1
307
   #define Z_MIN_PROBE_PIN    -1
270
     X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
363
     X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
271
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
364
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
272
     Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
365
     Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
273
-    PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, CONTROLLERFAN_PIN, \
274
-    EXTRUDER_0_AUTO_FAN_PIN, EXTRUDER_1_AUTO_FAN_PIN, EXTRUDER_2_AUTO_FAN_PIN, EXTRUDER_3_AUTO_FAN_PIN, \
275
-    _E0_PINS _E1_PINS _E2_PINS _E3_PINS \
276
-    analogInputToDigitalPin(TEMP_BED_PIN) \
366
+    PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLERFAN_PIN, \
367
+    _E0_PINS _E1_PINS _E2_PINS _E3_PINS BED_PINS \
368
+    X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
277
   }
369
   }
278
 
370
 
279
 #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
371
 #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))

+ 0
- 20
Marlin/pins_5DPRINT.h View File

54
 #define E0_ENABLE_PIN      17
54
 #define E0_ENABLE_PIN      17
55
 
55
 
56
 #define HEATER_0_PIN       21  // Extruder
56
 #define HEATER_0_PIN       21  // Extruder
57
-#define HEATER_1_PIN       -1
58
-#define HEATER_2_PIN       -1
59
 #define HEATER_BED_PIN     20  // Bed
57
 #define HEATER_BED_PIN     20  // Bed
60
 // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
58
 // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
61
 // for the fan and Teensyduino uses a different pin mapping.
59
 // for the fan and Teensyduino uses a different pin mapping.
64
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
62
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
65
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
63
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
66
 
64
 
67
-#define TEMP_1_PIN         -1
68
-#define TEMP_2_PIN         -1
69
-
70
-#define SDPOWER            -1
71
-#define LED_PIN            -1
72
-#define PS_ON_PIN          -1
73
-#define KILL_PIN           -1
74
-
75
 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
65
 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
76
 #define SDSS               20
66
 #define SDSS               20
77
 
67
 
85
 // Microstepping pins
75
 // Microstepping pins
86
 // Note that the pin mapping is not from fastio.h
76
 // Note that the pin mapping is not from fastio.h
87
 // See Sd2PinMap.h for the pin configurations
77
 // See Sd2PinMap.h for the pin configurations
88
-
89
-#undef X_MS1_PIN
90
-#undef X_MS2_PIN
91
-#undef Y_MS1_PIN
92
-#undef Y_MS2_PIN
93
-#undef Z_MS1_PIN
94
-#undef Z_MS2_PIN
95
-#undef E0_MS1_PIN
96
-#undef E0_MS2_PIN
97
 #define X_MS1_PIN 25
78
 #define X_MS1_PIN 25
98
 #define X_MS2_PIN 26
79
 #define X_MS2_PIN 26
99
 #define Y_MS1_PIN 9
80
 #define Y_MS1_PIN 9
102
 #define Z_MS2_PIN 6
83
 #define Z_MS2_PIN 6
103
 #define E0_MS1_PIN 5
84
 #define E0_MS1_PIN 5
104
 #define E0_MS2_PIN 4
85
 #define E0_MS2_PIN 4
105
-

+ 0
- 8
Marlin/pins_99.h View File

43
 #define E0_DIR_PIN          66
43
 #define E0_DIR_PIN          66
44
 #define E0_ENABLE_PIN      -1
44
 #define E0_ENABLE_PIN      -1
45
 
45
 
46
-#define SDPOWER            -1
47
 #define SDSS               53
46
 #define SDSS               53
48
-#define LED_PIN            -1
49
-#define FAN_PIN            -1
50
 #define PS_ON_PIN           9
47
 #define PS_ON_PIN           9
51
-#define KILL_PIN           -1
52
 
48
 
53
 #define HEATER_0_PIN        13
49
 #define HEATER_0_PIN        13
54
-#define HEATER_1_PIN       -1
55
-#define HEATER_2_PIN       -1
56
 #define TEMP_0_PIN          6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
50
 #define TEMP_0_PIN          6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
57
-#define TEMP_1_PIN         -1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
58
-#define TEMP_2_PIN         -1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
59
 #define HEATER_BED_PIN      4
51
 #define HEATER_BED_PIN      4
60
 #define TEMP_BED_PIN       10
52
 #define TEMP_BED_PIN       10

+ 0
- 18
Marlin/pins_A4JP.h View File

38
   #define SLED_PIN -1
38
   #define SLED_PIN -1
39
 #endif
39
 #endif
40
 
40
 
41
-#undef X_MS1_PIN
42
-#undef X_MS2_PIN
43
-#undef Y_MS1_PIN
44
-#undef Y_MS2_PIN
45
-#undef Z_MS1_PIN
46
-#undef Z_MS2_PIN
47
-#undef E0_MS1_PIN
48
-#undef E0_MS2_PIN
49
-#undef E1_MS1_PIN
50
-#undef E1_MS2_PIN
51
-
52
-#undef DIGIPOTSS_PIN
53
 //Fan_2 2
41
 //Fan_2 2
54
 
42
 
55
 /*****************
43
 /*****************
108
 #define HEATER_0_PIN   9
96
 #define HEATER_0_PIN   9
109
 #define TEMP_0_PIN     0
97
 #define TEMP_0_PIN     0
110
 #define HEATER_1_PIN   7
98
 #define HEATER_1_PIN   7
111
-#define TEMP_1_PIN    -1
112
-#define HEATER_2_PIN  -1
113
-#define TEMP_2_PIN    -1
114
 
99
 
115
 #define E0_STEP_PIN   34
100
 #define E0_STEP_PIN   34
116
 #define E0_DIR_PIN    43
101
 #define E0_DIR_PIN    43
126
 #define DIGIPOTSS_PIN 38
111
 #define DIGIPOTSS_PIN 38
127
 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
112
 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
128
 
113
 
129
-#define SDPOWER       -1
130
 #define SDSS          53
114
 #define SDSS          53
131
 #define LED_PIN       13
115
 #define LED_PIN       13
132
 #define FAN_PIN        8
116
 #define FAN_PIN        8
133
 #define PS_ON_PIN      4
117
 #define PS_ON_PIN      4
134
-#define KILL_PIN      -1
135
-#define SUICIDE_PIN   -1 //PIN that has to be turned on right after start, to keep power flowing.
136
 #define FAN_0_PIN      6 //Glen
118
 #define FAN_0_PIN      6 //Glen
137
 #define FAN_1_PIN      2 //Glen
119
 #define FAN_1_PIN      2 //Glen
138
 
120
 

+ 0
- 8
Marlin/pins_BRAINWAVE.h View File

55
 #define E0_ATT_PIN         20
55
 #define E0_ATT_PIN         20
56
 
56
 
57
 #define HEATER_0_PIN        4  // Extruder
57
 #define HEATER_0_PIN        4  // Extruder
58
-#define HEATER_1_PIN       -1
59
-#define HEATER_2_PIN       -1
60
 #define HEATER_BED_PIN     38  // Bed
58
 #define HEATER_BED_PIN     38  // Bed
61
 #define FAN_PIN             3  // Fan
59
 #define FAN_PIN             3  // Fan
62
 
60
 
63
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
61
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
64
-#define TEMP_1_PIN         -1
65
-#define TEMP_2_PIN         -1
66
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
62
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
67
 
63
 
68
-#define SDPOWER            -1
69
-#define SDSS               -1
70
 #define LED_PIN            39
64
 #define LED_PIN            39
71
-#define PS_ON_PIN          -1
72
-#define KILL_PIN           -1
73
 
65
 
74
 #if DISABLED(SDSUPPORT)
66
 #if DISABLED(SDSUPPORT)
75
   // these pins are defined in the SD library if building with SD support
67
   // these pins are defined in the SD library if building with SD support

+ 0
- 6
Marlin/pins_BRAINWAVE_PRO.h View File

60
 #define E0_ENABLE_PIN      13
60
 #define E0_ENABLE_PIN      13
61
 
61
 
62
 #define HEATER_0_PIN       15
62
 #define HEATER_0_PIN       15
63
-#define HEATER_1_PIN       -1
64
-#define HEATER_2_PIN       -1
65
 #define HEATER_BED_PIN     14  // Bed
63
 #define HEATER_BED_PIN     14  // Bed
66
 #define FAN_PIN            16  // Fan, PWM
64
 #define FAN_PIN            16  // Fan, PWM
67
 
65
 
68
 #define TEMP_0_PIN          2  // Extruder / Analog pin numbering
66
 #define TEMP_0_PIN          2  // Extruder / Analog pin numbering
69
 #define TEMP_1_PIN          1  // Spare / Analog pin numbering
67
 #define TEMP_1_PIN          1  // Spare / Analog pin numbering
70
-#define TEMP_2_PIN         -1
71
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
68
 #define TEMP_BED_PIN        0  // Bed / Analog pin numbering
72
 
69
 
73
-#define SDPOWER            -1
74
 #define SDSS               20
70
 #define SDSS               20
75
 #define LED_PIN            19
71
 #define LED_PIN            19
76
-#define PS_ON_PIN          -1
77
-#define KILL_PIN           -1
78
 #define SD_DETECT_PIN      12
72
 #define SD_DETECT_PIN      12
79
 
73
 
80
 #if DISABLED(SDSUPPORT)
74
 #if DISABLED(SDSUPPORT)

+ 4
- 25
Marlin/pins_CHEAPTRONIC.h View File

35
 #define X_DIR_PIN 15
35
 #define X_DIR_PIN 15
36
 #define X_ENABLE_PIN 24
36
 #define X_ENABLE_PIN 24
37
 
37
 
38
-// X endstop
39
-#define X_MIN_PIN 3
40
-#define X_MAX_PIN -1
41
-
42
 // Y motor stepper
38
 // Y motor stepper
43
 #define Y_STEP_PIN 35
39
 #define Y_STEP_PIN 35
44
 #define Y_DIR_PIN 36
40
 #define Y_DIR_PIN 36
45
 #define Y_ENABLE_PIN 31
41
 #define Y_ENABLE_PIN 31
46
 
42
 
47
-// Y endstop
48
-#define Y_MIN_PIN 2
49
-#define Y_MAX_PIN -1
50
-
51
 // Z motor stepper
43
 // Z motor stepper
52
 #define Z_STEP_PIN 40
44
 #define Z_STEP_PIN 40
53
 #define Z_DIR_PIN 41
45
 #define Z_DIR_PIN 41
54
 #define Z_ENABLE_PIN 37
46
 #define Z_ENABLE_PIN 37
55
 
47
 
56
-// Z endstop
57
-#define Z_MIN_PIN 5
58
-#define Z_MAX_PIN -1
48
+// XYZ endstops
49
+#define X_STOP_PIN 3
50
+#define Y_STOP_PIN 2
51
+#define Z_STOP_PIN 5
59
 
52
 
60
 // Extruder 0 stepper
53
 // Extruder 0 stepper
61
 #define E0_STEP_PIN 26
54
 #define E0_STEP_PIN 26
67
 #define E1_DIR_PIN 34
60
 #define E1_DIR_PIN 34
68
 #define E1_ENABLE_PIN 30
61
 #define E1_ENABLE_PIN 30
69
 
62
 
70
-#define SDPOWER -1
71
-#define SDSS -1
72
-#define LED_PIN -1
73
-
74
-// FAN
75
-#define FAN_PIN -1
76
-
77
-#define PS_ON_PIN -1
78
-#define KILL_PIN -1
79
 
63
 
80
 #define HEATER_0_PIN 19 // EXTRUDER 1
64
 #define HEATER_0_PIN 19 // EXTRUDER 1
81
 #define HEATER_1_PIN 23 // EXTRUDER 2
65
 #define HEATER_1_PIN 23 // EXTRUDER 2
82
-// HeatedBad
83
 #define HEATER_BED_PIN 22
66
 #define HEATER_BED_PIN 22
84
-// Cheaptronic v1.0 hasent EXTRUDER 3
85
-#define HEATER_2_PIN -1
86
 
67
 
87
 // Temperature sensors
68
 // Temperature sensors
88
 #define TEMP_0_PIN 15
69
 #define TEMP_0_PIN 15
89
 #define TEMP_1_PIN 14
70
 #define TEMP_1_PIN 14
90
-#define TEMP_2_PIN -1
91
 #define TEMP_BED_PIN 13
71
 #define TEMP_BED_PIN 13
92
 
72
 
93
 // Cheaptronic v1.0 doesn't support LCD
73
 // Cheaptronic v1.0 doesn't support LCD
108
 #define BLEN_A 0
88
 #define BLEN_A 0
109
 
89
 
110
 // Cheaptronic v1.0 doesn't use this
90
 // Cheaptronic v1.0 doesn't use this
111
-#define SD_DETECT_PIN -1

+ 0
- 5
Marlin/pins_ELEFU_3.h View File

58
 #define E0_DIR_PIN         41
58
 #define E0_DIR_PIN         41
59
 #define E0_ENABLE_PIN      37
59
 #define E0_ENABLE_PIN      37
60
 
60
 
61
-#define SDPOWER            -1
62
-#define LED_PIN            -1 //Use +12V Aux port for LED Ring
63
-
64
 #define FAN_PIN            16 //5V PWM
61
 #define FAN_PIN            16 //5V PWM
65
 
62
 
66
 #define PS_ON_PIN          10 //Set to -1 if using a manual switch on the PWRSW Connector
63
 #define PS_ON_PIN          10 //Set to -1 if using a manual switch on the PWRSW Connector
77
 
74
 
78
 #define BEEPER_PIN         36
75
 #define BEEPER_PIN         36
79
 
76
 
80
-#define KILL_PIN           -1
81
-
82
 // M240  Triggers a camera by emulating a Canon RC-1 Remote
77
 // M240  Triggers a camera by emulating a Canon RC-1 Remote
83
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
78
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
84
 #define PHOTOGRAPH_PIN     29
79
 #define PHOTOGRAPH_PIN     29

+ 0
- 15
Marlin/pins_GEN3_MONOLITHIC.h View File

62
 #define HEATER_0_PIN 16
62
 #define HEATER_0_PIN 16
63
 #define TEMP_0_PIN 0
63
 #define TEMP_0_PIN 0
64
 
64
 
65
-#define FAN_PIN -1
66
-
67
-// bed pins
68
-#define HEATER_BED_PIN -1
69
-#define TEMP_BED_PIN -1
70
-
71
-
72
-#define SDSS     -1
73
-#define SDPOWER          -1
74
-#define LED_PIN          -1
75
-
76
 // pin for controlling the PSU.
65
 // pin for controlling the PSU.
77
 #define PS_ON_PIN       14  // Alex, Do this work on the card?
66
 #define PS_ON_PIN       14  // Alex, Do this work on the card?
78
 
67
 
79
 // Alex extras from Gen3+
68
 // Alex extras from Gen3+
80
-#define KILL_PIN           -1
81
-#define TEMP_1_PIN         -1
82
-#define TEMP_2_PIN         -1
83
-#define HEATER_2_PIN       -1

+ 0
- 9
Marlin/pins_GEN3_PLUS.h View File

43
 #define E0_STEP_PIN        17
43
 #define E0_STEP_PIN        17
44
 #define E0_DIR_PIN         21
44
 #define E0_DIR_PIN         21
45
 
45
 
46
-#define LED_PIN            -1
47
-
48
-#define FAN_PIN            -1
49
-
50
 #define PS_ON_PIN         14
46
 #define PS_ON_PIN         14
51
-#define KILL_PIN           -1
52
 
47
 
53
 #define HEATER_0_PIN       12 // (extruder)
48
 #define HEATER_0_PIN       12 // (extruder)
54
 
49
 
59
 #define E0_ENABLE_PIN      13
54
 #define E0_ENABLE_PIN      13
60
 
55
 
61
 #define TEMP_0_PIN          0   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
56
 #define TEMP_0_PIN          0   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
62
-#define TEMP_1_PIN         -1
63
-#define TEMP_2_PIN         -1
64
 #define TEMP_BED_PIN        5   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
57
 #define TEMP_BED_PIN        5   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
65
-#define SDPOWER            -1
66
 #define SDSS               4
58
 #define SDSS               4
67
-#define HEATER_2_PIN       -1

+ 1
- 14
Marlin/pins_GEN6.h View File

53
 #define E0_DIR_PIN       2    //Edited @ EJE Electronics 20100715
53
 #define E0_DIR_PIN       2    //Edited @ EJE Electronics 20100715
54
 #define E0_ENABLE_PIN    3    //Added @ EJE Electronics 20100715
54
 #define E0_ENABLE_PIN    3    //Added @ EJE Electronics 20100715
55
 #define TEMP_0_PIN      5     //changed @ rkoeppl 20110410
55
 #define TEMP_0_PIN      5     //changed @ rkoeppl 20110410
56
-#define TEMP_1_PIN      -1    //changed @ rkoeppl 20110410
57
 
56
 
58
-
59
-#define TEMP_2_PIN      -1    //changed @ rkoeppl 20110410
60
 #define HEATER_0_PIN    14    //changed @ rkoeppl 20110410
57
 #define HEATER_0_PIN    14    //changed @ rkoeppl 20110410
61
-#define HEATER_1_PIN    -1
62
-#define HEATER_2_PIN    -1
63
 
58
 
64
-#if MB(GEN6)
65
-  #define HEATER_BED_PIN  -1    //changed @ rkoeppl 20110410
66
-  #define TEMP_BED_PIN    -1    //changed @ rkoeppl 20110410
67
-#else
59
+#if !MB(GEN6)
68
   #define HEATER_BED_PIN   1    //changed @ rkoeppl 20110410
60
   #define HEATER_BED_PIN   1    //changed @ rkoeppl 20110410
69
   #define TEMP_BED_PIN     0    //changed @ rkoeppl 20110410
61
   #define TEMP_BED_PIN     0    //changed @ rkoeppl 20110410
70
 #endif
62
 #endif
71
 
63
 
72
-#define SDPOWER          -1
73
 #define SDSS          17
64
 #define SDSS          17
74
-#define LED_PIN         -1    //changed @ rkoeppl 20110410
75
-#define FAN_PIN         -1    //changed @ rkoeppl 20110410
76
-#define PS_ON_PIN       -1    //changed @ rkoeppl 20110410
77
-#define KILL_PIN        -1    //changed @ drakelive 20120830
78
 //our pin for debugging.
65
 //our pin for debugging.
79
 
66
 
80
 #define DEBUG_PIN        0
67
 #define DEBUG_PIN        0

+ 2
- 13
Marlin/pins_GEN7_12.h View File

57
 #define E0_ENABLE_PIN 24
57
 #define E0_ENABLE_PIN 24
58
 
58
 
59
 #define TEMP_0_PIN 1
59
 #define TEMP_0_PIN 1
60
-#define TEMP_1_PIN -1
61
-#define TEMP_2_PIN -1
62
 #define TEMP_BED_PIN 2
60
 #define TEMP_BED_PIN 2
63
 
61
 
64
 #define HEATER_0_PIN 4
62
 #define HEATER_0_PIN 4
65
-#define HEATER_1_PIN -1
66
-#define HEATER_2_PIN -1
67
 #define HEATER_BED_PIN 3
63
 #define HEATER_BED_PIN 3
68
 
64
 
69
-#define KILL_PIN -1
70
 
65
 
71
-#define SDPOWER -1
72
-#define SDSS -1 // SCL pin of I2C header
73
-#define LED_PIN -1
74
-
75
-#if (GEN7_VERSION >= 13)
76
-  // Gen7 v1.3 removed the fan pin
77
-  #define FAN_PIN -1
78
-#else
66
+// Gen7 v1.3 removed the fan pin
67
+#if GEN7_VERSION < 13
79
   #define FAN_PIN 31
68
   #define FAN_PIN 31
80
 #endif
69
 #endif
81
 
70
 

+ 0
- 13
Marlin/pins_GEN7_14.h View File

54
 #define E0_ENABLE_PIN 25
54
 #define E0_ENABLE_PIN 25
55
 
55
 
56
 #define TEMP_0_PIN 1
56
 #define TEMP_0_PIN 1
57
-#define TEMP_1_PIN -1
58
-#define TEMP_2_PIN -1
59
 #define TEMP_BED_PIN 0
57
 #define TEMP_BED_PIN 0
60
 
58
 
61
 #define HEATER_0_PIN 4
59
 #define HEATER_0_PIN 4
62
-#define HEATER_1_PIN -1
63
-#define HEATER_2_PIN -1
64
 #define HEATER_BED_PIN 3
60
 #define HEATER_BED_PIN 3
65
 
61
 
66
-#define KILL_PIN -1
67
-
68
-#define SDPOWER -1
69
-#define SDSS -1 // SCL pin of I2C header
70
-#define LED_PIN -1
71
-
72
-#define FAN_PIN -1
73
-
74
 #define PS_ON_PIN 15
62
 #define PS_ON_PIN 15
75
 
63
 
76
 //our pin for debugging.
64
 //our pin for debugging.
79
 //our RS485 pins
67
 //our RS485 pins
80
 #define TX_ENABLE_PIN 12
68
 #define TX_ENABLE_PIN 12
81
 #define RX_ENABLE_PIN 13
69
 #define RX_ENABLE_PIN 13
82
-

+ 0
- 10
Marlin/pins_GEN7_CUSTOM.h View File

55
 #define E0_ENABLE_PIN   24
55
 #define E0_ENABLE_PIN   24
56
 
56
 
57
 #define TEMP_0_PIN       2
57
 #define TEMP_0_PIN       2
58
-#define TEMP_1_PIN      -1
59
-#define TEMP_2_PIN      -1
60
 #define TEMP_BED_PIN     1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
58
 #define TEMP_BED_PIN     1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
61
 
59
 
62
 #define HEATER_0_PIN     4
60
 #define HEATER_0_PIN     4
63
-#define HEATER_1_PIN    -1
64
-#define HEATER_2_PIN    -1
65
 #define HEATER_BED_PIN   3  // (bed)
61
 #define HEATER_BED_PIN   3  // (bed)
66
 
62
 
67
-#define SDPOWER         -1
68
 #define SDSS            31                  // SCL pin of I2C header || CS Pin for SD Card support
63
 #define SDSS            31                  // SCL pin of I2C header || CS Pin for SD Card support
69
-#define LED_PIN         -1
70
 
64
 
71
-#define FAN_PIN         -1
72
 #define PS_ON_PIN       19
65
 #define PS_ON_PIN       19
73
 //our pin for debugging.
66
 //our pin for debugging.
74
 
67
 
79
 //#define RX_ENABLE_PIN       13
72
 //#define RX_ENABLE_PIN       13
80
 
73
 
81
 #define BEEPER_PIN       -1
74
 #define BEEPER_PIN       -1
82
-#define SD_DETECT_PIN    -1
83
-#define SUICIDE_PIN      -1    //has to be defined; otherwise Power_off doesn't work
84
 
75
 
85
-#define KILL_PIN -1
86
 //Pins for 4bit LCD Support
76
 //Pins for 4bit LCD Support
87
 #define LCD_PINS_RS 18
77
 #define LCD_PINS_RS 18
88
 #define LCD_PINS_ENABLE 17
78
 #define LCD_PINS_ENABLE 17

+ 0
- 5
Marlin/pins_LEAPFROG.h View File

54
 #define E1_DIR_PIN          40 //40
54
 #define E1_DIR_PIN          40 //40
55
 #define E1_ENABLE_PIN       36 //36
55
 #define E1_ENABLE_PIN       36 //36
56
 
56
 
57
-#define SDPOWER            -1
58
 #define SDSS               11
57
 #define SDSS               11
59
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
60
 #define LED_PIN            13
58
 #define LED_PIN            13
61
 #define FAN_PIN            7
59
 #define FAN_PIN            7
62
-#define PS_ON_PIN          -1
63
-#define KILL_PIN           -1
64
 #define SOL1_PIN   16
60
 #define SOL1_PIN   16
65
 #define SOL2_PIN    17
61
 #define SOL2_PIN    17
66
 
62
 
69
 #define HEATER_2_PIN       11 //-1 // 13
65
 #define HEATER_2_PIN       11 //-1 // 13
70
 #define TEMP_0_PIN         13 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
66
 #define TEMP_0_PIN         13 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
71
 #define TEMP_1_PIN         15 // 1
67
 #define TEMP_1_PIN         15 // 1
72
-#define TEMP_2_PIN         -1 // 2
73
 #define HEATER_BED_PIN     10 // 14/15
68
 #define HEATER_BED_PIN     10 // 14/15
74
 #define TEMP_BED_PIN       14 // 1,2 or I2C
69
 #define TEMP_BED_PIN       14 // 1,2 or I2C
75
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */
70
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */

+ 0
- 5
Marlin/pins_MEGACONTROLLER.h View File

63
 #define E1_DIR_PIN 27
63
 #define E1_DIR_PIN 27
64
 #define E1_ENABLE_PIN 25
64
 #define E1_ENABLE_PIN 25
65
 
65
 
66
-#define SDPOWER -1
67
 #define SDSS 53
66
 #define SDSS 53
68
 #define LED_PIN 13
67
 #define LED_PIN 13
69
 
68
 
72
 #define FAN2_PIN 36
71
 #define FAN2_PIN 36
73
 #define FAN_SOFT_PWM
72
 #define FAN_SOFT_PWM
74
 #define CONTROLLERFAN_PIN FAN2_PIN
73
 #define CONTROLLERFAN_PIN FAN2_PIN
75
-#define PS_ON_PIN -1
76
-#define KILL_PIN -1
77
 
74
 
78
 #define HEATER_0_PIN 29 // EXTRUDER 1
75
 #define HEATER_0_PIN 29 // EXTRUDER 1
79
 #define HEATER_1_PIN 34 // EXTRUDER 2
76
 #define HEATER_1_PIN 34 // EXTRUDER 2
80
-#define HEATER_2_PIN -1
81
 
77
 
82
 #if TEMP_SENSOR_0 == -1
78
 #if TEMP_SENSOR_0 == -1
83
   #define TEMP_0_PIN 4 // ANALOG NUMBERING
79
   #define TEMP_0_PIN 4 // ANALOG NUMBERING
85
   #define TEMP_0_PIN 0 // ANALOG NUMBERING
81
   #define TEMP_0_PIN 0 // ANALOG NUMBERING
86
 #endif
82
 #endif
87
 
83
 
88
-
89
 #if TEMP_SENSOR_1 == -1
84
 #if TEMP_SENSOR_1 == -1
90
   #define TEMP_1_PIN 5 // ANALOG NUMBERING
85
   #define TEMP_1_PIN 5 // ANALOG NUMBERING
91
 #else
86
 #else

+ 1
- 7
Marlin/pins_MEGATRONICS.h View File

56
 #define E1_DIR_PIN         36
56
 #define E1_DIR_PIN         36
57
 #define E1_ENABLE_PIN      30
57
 #define E1_ENABLE_PIN      30
58
 
58
 
59
-#define SDPOWER            -1
60
 #define SDSS               53
59
 #define SDSS               53
61
 #define LED_PIN            13
60
 #define LED_PIN            13
62
 
61
 
63
-
64
 #define FAN_PIN             7   // IO pin. Buffer needed
62
 #define FAN_PIN             7   // IO pin. Buffer needed
65
 #define PS_ON_PIN          12
63
 #define PS_ON_PIN          12
66
-#define KILL_PIN           -1
67
 
64
 
68
 #define HEATER_0_PIN        9
65
 #define HEATER_0_PIN        9
69
 #define HEATER_1_PIN        8
66
 #define HEATER_1_PIN        8
70
-#define HEATER_2_PIN       -1
67
+#define HEATER_BED_PIN     10   // BED
71
 
68
 
72
 #if TEMP_SENSOR_0 == -1
69
 #if TEMP_SENSOR_0 == -1
73
   #define TEMP_0_PIN        8   // ANALOG NUMBERING
70
   #define TEMP_0_PIN        8   // ANALOG NUMBERING
74
 #else
71
 #else
75
   #define TEMP_0_PIN       13   // ANALOG NUMBERING
72
   #define TEMP_0_PIN       13   // ANALOG NUMBERING
76
 #endif
73
 #endif
77
-
78
 #define TEMP_1_PIN         15   // ANALOG NUMBERING
74
 #define TEMP_1_PIN         15   // ANALOG NUMBERING
79
-#define TEMP_2_PIN         -1   // ANALOG NUMBERING
80
-#define HEATER_BED_PIN     10   // BED
81
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
75
 #define TEMP_BED_PIN       14   // ANALOG NUMBERING
82
 
76
 
83
 #define BEEPER_PIN         33   // AUX-4
77
 #define BEEPER_PIN         33   // AUX-4

+ 5
- 16
Marlin/pins_MEGATRONICS_2.h View File

60
 #define E2_DIR_PIN 24
60
 #define E2_DIR_PIN 24
61
 #define E2_ENABLE_PIN 22
61
 #define E2_ENABLE_PIN 22
62
 
62
 
63
-#define SDPOWER -1
64
 #define SDSS 53
63
 #define SDSS 53
65
 #define LED_PIN 13
64
 #define LED_PIN 13
66
 
65
 
67
 #define FAN_PIN 7
66
 #define FAN_PIN 7
68
 #define FAN2_PIN 6
67
 #define FAN2_PIN 6
69
 #define PS_ON_PIN 12
68
 #define PS_ON_PIN 12
70
-#define KILL_PIN -1
71
-
72
-#define HEATER_0_PIN 9 // EXTRUDER 1
73
-#define HEATER_1_PIN 8 // EXTRUDER 2
74
-#define HEATER_2_PIN -1
75
 
69
 
70
+#define HEATER_0_PIN 9  // EXTRUDER 1
76
 #if TEMP_SENSOR_0 == -1
71
 #if TEMP_SENSOR_0 == -1
77
-  #define TEMP_0_PIN 4 // ANALOG NUMBERING
72
+  #define TEMP_0_PIN 4  // ANALOG NUMBERING
78
 #else
73
 #else
79
   #define TEMP_0_PIN 13 // ANALOG NUMBERING
74
   #define TEMP_0_PIN 13 // ANALOG NUMBERING
80
 #endif
75
 #endif
81
 
76
 
82
-
77
+#define HEATER_1_PIN 8  // EXTRUDER 2
83
 #if TEMP_SENSOR_1 == -1
78
 #if TEMP_SENSOR_1 == -1
84
-  #define TEMP_1_PIN 8 // ANALOG NUMBERING
79
+  #define TEMP_1_PIN 8  // ANALOG NUMBERING
85
 #else
80
 #else
86
   #define TEMP_1_PIN 15 // ANALOG NUMBERING
81
   #define TEMP_1_PIN 15 // ANALOG NUMBERING
87
 #endif
82
 #endif
88
 
83
 
89
-#define TEMP_2_PIN -1 // ANALOG NUMBERING
90
-
91
 #define HEATER_BED_PIN 10 // BED
84
 #define HEATER_BED_PIN 10 // BED
92
-
93
 #if TEMP_SENSOR_BED == -1
85
 #if TEMP_SENSOR_BED == -1
94
-  #define TEMP_BED_PIN 8 // ANALOG NUMBERING
86
+  #define TEMP_BED_PIN 8  // ANALOG NUMBERING
95
 #else
87
 #else
96
   #define TEMP_BED_PIN 14 // ANALOG NUMBERING
88
   #define TEMP_BED_PIN 14 // ANALOG NUMBERING
97
 #endif
89
 #endif
98
 
90
 
99
 #define BEEPER_PIN 64
91
 #define BEEPER_PIN 64
100
 
92
 
101
-
102
 #define LCD_PINS_RS 14
93
 #define LCD_PINS_RS 14
103
 #define LCD_PINS_ENABLE 15
94
 #define LCD_PINS_ENABLE 15
104
 #define LCD_PINS_D4 30
95
 #define LCD_PINS_D4 30
106
 #define LCD_PINS_D6 32
97
 #define LCD_PINS_D6 32
107
 #define LCD_PINS_D7 33
98
 #define LCD_PINS_D7 33
108
 
99
 
109
-
110
 // Buttons are directly attached using keypad
100
 // Buttons are directly attached using keypad
111
 #define BTN_EN1 61
101
 #define BTN_EN1 61
112
 #define BTN_EN2 59
102
 #define BTN_EN2 59
116
 #define BLEN_B 1
106
 #define BLEN_B 1
117
 #define BLEN_A 0
107
 #define BLEN_A 0
118
 
108
 
119
-#define SD_DETECT_PIN -1  // Megatronics doesn't use this

+ 20
- 8
Marlin/pins_MEGATRONICS_3.h View File

30
 
30
 
31
 #define LARGE_FLASH        true
31
 #define LARGE_FLASH        true
32
 
32
 
33
-
34
 #if ENABLED(Z_PROBE_SLED)
33
 #if ENABLED(Z_PROBE_SLED)
35
   #define SLED_PIN         -1
34
   #define SLED_PIN         -1
36
 #endif
35
 #endif
71
 #define E2_DIR_PIN         60
70
 #define E2_DIR_PIN         60
72
 #define E2_ENABLE_PIN      23
71
 #define E2_ENABLE_PIN      23
73
 
72
 
74
-#define SDPOWER -1
75
 #define SDSS 53
73
 #define SDSS 53
76
 #define LED_PIN 13
74
 #define LED_PIN 13
77
 
75
 
78
 #define PS_ON_PIN 12
76
 #define PS_ON_PIN 12
79
-#define KILL_PIN -1
80
 
77
 
81
 #define HEATER_0_PIN 2
78
 #define HEATER_0_PIN 2
82
 #define HEATER_1_PIN 9
79
 #define HEATER_1_PIN 9
85
 #define FAN_PIN 6
82
 #define FAN_PIN 6
86
 #define FAN2_PIN 7
83
 #define FAN2_PIN 7
87
 
84
 
88
-#define TEMP_0_PIN   (TEMP_SENSOR_0 == -1 ?  11 : 15) // ANALOG NUMBERING
89
-#define TEMP_1_PIN   (TEMP_SENSOR_1 == -1 ?  10 : 13) // ANALOG NUMBERING
90
-#define TEMP_2_PIN   (TEMP_SENSOR_2 == -1 ?   9 : 12) // ANALOG NUMBERING
91
-#define TEMP_BED_PIN (TEMP_SENSOR_BED == -1 ? 8 : 14) // ANALOG NUMBERING
85
+#if TEMP_SENSOR_0 == -1
86
+  #define TEMP_0_PIN   11 // ANALOG NUMBERING
87
+#else
88
+  #define TEMP_0_PIN   15 // ANALOG NUMBERING
89
+#endif
90
+#if TEMP_SENSOR_1 == -1
91
+  #define TEMP_1_PIN   10 // ANALOG NUMBERING
92
+#else
93
+  #define TEMP_1_PIN   13 // ANALOG NUMBERING
94
+#endif
95
+#if TEMP_SENSOR_2 == -1
96
+  #define TEMP_2_PIN    9 // ANALOG NUMBERING
97
+#else
98
+  #define TEMP_2_PIN   12 // ANALOG NUMBERING
99
+#endif
100
+#if TEMP_SENSOR_BED == -1
101
+  #define TEMP_BED_PIN  8 // ANALOG NUMBERING
102
+#else
103
+  #define TEMP_BED_PIN 14 // ANALOG NUMBERING
104
+#endif
92
 
105
 
93
 #define BEEPER_PIN 61
106
 #define BEEPER_PIN 61
94
 
107
 
113
 #define BLEN_B 1
126
 #define BLEN_B 1
114
 #define BLEN_A 0
127
 #define BLEN_A 0
115
 
128
 
116
-#define SD_DETECT_PIN -1 // Megatronics doesn't use this

+ 0
- 22
Marlin/pins_MINIRAMBO.h View File

30
 
30
 
31
 #define LARGE_FLASH         true
31
 #define LARGE_FLASH         true
32
 
32
 
33
-
34
-#undef X_MS1_PIN
35
-#undef X_MS2_PIN
36
-#undef Y_MS1_PIN
37
-#undef Y_MS2_PIN
38
-#undef Z_MS1_PIN
39
-#undef Z_MS2_PIN
40
-#undef E0_MS1_PIN
41
-#undef E0_MS2_PIN
42
-#undef E1_MS1_PIN
43
-#undef E1_MS2_PIN
44
-
45
 #define X_STEP_PIN          37
33
 #define X_STEP_PIN          37
46
 #define X_DIR_PIN           48
34
 #define X_DIR_PIN           48
47
 #define X_MIN_PIN           12
35
 #define X_MIN_PIN           12
77
 
65
 
78
 #if ENABLED(BARICUDA)
66
 #if ENABLED(BARICUDA)
79
   #define HEATER_2_PIN       6
67
   #define HEATER_2_PIN       6
80
-#else
81
-  #define HEATER_2_PIN      -1
82
 #endif
68
 #endif
83
 
69
 
84
-#define TEMP_2_PIN          -1
85
-
86
 #define E0_STEP_PIN         34
70
 #define E0_STEP_PIN         34
87
 #define E0_DIR_PIN          43
71
 #define E0_DIR_PIN          43
88
 #define E0_ENABLE_PIN       26
72
 #define E0_ENABLE_PIN       26
92
 #define E1_STEP_PIN         -1
76
 #define E1_STEP_PIN         -1
93
 #define E1_DIR_PIN          -1
77
 #define E1_DIR_PIN          -1
94
 #define E1_ENABLE_PIN       -1
78
 #define E1_ENABLE_PIN       -1
95
-#define E1_MS1_PIN          -1
96
-#define E1_MS2_PIN          -1
97
 
79
 
98
 #define MOTOR_CURRENT_PWM_XY_PIN 46
80
 #define MOTOR_CURRENT_PWM_XY_PIN 46
99
 #define MOTOR_CURRENT_PWM_Z_PIN  45
81
 #define MOTOR_CURRENT_PWM_Z_PIN  45
101
 //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
83
 //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
102
 #define MOTOR_CURRENT_PWM_RANGE 2000
84
 #define MOTOR_CURRENT_PWM_RANGE 2000
103
 #define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
85
 #define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
104
-#define SDPOWER             -1
105
 #define SDSS                53
86
 #define SDSS                53
106
 #define LED_PIN             13
87
 #define LED_PIN             13
107
 #define FAN_PIN              8
88
 #define FAN_PIN              8
108
 #define FAN_1_PIN            6
89
 #define FAN_1_PIN            6
109
-#define PS_ON_PIN           -1
110
-#define KILL_PIN            -1  // 80 with Smart Controller LCD
111
-#define SUICIDE_PIN         -1  // PIN that has to be turned on right after start, to keep power flowing.
112
 
90
 
113
 #if ENABLED(ULTRA_LCD)
91
 #if ENABLED(ULTRA_LCD)
114
 
92
 

+ 5
- 15
Marlin/pins_MINITRONICS.h View File

60
 #define E2_DIR_PIN -1
60
 #define E2_DIR_PIN -1
61
 #define E2_ENABLE_PIN -1
61
 #define E2_ENABLE_PIN -1
62
 
62
 
63
-#define SDPOWER -1
64
 #define SDSS 16
63
 #define SDSS 16
65
 #define LED_PIN 46
64
 #define LED_PIN 46
66
 
65
 
67
 #define FAN_PIN 9
66
 #define FAN_PIN 9
68
-#define FAN2_PIN -1
69
-#define PS_ON_PIN -1
70
-#define KILL_PIN -1
71
 
67
 
72
-#define HEATER_0_PIN 7 // EXTRUDER 1
73
-#define HEATER_1_PIN 8 // EXTRUDER 2
74
-#define HEATER_2_PIN -1
75
-
76
-
77
-#define TEMP_0_PIN 7 // ANALOG NUMBERING
78
-#define TEMP_1_PIN 6 // ANALOG NUMBERING
79
-#define TEMP_2_PIN -1 // ANALOG NUMBERING
68
+#define TEMP_0_PIN   7 // ANALOG NUMBERING
69
+#define TEMP_1_PIN   6 // ANALOG NUMBERING
70
+#define TEMP_BED_PIN 6 // ANALOG NUMBERING
80
 
71
 
72
+#define HEATER_0_PIN   7 // EXTRUDER 1
73
+#define HEATER_1_PIN   8 // EXTRUDER 2
81
 #define HEATER_BED_PIN 3 // BED
74
 #define HEATER_BED_PIN 3 // BED
82
-#define TEMP_BED_PIN 6 // ANALOG NUMBERING
83
 
75
 
84
 #define BEEPER_PIN -1
76
 #define BEEPER_PIN -1
85
 
77
 
90
 #define LCD_PINS_D6 -1
82
 #define LCD_PINS_D6 -1
91
 #define LCD_PINS_D7 -1
83
 #define LCD_PINS_D7 -1
92
 
84
 
93
-
94
 // Buttons are directly attached using keypad
85
 // Buttons are directly attached using keypad
95
 #define BTN_EN1 -1
86
 #define BTN_EN1 -1
96
 #define BTN_EN2 -1
87
 #define BTN_EN2 -1
100
 #define BLEN_B 1
91
 #define BLEN_B 1
101
 #define BLEN_A 0
92
 #define BLEN_A 0
102
 
93
 
103
-#define SD_DETECT_PIN -1  // Minitronics doesn't use this

+ 2
- 11
Marlin/pins_OMCA.h View File

90
 #define E2_DIR_PIN         -1 // 20
90
 #define E2_DIR_PIN         -1 // 20
91
 #define E2_ENABLE_PIN      -1 // 18
91
 #define E2_ENABLE_PIN      -1 // 18
92
 
92
 
93
-#define SDPOWER            -1
94
 #define SDSS               11
93
 #define SDSS               11
95
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
96
-#define LED_PIN            -1
97
 #define FAN_PIN            14 // PWM on MIDDLE connector
94
 #define FAN_PIN            14 // PWM on MIDDLE connector
98
-#define PS_ON_PIN          -1
99
-#define KILL_PIN           -1
100
 
95
 
101
 #define HEATER_0_PIN        3 // DONE PWM on RIGHT connector
96
 #define HEATER_0_PIN        3 // DONE PWM on RIGHT connector
102
-#define HEATER_1_PIN       -1
103
-#define HEATER_2_PIN       -1
104
-#define HEATER_1_PIN       -1
105
-#define HEATER_2_PIN       -1
97
+#define HEATER_BED_PIN      4
98
+
106
 #define TEMP_0_PIN          0 // ANALOG INPUT NUMBERING
99
 #define TEMP_0_PIN          0 // ANALOG INPUT NUMBERING
107
 #define TEMP_1_PIN          1 // ANALOG
100
 #define TEMP_1_PIN          1 // ANALOG
108
-#define TEMP_2_PIN         -1 // 2
109
-#define HEATER_BED_PIN      4
110
 #define TEMP_BED_PIN        2 // 1,2 or I2C
101
 #define TEMP_BED_PIN        2 // 1,2 or I2C
111
 
102
 
112
 #define I2C_SCL            16
103
 #define I2C_SCL            16

+ 1
- 11
Marlin/pins_OMCA_A.h View File

81
 #define E2_DIR_PIN         -1 // 16
81
 #define E2_DIR_PIN         -1 // 16
82
 #define E2_ENABLE_PIN      24
82
 #define E2_ENABLE_PIN      24
83
 
83
 
84
-#define SDPOWER            -1
85
 #define SDSS               11
84
 #define SDSS               11
86
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
87
-#define LED_PIN            -1
88
 #define FAN_PIN             3
85
 #define FAN_PIN             3
89
-#define PS_ON_PIN          -1
90
-#define KILL_PIN           -1
91
 
86
 
92
 #define HEATER_0_PIN        4
87
 #define HEATER_0_PIN        4
93
-#define HEATER_1_PIN       -1 // 12
94
-#define HEATER_2_PIN       -1 // 13
95
 #define TEMP_0_PIN          0 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
88
 #define TEMP_0_PIN          0 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
96
-#define TEMP_1_PIN         -1 // 1
97
-#define TEMP_2_PIN         -1 // 2
98
-#define HEATER_BED_PIN     -1 // 14/15
99
-#define TEMP_BED_PIN       -1 // 1,2 or I2C
89
+
100
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */
90
 /*  Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31)  */

+ 0
- 7
Marlin/pins_PRINTRBOARD.h View File

81
 
81
 
82
 #define FILWIDTH_PIN        2  // ANALOG NUMBERING
82
 #define FILWIDTH_PIN        2  // ANALOG NUMBERING
83
 
83
 
84
-#define TEMP_1_PIN         -1
85
-#define TEMP_2_PIN         -1
86
-
87
 ////LCD Pin Setup////
84
 ////LCD Pin Setup////
88
 
85
 
89
-#define SDPOWER            -1
90
 #define SDSS               26
86
 #define SDSS               26
91
-#define LED_PIN            -1
92
-#define PS_ON_PIN          -1
93
-#define KILL_PIN           -1
94
 
87
 
95
 #if DISABLED(SDSUPPORT)
88
 #if DISABLED(SDSUPPORT)
96
   // these pins are defined in the SD library if building with SD support
89
   // these pins are defined in the SD library if building with SD support

+ 0
- 8
Marlin/pins_PRINTRBOARD_REVF.h View File

75
 
75
 
76
 #define FILWIDTH_PIN        2  // ANALOG NUMBERING
76
 #define FILWIDTH_PIN        2  // ANALOG NUMBERING
77
 
77
 
78
-#define TEMP_1_PIN         -1
79
-#define TEMP_2_PIN         -1
80
-
81
 ////LCD Pin Setup////
78
 ////LCD Pin Setup////
82
 
79
 
83
-#define SDPOWER            -1
84
 #define SDSS               20 // Teensylu pin mapping
80
 #define SDSS               20 // Teensylu pin mapping
85
-#define LED_PIN            -1
86
-#define PS_ON_PIN          -1
87
-#define KILL_PIN           -1
88
-#define ALARM_PIN          -1
89
 
81
 
90
 // uncomment to enable an I2C based DAC like on the Printrboard REVF
82
 // uncomment to enable an I2C based DAC like on the Printrboard REVF
91
 #define DAC_STEPPER_CURRENT
83
 #define DAC_STEPPER_CURRENT

+ 0
- 18
Marlin/pins_RAMBO.h View File

40
   #define SLED_PIN         -1
40
   #define SLED_PIN         -1
41
 #endif
41
 #endif
42
 
42
 
43
-#undef X_MS1_PIN
44
-#undef X_MS2_PIN
45
-#undef Y_MS1_PIN
46
-#undef Y_MS2_PIN
47
-#undef Z_MS1_PIN
48
-#undef Z_MS2_PIN
49
-#undef E0_MS1_PIN
50
-#undef E0_MS2_PIN
51
-#undef E1_MS1_PIN
52
-#undef E1_MS2_PIN
53
-
54
 #define X_STEP_PIN 37
43
 #define X_STEP_PIN 37
55
 #define X_DIR_PIN 48
44
 #define X_DIR_PIN 48
56
 #define X_MIN_PIN 12
45
 #define X_MIN_PIN 12
86
 
75
 
87
 #if ENABLED(BARICUDA)
76
 #if ENABLED(BARICUDA)
88
   #define HEATER_2_PIN 6
77
   #define HEATER_2_PIN 6
89
-#else
90
-  #define HEATER_2_PIN -1
91
 #endif
78
 #endif
92
 
79
 
93
-#define TEMP_2_PIN -1
94
-
95
 #define E0_STEP_PIN         34
80
 #define E0_STEP_PIN         34
96
 #define E0_DIR_PIN          43
81
 #define E0_DIR_PIN          43
97
 #define E0_ENABLE_PIN       26
82
 #define E0_ENABLE_PIN       26
107
 #define DIGIPOTSS_PIN 38
92
 #define DIGIPOTSS_PIN 38
108
 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
93
 #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
109
 
94
 
110
-#define SDPOWER            -1
111
 #define SDSS               53
95
 #define SDSS               53
112
 #define LED_PIN            13
96
 #define LED_PIN            13
113
 #define FAN_PIN            8
97
 #define FAN_PIN            8
121
   Fan_2 2
105
   Fan_2 2
122
 ***********************************************************/
106
 ***********************************************************/
123
 #define PS_ON_PIN          4
107
 #define PS_ON_PIN          4
124
-#define KILL_PIN           -1 //80 with Smart Controller LCD
125
-#define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
126
 
108
 
127
 #if ENABLED(ULTRA_LCD)
109
 #if ENABLED(ULTRA_LCD)
128
 
110
 

+ 5
- 15
Marlin/pins_RAMPS_14.h View File

87
 #define E1_DIR_PIN         34
87
 #define E1_DIR_PIN         34
88
 #define E1_ENABLE_PIN      30
88
 #define E1_ENABLE_PIN      30
89
 
89
 
90
-#define SDPOWER            -1
91
 #define SDSS               53
90
 #define SDSS               53
92
 #define LED_PIN            13
91
 #define LED_PIN            13
93
 
92
 
125
   #define HEATER_0_PIN      8
124
   #define HEATER_0_PIN      8
126
 #else
125
 #else
127
   #define HEATER_0_PIN     10   // EXTRUDER 1
126
   #define HEATER_0_PIN     10   // EXTRUDER 1
127
+  #if !MB(RAMPS_14_EEF) && !MB(RAMPS_13_EEF) && !MB(RAMPS_14_SF) && !MB(RAMPS_13_SF)
128
+    #define HEATER_BED_PIN    8    // BED
129
+  #endif
128
 #endif
130
 #endif
129
 
131
 
130
-#if MB(RAMPS_14_SF) || MB(RAMPS_13_SF) || ENABLED(IS_RAMPS_EFB)
131
-  #define HEATER_1_PIN     -1
132
-#else
132
+#if !MB(RAMPS_14_SF) && !MB(RAMPS_13_SF) && !ENABLED(IS_RAMPS_EFB)
133
   #define HEATER_1_PIN      9   // EXTRUDER 2 (FAN On Sprinter)
133
   #define HEATER_1_PIN      9   // EXTRUDER 2 (FAN On Sprinter)
134
 #endif
134
 #endif
135
 
135
 
136
-#define HEATER_2_PIN       -1
137
-
138
 #define TEMP_0_PIN         13   // ANALOG NUMBERING
136
 #define TEMP_0_PIN         13   // ANALOG NUMBERING
139
 #define TEMP_1_PIN         15   // ANALOG NUMBERING
137
 #define TEMP_1_PIN         15   // ANALOG NUMBERING
140
-#define TEMP_2_PIN         -1   // ANALOG NUMBERING
141
-
142
-#if MB(RAMPS_14_EFF) || MB(RAMPS_14_EEF) || MB(RAMPS_14_SF) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF) || MB(RAMPS_13_SF)
143
-  #define HEATER_BED_PIN   -1    // NO BED
144
-#else
145
-  #define HEATER_BED_PIN    8    // BED
146
-#endif
147
-
148
-#define TEMP_BED_PIN         14   // ANALOG NUMBERING
138
+#define TEMP_BED_PIN       14   // ANALOG NUMBERING
149
 
139
 
150
 #if ENABLED(Z_PROBE_SLED)
140
 #if ENABLED(Z_PROBE_SLED)
151
   #define SLED_PIN           -1
141
   #define SLED_PIN           -1

+ 0
- 6
Marlin/pins_RAMPS_OLD.h View File

56
 #define SDPOWER            48
56
 #define SDPOWER            48
57
 #define SDSS               53
57
 #define SDSS               53
58
 #define LED_PIN            13
58
 #define LED_PIN            13
59
-#define PS_ON_PIN          -1
60
-#define KILL_PIN           -1
61
 
59
 
62
 #if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
60
 #if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
63
   #define HEATER_0_PIN     12    // RAMPS 1.0
61
   #define HEATER_0_PIN     12    // RAMPS 1.0
69
   #define FAN_PIN           9    // RAMPS 1.1
67
   #define FAN_PIN           9    // RAMPS 1.1
70
 #endif
68
 #endif
71
 
69
 
72
-#define HEATER_1_PIN        -1
73
-#define HEATER_2_PIN        -1
74
 #define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
70
 #define TEMP_0_PIN          2    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
75
-#define TEMP_1_PIN          -1
76
-#define TEMP_2_PIN          -1
77
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
71
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
78
 
72
 
79
 // SPI for Max6675 or Max31855 Thermocouple
73
 // SPI for Max6675 or Max31855 Thermocouple

+ 4
- 17
Marlin/pins_RUMBA.h View File

77
 #define PS_ON_PIN          45
77
 #define PS_ON_PIN          45
78
 #define KILL_PIN           46
78
 #define KILL_PIN           46
79
 
79
 
80
-#if TEMP_SENSOR_0 == 0
81
-  #define TEMP_0_PIN           -1
82
-  #define HEATER_0_PIN         -1
83
-#else
80
+#if TEMP_SENSOR_0 != 0
84
   #define HEATER_0_PIN          2   // EXTRUDER 1
81
   #define HEATER_0_PIN          2   // EXTRUDER 1
85
   #if TEMP_SENSOR_0 == -1
82
   #if TEMP_SENSOR_0 == -1
86
     #define TEMP_0_PIN          6   // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
83
     #define TEMP_0_PIN          6   // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
89
   #endif
86
   #endif
90
 #endif
87
 #endif
91
 
88
 
92
-#if TEMP_SENSOR_1 == 0
93
-  #define TEMP_1_PIN           -1
94
-  #define HEATER_1_PIN         -1
95
-#else
89
+#if TEMP_SENSOR_1 != 0
96
   #define HEATER_1_PIN          3   // EXTRUDER 2
90
   #define HEATER_1_PIN          3   // EXTRUDER 2
97
   #if TEMP_SENSOR_1 == -1
91
   #if TEMP_SENSOR_1 == -1
98
     #define TEMP_1_PIN          5   // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
92
     #define TEMP_1_PIN          5   // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
101
   #endif
95
   #endif
102
 #endif
96
 #endif
103
 
97
 
104
-#if TEMP_SENSOR_2 == 0
105
-  #define TEMP_2_PIN          -1
106
-  #define HEATER_2_PIN        -1
107
-#else
98
+#if TEMP_SENSOR_2 != 0
108
   #define HEATER_2_PIN         6    // EXTRUDER 3
99
   #define HEATER_2_PIN         6    // EXTRUDER 3
109
   #if TEMP_SENSOR_2 == -1
100
   #if TEMP_SENSOR_2 == -1
110
     #define TEMP_2_PIN         7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
101
     #define TEMP_2_PIN         7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
116
 //optional for extruder 4 or chamber: #define TEMP_X_PIN         12   // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
107
 //optional for extruder 4 or chamber: #define TEMP_X_PIN         12   // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
117
 //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
108
 //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
118
 
109
 
119
-#if TEMP_SENSOR_BED == 0
120
-  #define TEMP_BED_PIN        -1
121
-  #define HEATER_BED_PIN      -1
122
-#else
110
+#if TEMP_SENSOR_BED != 0
123
   #define HEATER_BED_PIN       9    // BED
111
   #define HEATER_BED_PIN       9    // BED
124
   #if TEMP_SENSOR_BED == -1
112
   #if TEMP_SENSOR_BED == -1
125
     #define TEMP_BED_PIN       7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
113
     #define TEMP_BED_PIN       7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
128
   #endif
116
   #endif
129
 #endif
117
 #endif
130
 
118
 
131
-#define SDPOWER            -1
132
 #define SDSS               53
119
 #define SDSS               53
133
 #define SD_DETECT_PIN      49
120
 #define SD_DETECT_PIN      49
134
 #define BEEPER_PIN         44
121
 #define BEEPER_PIN         44

+ 6
- 20
Marlin/pins_SANGUINOLOLU_11.h View File

43
 #define E0_STEP_PIN         1
43
 #define E0_STEP_PIN         1
44
 #define E0_DIR_PIN          0
44
 #define E0_DIR_PIN          0
45
 
45
 
46
-#define LED_PIN            -1
47
-#define FAN_PIN            -1
48
-
49
 #if MB(AZTEEG_X1) || MB(STB_11) || MB(MELZI)
46
 #if MB(AZTEEG_X1) || MB(STB_11) || MB(MELZI)
50
   #define FAN_PIN           4 // Works for Panelolu2 too
47
   #define FAN_PIN           4 // Works for Panelolu2 too
51
-  #if MB(MELZI)
52
-    #define LED_PIN        27 // On some broken versions of the Sanguino libraries the pin definitions are wrong, so LED_PIN needs to be 28. But you should upgrade your Sanguino libraries! See #368.
53
-  #elif MB(STB_11)
54
-    #define LCD_PIN_BL     17 // LCD backlight LED
55
-  #endif
48
+#endif
49
+
50
+#if MB(MELZI)
51
+  #define LED_PIN          27 // On some broken versions of the Sanguino libraries the pin definitions are wrong, so LED_PIN needs to be 28. But you should upgrade your Sanguino libraries! See #368.
52
+#elif MB(STB_11)
53
+  #define LCD_PIN_BL       17 // LCD backlight LED
56
 #endif
54
 #endif
57
 
55
 
58
 #if ENABLED(Z_PROBE_SLED)
56
 #if ENABLED(Z_PROBE_SLED)
59
   #define SLED_PIN         -1
57
   #define SLED_PIN         -1
60
 #endif
58
 #endif
61
 
59
 
62
-#define PS_ON_PIN          -1
63
-#define KILL_PIN           -1
64
-
65
 #define HEATER_0_PIN       13 // (extruder)
60
 #define HEATER_0_PIN       13 // (extruder)
66
-#define HEATER_1_PIN       -1
67
-#define HEATER_2_PIN       -1
68
 
61
 
69
 #if ENABLED(SANGUINOLOLU_V_1_2)
62
 #if ENABLED(SANGUINOLOLU_V_1_2)
70
 
63
 
89
 #endif
82
 #endif
90
 
83
 
91
 #define TEMP_0_PIN          7   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
84
 #define TEMP_0_PIN          7   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 33 extruder)
92
-#define TEMP_1_PIN         -1
93
-#define TEMP_2_PIN         -1
94
 #define TEMP_BED_PIN        6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
85
 #define TEMP_BED_PIN        6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
95
-#define SDPOWER            -1
96
 #define SDSS               31
86
 #define SDSS               31
97
 
87
 
98
 /**
88
 /**
190
   #define SD_DETECT_PIN         -1
180
   #define SD_DETECT_PIN         -1
191
 
181
 
192
 #endif // MAKRPANEL
182
 #endif // MAKRPANEL
193
-
194
-// #if FAN_PIN == 12 || FAN_PIN ==13
195
-//#define FAN_SOFT_PWM
196
-// #endif

+ 0
- 11
Marlin/pins_SAV_MKI.h View File

53
 #define E0_ENABLE_PIN      19
53
 #define E0_ENABLE_PIN      19
54
 
54
 
55
 #define HEATER_0_PIN       21  // Extruder
55
 #define HEATER_0_PIN       21  // Extruder
56
-#define HEATER_1_PIN       -1
57
-#define HEATER_2_PIN       -1
58
 #define HEATER_BED_PIN     20  // Bed
56
 #define HEATER_BED_PIN     20  // Bed
59
 #define FAN_PIN            16  // Fan   -- from Teensyduino environment.
57
 #define FAN_PIN            16  // Fan   -- from Teensyduino environment.
60
                                // For the fan and Teensyduino uses a different pin mapping.
58
                                // For the fan and Teensyduino uses a different pin mapping.
61
-
62
 #define X_STOP_PIN         13
59
 #define X_STOP_PIN         13
63
 #define Y_STOP_PIN         14
60
 #define Y_STOP_PIN         14
64
 //#define Z_STOP_PIN         15
61
 //#define Z_STOP_PIN         15
67
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
64
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
68
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
65
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
69
 
66
 
70
-#define TEMP_1_PIN         -1
71
-#define TEMP_2_PIN         -1
72
-
73
 #if DISABLED(SDSUPPORT)
67
 #if DISABLED(SDSUPPORT)
74
   // these pins are defined in the SD library if building with SD support
68
   // these pins are defined in the SD library if building with SD support
75
   #define SCK_PIN          9
69
   #define SCK_PIN          9
104
 #define EXT_AUX_A4_IO             44 // Digital IO, 42 (teensy), 44 (marlin)
98
 #define EXT_AUX_A4_IO             44 // Digital IO, 42 (teensy), 44 (marlin)
105
 
99
 
106
 
100
 
107
-#define SDPOWER            -1
108
-#define LED_PIN            -1
109
-#define PS_ON_PIN          -1
110
-#define SD_DETECT_PIN      -1
111
-
112
 #define BEEPER_PIN         -1
101
 #define BEEPER_PIN         -1
113
 #define LCD_PINS_RS        -1
102
 #define LCD_PINS_RS        -1
114
 #define LCD_PINS_ENABLE    -1
103
 #define LCD_PINS_ENABLE    -1

+ 0
- 9
Marlin/pins_SETHI.h View File

57
 #define E0_ENABLE_PIN 24
57
 #define E0_ENABLE_PIN 24
58
 
58
 
59
 #define TEMP_0_PIN 1
59
 #define TEMP_0_PIN 1
60
-#define TEMP_1_PIN -1
61
-#define TEMP_2_PIN -1
62
 #define TEMP_BED_PIN 2
60
 #define TEMP_BED_PIN 2
63
 
61
 
64
 #define HEATER_0_PIN 4
62
 #define HEATER_0_PIN 4
65
-#define HEATER_1_PIN -1
66
-#define HEATER_2_PIN -1
67
 #define HEATER_BED_PIN 3
63
 #define HEATER_BED_PIN 3
68
 
64
 
69
-#define KILL_PIN -1
70
-
71
-#define SDPOWER -1
72
-#define SDSS -1 // SCL pin of I2C header
73
-#define LED_PIN -1
74
 
65
 
75
 #if (GEN7_VERSION >= 13)
66
 #if (GEN7_VERSION >= 13)
76
   // Gen7 v1.3 removed the fan pin
67
   // Gen7 v1.3 removed the fan pin

+ 0
- 7
Marlin/pins_TEENSY2.h View File

93
 #define E0_ENABLE_PIN      26 // Shared w/x
93
 #define E0_ENABLE_PIN      26 // Shared w/x
94
 
94
 
95
 #define HEATER_0_PIN       15 //  21  // Extruder
95
 #define HEATER_0_PIN       15 //  21  // Extruder
96
-#define HEATER_1_PIN       -1
97
-#define HEATER_2_PIN       -1
98
 #define HEATER_BED_PIN     14 // 20  // Bed
96
 #define HEATER_BED_PIN     14 // 20  // Bed
99
 #define FAN_PIN            16 // 22  // Fan
97
 #define FAN_PIN            16 // 22  // Fan
100
 
98
 
104
 
102
 
105
 #define TEMP_0_PIN          7 // Extruder / Analog pin numbering
103
 #define TEMP_0_PIN          7 // Extruder / Analog pin numbering
106
 #define TEMP_BED_PIN        6 // Bed / Analog pin numbering
104
 #define TEMP_BED_PIN        6 // Bed / Analog pin numbering
107
-#define TEMP_1_PIN         -1
108
-#define TEMP_2_PIN         -1
109
 
105
 
110
-#define SDPOWER            -1
111
-#define SD_DETECT_PIN      -1
112
 #define SDSS               20 // 8
106
 #define SDSS               20 // 8
113
 #define LED_PIN             6
107
 #define LED_PIN             6
114
 #define PS_ON_PIN          27
108
 #define PS_ON_PIN          27
115
-#define KILL_PIN           -1
116
 
109
 
117
 #if DISABLED(SDSUPPORT)
110
 #if DISABLED(SDSUPPORT)
118
   // these pins are defined in the SD library if building with SD support
111
   // these pins are defined in the SD library if building with SD support

+ 0
- 7
Marlin/pins_TEENSYLU.h View File

72
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
72
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
73
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
73
 #define TEMP_BED_PIN        6  // Bed / Analog pin numbering
74
 
74
 
75
-#define TEMP_1_PIN         -1
76
-#define TEMP_2_PIN         -1
77
-
78
-#define SDPOWER            -1
79
 #define SDSS                8
75
 #define SDSS                8
80
-#define LED_PIN            -1
81
-#define PS_ON_PIN          -1
82
-#define KILL_PIN           -1
83
 
76
 
84
 #if DISABLED(SDSUPPORT)
77
 #if DISABLED(SDSUPPORT)
85
   // these pins are defined in the SD library if building with SD support
78
   // these pins are defined in the SD library if building with SD support

+ 0
- 7
Marlin/pins_ULTIMAIN_2.h View File

55
 #define HEATER_1_PIN 3
55
 #define HEATER_1_PIN 3
56
 #define TEMP_1_PIN 9
56
 #define TEMP_1_PIN 9
57
 
57
 
58
-#define HEATER_2_PIN -1
59
-#define TEMP_2_PIN -1
60
-
61
 #define E0_STEP_PIN         42
58
 #define E0_STEP_PIN         42
62
 #define E0_DIR_PIN          43
59
 #define E0_DIR_PIN          43
63
 #define E0_ENABLE_PIN       37
60
 #define E0_ENABLE_PIN       37
66
 #define E1_DIR_PIN          47
63
 #define E1_DIR_PIN          47
67
 #define E1_ENABLE_PIN       48
64
 #define E1_ENABLE_PIN       48
68
 
65
 
69
-#define SDPOWER            -1
70
 #define SDSS               53
66
 #define SDSS               53
71
 #define LED_PIN            8
67
 #define LED_PIN            8
72
 #define FAN_PIN            7
68
 #define FAN_PIN            7
73
-#define PS_ON_PIN          -1
74
-#define KILL_PIN           -1
75
-#define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
76
 #define SAFETY_TRIGGERED_PIN     28 //PIN to detect the safety circuit has triggered
69
 #define SAFETY_TRIGGERED_PIN     28 //PIN to detect the safety circuit has triggered
77
 #define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
70
 #define MAIN_VOLTAGE_MEASURE_PIN 14 //Analogue PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
78
 
71
 

+ 0
- 5
Marlin/pins_ULTIMAKER.h View File

62
 #define HEATER_1_PIN 3
62
 #define HEATER_1_PIN 3
63
 #define TEMP_1_PIN 9
63
 #define TEMP_1_PIN 9
64
 
64
 
65
-#define HEATER_2_PIN -1
66
-#define TEMP_2_PIN -1
67
-
68
 #define E0_STEP_PIN         43
65
 #define E0_STEP_PIN         43
69
 #define E0_DIR_PIN          45
66
 #define E0_DIR_PIN          45
70
 #define E0_ENABLE_PIN       41
67
 #define E0_ENABLE_PIN       41
73
 #define E1_DIR_PIN          47
70
 #define E1_DIR_PIN          47
74
 #define E1_ENABLE_PIN       48
71
 #define E1_ENABLE_PIN       48
75
 
72
 
76
-#define SDPOWER            -1
77
 #define SDSS               53
73
 #define SDSS               53
78
 #define LED_PIN            13
74
 #define LED_PIN            13
79
 #define FAN_PIN            7
75
 #define FAN_PIN            7
80
 #define PS_ON_PIN          12
76
 #define PS_ON_PIN          12
81
-#define KILL_PIN           -1
82
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
77
 #define SUICIDE_PIN        54  //PIN that has to be turned on right after start, to keep power flowing.
83
 
78
 
84
 #if ENABLED(ULTRA_LCD)
79
 #if ENABLED(ULTRA_LCD)

+ 2
- 16
Marlin/pins_ULTIMAKER_OLD.h View File

51
 #define Z_MAX_PIN 18
51
 #define Z_MAX_PIN 18
52
 #define Z_ENABLE_PIN 35
52
 #define Z_ENABLE_PIN 35
53
 
53
 
54
-#define HEATER_BED_PIN -1
55
-#define TEMP_BED_PIN -1
56
-
57
-#define HEATER_0_PIN  2
58
 #define TEMP_0_PIN 8
54
 #define TEMP_0_PIN 8
59
-
60
-#define HEATER_1_PIN 1
61
 #define TEMP_1_PIN 1
55
 #define TEMP_1_PIN 1
62
 
56
 
63
-#define HEATER_2_PIN -1
64
-#define TEMP_2_PIN -1
57
+#define HEATER_0_PIN  2
58
+#define HEATER_1_PIN  1
65
 
59
 
66
 #define E0_STEP_PIN         43
60
 #define E0_STEP_PIN         43
67
 #define E0_DIR_PIN          45
61
 #define E0_DIR_PIN          45
71
 #define E1_DIR_PIN          -1
65
 #define E1_DIR_PIN          -1
72
 #define E1_ENABLE_PIN       -1
66
 #define E1_ENABLE_PIN       -1
73
 
67
 
74
-#define SDPOWER            -1
75
-#define SDSS               -1
76
-#define LED_PIN            -1
77
-#define FAN_PIN            -1
78
-#define PS_ON_PIN          -1
79
-#define KILL_PIN           -1
80
-#define SUICIDE_PIN        -1  //PIN that has to be turned on right after start, to keep power flowing.
81
-
82
 #define LCD_PINS_RS 24
68
 #define LCD_PINS_RS 24
83
 #define LCD_PINS_ENABLE 22
69
 #define LCD_PINS_ENABLE 22
84
 #define LCD_PINS_D4 36
70
 #define LCD_PINS_D4 36

Loading…
Cancel
Save