Bladeren bron

Cleanup pins files, fixup analogtodigitalpin, etc.

Scott Lahteine 8 jaren geleden
bovenliggende
commit
5ca6334fd2

+ 0
- 5
Marlin/Marlin.h Bestand weergeven

@@ -52,11 +52,6 @@
52 52
 
53 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 55
 #ifdef USBCON
61 56
   #include "HardwareSerial.h"
62 57
 #endif

+ 114
- 22
Marlin/pins.h Bestand weergeven

@@ -23,20 +23,6 @@
23 23
 #ifndef PINS_H
24 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 26
 #if MB(GEN7_CUSTOM)
41 27
   #include "pins_GEN7_CUSTOM.h"
42 28
 #elif MB(GEN7_12)
@@ -157,21 +143,120 @@
157 143
   #error Unknown MOTHERBOARD value set in Configuration.h
158 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 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 247
 #define _E1_PINS
163 248
 #define _E2_PINS
164 249
 #define _E3_PINS
165 250
 
166 251
 #if EXTRUDERS > 1
167 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 254
   #if EXTRUDERS > 2
170 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 257
     #if EXTRUDERS > 3
173 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 260
     #endif
176 261
   #endif
177 262
 #elif ENABLED(Y_DUAL_STEPPER_DRIVERS) || ENABLED(Z_DUAL_STEPPER_DRIVERS)
@@ -179,6 +264,11 @@
179 264
   #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN,
180 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 272
 #ifdef X_STOP_PIN
183 273
   #if X_HOME_DIR < 0
184 274
     #define X_MIN_PIN X_STOP_PIN
@@ -209,6 +299,9 @@
209 299
   #endif
210 300
 #endif
211 301
 
302
+//
303
+// Disable unused endstop / probe pins
304
+//
212 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 306
   #undef Z_MIN_PROBE_PIN
214 307
   #define Z_MIN_PROBE_PIN    -1
@@ -270,10 +363,9 @@
270 363
     X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
271 364
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
272 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 371
 #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))

+ 0
- 20
Marlin/pins_5DPRINT.h Bestand weergeven

@@ -54,8 +54,6 @@
54 54
 #define E0_ENABLE_PIN      17
55 55
 
56 56
 #define HEATER_0_PIN       21  // Extruder
57
-#define HEATER_1_PIN       -1
58
-#define HEATER_2_PIN       -1
59 57
 #define HEATER_BED_PIN     20  // Bed
60 58
 // You may need to change FAN_PIN to 16 because Marlin isn't using fastio.h
61 59
 // for the fan and Teensyduino uses a different pin mapping.
@@ -64,14 +62,6 @@
64 62
 #define TEMP_0_PIN          1  // Extruder / Analog pin numbering
65 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 65
 // The SDSS pin uses a different pin mapping from file Sd2PinMap.h
76 66
 #define SDSS               20
77 67
 
@@ -85,15 +75,6 @@
85 75
 // Microstepping pins
86 76
 // Note that the pin mapping is not from fastio.h
87 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 78
 #define X_MS1_PIN 25
98 79
 #define X_MS2_PIN 26
99 80
 #define Y_MS1_PIN 9
@@ -102,4 +83,3 @@
102 83
 #define Z_MS2_PIN 6
103 84
 #define E0_MS1_PIN 5
104 85
 #define E0_MS2_PIN 4
105
-

+ 0
- 8
Marlin/pins_99.h Bestand weergeven

@@ -43,18 +43,10 @@
43 43
 #define E0_DIR_PIN          66
44 44
 #define E0_ENABLE_PIN      -1
45 45
 
46
-#define SDPOWER            -1
47 46
 #define SDSS               53
48
-#define LED_PIN            -1
49
-#define FAN_PIN            -1
50 47
 #define PS_ON_PIN           9
51
-#define KILL_PIN           -1
52 48
 
53 49
 #define HEATER_0_PIN        13
54
-#define HEATER_1_PIN       -1
55
-#define HEATER_2_PIN       -1
56 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 51
 #define HEATER_BED_PIN      4
60 52
 #define TEMP_BED_PIN       10

+ 0
- 18
Marlin/pins_A4JP.h Bestand weergeven

@@ -38,18 +38,6 @@
38 38
   #define SLED_PIN -1
39 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 41
 //Fan_2 2
54 42
 
55 43
 /*****************
@@ -108,9 +96,6 @@
108 96
 #define HEATER_0_PIN   9
109 97
 #define TEMP_0_PIN     0
110 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 100
 #define E0_STEP_PIN   34
116 101
 #define E0_DIR_PIN    43
@@ -126,13 +111,10 @@
126 111
 #define DIGIPOTSS_PIN 38
127 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 114
 #define SDSS          53
131 115
 #define LED_PIN       13
132 116
 #define FAN_PIN        8
133 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 118
 #define FAN_0_PIN      6 //Glen
137 119
 #define FAN_1_PIN      2 //Glen
138 120
 

+ 0
- 8
Marlin/pins_BRAINWAVE.h Bestand weergeven

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

+ 0
- 6
Marlin/pins_BRAINWAVE_PRO.h Bestand weergeven

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

+ 4
- 25
Marlin/pins_CHEAPTRONIC.h Bestand weergeven

@@ -35,27 +35,20 @@
35 35
 #define X_DIR_PIN 15
36 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 38
 // Y motor stepper
43 39
 #define Y_STEP_PIN 35
44 40
 #define Y_DIR_PIN 36
45 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 43
 // Z motor stepper
52 44
 #define Z_STEP_PIN 40
53 45
 #define Z_DIR_PIN 41
54 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 53
 // Extruder 0 stepper
61 54
 #define E0_STEP_PIN 26
@@ -67,27 +60,14 @@
67 60
 #define E1_DIR_PIN 34
68 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 64
 #define HEATER_0_PIN 19 // EXTRUDER 1
81 65
 #define HEATER_1_PIN 23 // EXTRUDER 2
82
-// HeatedBad
83 66
 #define HEATER_BED_PIN 22
84
-// Cheaptronic v1.0 hasent EXTRUDER 3
85
-#define HEATER_2_PIN -1
86 67
 
87 68
 // Temperature sensors
88 69
 #define TEMP_0_PIN 15
89 70
 #define TEMP_1_PIN 14
90
-#define TEMP_2_PIN -1
91 71
 #define TEMP_BED_PIN 13
92 72
 
93 73
 // Cheaptronic v1.0 doesn't support LCD
@@ -108,4 +88,3 @@
108 88
 #define BLEN_A 0
109 89
 
110 90
 // Cheaptronic v1.0 doesn't use this
111
-#define SD_DETECT_PIN -1

+ 0
- 5
Marlin/pins_ELEFU_3.h Bestand weergeven

@@ -58,9 +58,6 @@
58 58
 #define E0_DIR_PIN         41
59 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 61
 #define FAN_PIN            16 //5V PWM
65 62
 
66 63
 #define PS_ON_PIN          10 //Set to -1 if using a manual switch on the PWRSW Connector
@@ -77,8 +74,6 @@
77 74
 
78 75
 #define BEEPER_PIN         36
79 76
 
80
-#define KILL_PIN           -1
81
-
82 77
 // M240  Triggers a camera by emulating a Canon RC-1 Remote
83 78
 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
84 79
 #define PHOTOGRAPH_PIN     29

+ 0
- 15
Marlin/pins_GEN3_MONOLITHIC.h Bestand weergeven

@@ -62,22 +62,7 @@
62 62
 #define HEATER_0_PIN 16
63 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 65
 // pin for controlling the PSU.
77 66
 #define PS_ON_PIN       14  // Alex, Do this work on the card?
78 67
 
79 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 Bestand weergeven

@@ -43,12 +43,7 @@
43 43
 #define E0_STEP_PIN        17
44 44
 #define E0_DIR_PIN         21
45 45
 
46
-#define LED_PIN            -1
47
-
48
-#define FAN_PIN            -1
49
-
50 46
 #define PS_ON_PIN         14
51
-#define KILL_PIN           -1
52 47
 
53 48
 #define HEATER_0_PIN       12 // (extruder)
54 49
 
@@ -59,9 +54,5 @@
59 54
 #define E0_ENABLE_PIN      13
60 55
 
61 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 57
 #define TEMP_BED_PIN        5   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
65
-#define SDPOWER            -1
66 58
 #define SDSS               4
67
-#define HEATER_2_PIN       -1

+ 1
- 14
Marlin/pins_GEN6.h Bestand weergeven

@@ -53,28 +53,15 @@
53 53
 #define E0_DIR_PIN       2    //Edited @ EJE Electronics 20100715
54 54
 #define E0_ENABLE_PIN    3    //Added @ EJE Electronics 20100715
55 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 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 60
   #define HEATER_BED_PIN   1    //changed @ rkoeppl 20110410
69 61
   #define TEMP_BED_PIN     0    //changed @ rkoeppl 20110410
70 62
 #endif
71 63
 
72
-#define SDPOWER          -1
73 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 65
 //our pin for debugging.
79 66
 
80 67
 #define DEBUG_PIN        0

+ 2
- 13
Marlin/pins_GEN7_12.h Bestand weergeven

@@ -57,25 +57,14 @@
57 57
 #define E0_ENABLE_PIN 24
58 58
 
59 59
 #define TEMP_0_PIN 1
60
-#define TEMP_1_PIN -1
61
-#define TEMP_2_PIN -1
62 60
 #define TEMP_BED_PIN 2
63 61
 
64 62
 #define HEATER_0_PIN 4
65
-#define HEATER_1_PIN -1
66
-#define HEATER_2_PIN -1
67 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 68
   #define FAN_PIN 31
80 69
 #endif
81 70
 

+ 0
- 13
Marlin/pins_GEN7_14.h Bestand weergeven

@@ -54,23 +54,11 @@
54 54
 #define E0_ENABLE_PIN 25
55 55
 
56 56
 #define TEMP_0_PIN 1
57
-#define TEMP_1_PIN -1
58
-#define TEMP_2_PIN -1
59 57
 #define TEMP_BED_PIN 0
60 58
 
61 59
 #define HEATER_0_PIN 4
62
-#define HEATER_1_PIN -1
63
-#define HEATER_2_PIN -1
64 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 62
 #define PS_ON_PIN 15
75 63
 
76 64
 //our pin for debugging.
@@ -79,4 +67,3 @@
79 67
 //our RS485 pins
80 68
 #define TX_ENABLE_PIN 12
81 69
 #define RX_ENABLE_PIN 13
82
-

+ 0
- 10
Marlin/pins_GEN7_CUSTOM.h Bestand weergeven

@@ -55,20 +55,13 @@
55 55
 #define E0_ENABLE_PIN   24
56 56
 
57 57
 #define TEMP_0_PIN       2
58
-#define TEMP_1_PIN      -1
59
-#define TEMP_2_PIN      -1
60 58
 #define TEMP_BED_PIN     1   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
61 59
 
62 60
 #define HEATER_0_PIN     4
63
-#define HEATER_1_PIN    -1
64
-#define HEATER_2_PIN    -1
65 61
 #define HEATER_BED_PIN   3  // (bed)
66 62
 
67
-#define SDPOWER         -1
68 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 65
 #define PS_ON_PIN       19
73 66
 //our pin for debugging.
74 67
 
@@ -79,10 +72,7 @@
79 72
 //#define RX_ENABLE_PIN       13
80 73
 
81 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 76
 //Pins for 4bit LCD Support
87 77
 #define LCD_PINS_RS 18
88 78
 #define LCD_PINS_ENABLE 17

+ 0
- 5
Marlin/pins_LEAPFROG.h Bestand weergeven

@@ -54,13 +54,9 @@
54 54
 #define E1_DIR_PIN          40 //40
55 55
 #define E1_ENABLE_PIN       36 //36
56 56
 
57
-#define SDPOWER            -1
58 57
 #define SDSS               11
59
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
60 58
 #define LED_PIN            13
61 59
 #define FAN_PIN            7
62
-#define PS_ON_PIN          -1
63
-#define KILL_PIN           -1
64 60
 #define SOL1_PIN   16
65 61
 #define SOL2_PIN    17
66 62
 
@@ -69,7 +65,6 @@
69 65
 #define HEATER_2_PIN       11 //-1 // 13
70 66
 #define TEMP_0_PIN         13 //D27   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
71 67
 #define TEMP_1_PIN         15 // 1
72
-#define TEMP_2_PIN         -1 // 2
73 68
 #define HEATER_BED_PIN     10 // 14/15
74 69
 #define TEMP_BED_PIN       14 // 1,2 or I2C
75 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 Bestand weergeven

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

+ 1
- 7
Marlin/pins_MEGATRONICS.h Bestand weergeven

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

+ 5
- 16
Marlin/pins_MEGATRONICS_2.h Bestand weergeven

@@ -60,45 +60,36 @@
60 60
 #define E2_DIR_PIN 24
61 61
 #define E2_ENABLE_PIN 22
62 62
 
63
-#define SDPOWER -1
64 63
 #define SDSS 53
65 64
 #define LED_PIN 13
66 65
 
67 66
 #define FAN_PIN 7
68 67
 #define FAN2_PIN 6
69 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 71
 #if TEMP_SENSOR_0 == -1
77
-  #define TEMP_0_PIN 4 // ANALOG NUMBERING
72
+  #define TEMP_0_PIN 4  // ANALOG NUMBERING
78 73
 #else
79 74
   #define TEMP_0_PIN 13 // ANALOG NUMBERING
80 75
 #endif
81 76
 
82
-
77
+#define HEATER_1_PIN 8  // EXTRUDER 2
83 78
 #if TEMP_SENSOR_1 == -1
84
-  #define TEMP_1_PIN 8 // ANALOG NUMBERING
79
+  #define TEMP_1_PIN 8  // ANALOG NUMBERING
85 80
 #else
86 81
   #define TEMP_1_PIN 15 // ANALOG NUMBERING
87 82
 #endif
88 83
 
89
-#define TEMP_2_PIN -1 // ANALOG NUMBERING
90
-
91 84
 #define HEATER_BED_PIN 10 // BED
92
-
93 85
 #if TEMP_SENSOR_BED == -1
94
-  #define TEMP_BED_PIN 8 // ANALOG NUMBERING
86
+  #define TEMP_BED_PIN 8  // ANALOG NUMBERING
95 87
 #else
96 88
   #define TEMP_BED_PIN 14 // ANALOG NUMBERING
97 89
 #endif
98 90
 
99 91
 #define BEEPER_PIN 64
100 92
 
101
-
102 93
 #define LCD_PINS_RS 14
103 94
 #define LCD_PINS_ENABLE 15
104 95
 #define LCD_PINS_D4 30
@@ -106,7 +97,6 @@
106 97
 #define LCD_PINS_D6 32
107 98
 #define LCD_PINS_D7 33
108 99
 
109
-
110 100
 // Buttons are directly attached using keypad
111 101
 #define BTN_EN1 61
112 102
 #define BTN_EN2 59
@@ -116,4 +106,3 @@
116 106
 #define BLEN_B 1
117 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 Bestand weergeven

@@ -30,7 +30,6 @@
30 30
 
31 31
 #define LARGE_FLASH        true
32 32
 
33
-
34 33
 #if ENABLED(Z_PROBE_SLED)
35 34
   #define SLED_PIN         -1
36 35
 #endif
@@ -71,12 +70,10 @@
71 70
 #define E2_DIR_PIN         60
72 71
 #define E2_ENABLE_PIN      23
73 72
 
74
-#define SDPOWER -1
75 73
 #define SDSS 53
76 74
 #define LED_PIN 13
77 75
 
78 76
 #define PS_ON_PIN 12
79
-#define KILL_PIN -1
80 77
 
81 78
 #define HEATER_0_PIN 2
82 79
 #define HEATER_1_PIN 9
@@ -85,10 +82,26 @@
85 82
 #define FAN_PIN 6
86 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 106
 #define BEEPER_PIN 61
94 107
 
@@ -113,4 +126,3 @@
113 126
 #define BLEN_B 1
114 127
 #define BLEN_A 0
115 128
 
116
-#define SD_DETECT_PIN -1 // Megatronics doesn't use this

+ 0
- 22
Marlin/pins_MINIRAMBO.h Bestand weergeven

@@ -30,18 +30,6 @@
30 30
 
31 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 33
 #define X_STEP_PIN          37
46 34
 #define X_DIR_PIN           48
47 35
 #define X_MIN_PIN           12
@@ -77,12 +65,8 @@
77 65
 
78 66
 #if ENABLED(BARICUDA)
79 67
   #define HEATER_2_PIN       6
80
-#else
81
-  #define HEATER_2_PIN      -1
82 68
 #endif
83 69
 
84
-#define TEMP_2_PIN          -1
85
-
86 70
 #define E0_STEP_PIN         34
87 71
 #define E0_DIR_PIN          43
88 72
 #define E0_ENABLE_PIN       26
@@ -92,8 +76,6 @@
92 76
 #define E1_STEP_PIN         -1
93 77
 #define E1_DIR_PIN          -1
94 78
 #define E1_ENABLE_PIN       -1
95
-#define E1_MS1_PIN          -1
96
-#define E1_MS2_PIN          -1
97 79
 
98 80
 #define MOTOR_CURRENT_PWM_XY_PIN 46
99 81
 #define MOTOR_CURRENT_PWM_Z_PIN  45
@@ -101,14 +83,10 @@
101 83
 //Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
102 84
 #define MOTOR_CURRENT_PWM_RANGE 2000
103 85
 #define DEFAULT_PWM_MOTOR_CURRENT  {1300, 1300, 1250}
104
-#define SDPOWER             -1
105 86
 #define SDSS                53
106 87
 #define LED_PIN             13
107 88
 #define FAN_PIN              8
108 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 91
 #if ENABLED(ULTRA_LCD)
114 92
 

+ 5
- 15
Marlin/pins_MINITRONICS.h Bestand weergeven

@@ -60,26 +60,18 @@
60 60
 #define E2_DIR_PIN -1
61 61
 #define E2_ENABLE_PIN -1
62 62
 
63
-#define SDPOWER -1
64 63
 #define SDSS 16
65 64
 #define LED_PIN 46
66 65
 
67 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 74
 #define HEATER_BED_PIN 3 // BED
82
-#define TEMP_BED_PIN 6 // ANALOG NUMBERING
83 75
 
84 76
 #define BEEPER_PIN -1
85 77
 
@@ -90,7 +82,6 @@
90 82
 #define LCD_PINS_D6 -1
91 83
 #define LCD_PINS_D7 -1
92 84
 
93
-
94 85
 // Buttons are directly attached using keypad
95 86
 #define BTN_EN1 -1
96 87
 #define BTN_EN2 -1
@@ -100,4 +91,3 @@
100 91
 #define BLEN_B 1
101 92
 #define BLEN_A 0
102 93
 
103
-#define SD_DETECT_PIN -1  // Minitronics doesn't use this

+ 2
- 11
Marlin/pins_OMCA.h Bestand weergeven

@@ -90,23 +90,14 @@
90 90
 #define E2_DIR_PIN         -1 // 20
91 91
 #define E2_ENABLE_PIN      -1 // 18
92 92
 
93
-#define SDPOWER            -1
94 93
 #define SDSS               11
95
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
96
-#define LED_PIN            -1
97 94
 #define FAN_PIN            14 // PWM on MIDDLE connector
98
-#define PS_ON_PIN          -1
99
-#define KILL_PIN           -1
100 95
 
101 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 99
 #define TEMP_0_PIN          0 // ANALOG INPUT NUMBERING
107 100
 #define TEMP_1_PIN          1 // ANALOG
108
-#define TEMP_2_PIN         -1 // 2
109
-#define HEATER_BED_PIN      4
110 101
 #define TEMP_BED_PIN        2 // 1,2 or I2C
111 102
 
112 103
 #define I2C_SCL            16

+ 1
- 11
Marlin/pins_OMCA_A.h Bestand weergeven

@@ -81,20 +81,10 @@
81 81
 #define E2_DIR_PIN         -1 // 16
82 82
 #define E2_ENABLE_PIN      24
83 83
 
84
-#define SDPOWER            -1
85 84
 #define SDSS               11
86
-#define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
87
-#define LED_PIN            -1
88 85
 #define FAN_PIN             3
89
-#define PS_ON_PIN          -1
90
-#define KILL_PIN           -1
91 86
 
92 87
 #define HEATER_0_PIN        4
93
-#define HEATER_1_PIN       -1 // 12
94
-#define HEATER_2_PIN       -1 // 13
95 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 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 Bestand weergeven

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

+ 0
- 8
Marlin/pins_PRINTRBOARD_REVF.h Bestand weergeven

@@ -75,17 +75,9 @@
75 75
 
76 76
 #define FILWIDTH_PIN        2  // ANALOG NUMBERING
77 77
 
78
-#define TEMP_1_PIN         -1
79
-#define TEMP_2_PIN         -1
80
-
81 78
 ////LCD Pin Setup////
82 79
 
83
-#define SDPOWER            -1
84 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 82
 // uncomment to enable an I2C based DAC like on the Printrboard REVF
91 83
 #define DAC_STEPPER_CURRENT

+ 0
- 18
Marlin/pins_RAMBO.h Bestand weergeven

@@ -40,17 +40,6 @@
40 40
   #define SLED_PIN         -1
41 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 43
 #define X_STEP_PIN 37
55 44
 #define X_DIR_PIN 48
56 45
 #define X_MIN_PIN 12
@@ -86,12 +75,8 @@
86 75
 
87 76
 #if ENABLED(BARICUDA)
88 77
   #define HEATER_2_PIN 6
89
-#else
90
-  #define HEATER_2_PIN -1
91 78
 #endif
92 79
 
93
-#define TEMP_2_PIN -1
94
-
95 80
 #define E0_STEP_PIN         34
96 81
 #define E0_DIR_PIN          43
97 82
 #define E0_ENABLE_PIN       26
@@ -107,7 +92,6 @@
107 92
 #define DIGIPOTSS_PIN 38
108 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 95
 #define SDSS               53
112 96
 #define LED_PIN            13
113 97
 #define FAN_PIN            8
@@ -121,8 +105,6 @@
121 105
   Fan_2 2
122 106
 ***********************************************************/
123 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 109
 #if ENABLED(ULTRA_LCD)
128 110
 

+ 5
- 15
Marlin/pins_RAMPS_14.h Bestand weergeven

@@ -87,7 +87,6 @@
87 87
 #define E1_DIR_PIN         34
88 88
 #define E1_ENABLE_PIN      30
89 89
 
90
-#define SDPOWER            -1
91 90
 #define SDSS               53
92 91
 #define LED_PIN            13
93 92
 
@@ -125,27 +124,18 @@
125 124
   #define HEATER_0_PIN      8
126 125
 #else
127 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 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 133
   #define HEATER_1_PIN      9   // EXTRUDER 2 (FAN On Sprinter)
134 134
 #endif
135 135
 
136
-#define HEATER_2_PIN       -1
137
-
138 136
 #define TEMP_0_PIN         13   // ANALOG NUMBERING
139 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 140
 #if ENABLED(Z_PROBE_SLED)
151 141
   #define SLED_PIN           -1

+ 0
- 6
Marlin/pins_RAMPS_OLD.h Bestand weergeven

@@ -56,8 +56,6 @@
56 56
 #define SDPOWER            48
57 57
 #define SDSS               53
58 58
 #define LED_PIN            13
59
-#define PS_ON_PIN          -1
60
-#define KILL_PIN           -1
61 59
 
62 60
 #if ENABLED(RAMPS_V_1_0) // RAMPS_V_1_0
63 61
   #define HEATER_0_PIN     12    // RAMPS 1.0
@@ -69,11 +67,7 @@
69 67
   #define FAN_PIN           9    // RAMPS 1.1
70 68
 #endif
71 69
 
72
-#define HEATER_1_PIN        -1
73
-#define HEATER_2_PIN        -1
74 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 71
 #define TEMP_BED_PIN        1    // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!!
78 72
 
79 73
 // SPI for Max6675 or Max31855 Thermocouple

+ 4
- 17
Marlin/pins_RUMBA.h Bestand weergeven

@@ -77,10 +77,7 @@
77 77
 #define PS_ON_PIN          45
78 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 81
   #define HEATER_0_PIN          2   // EXTRUDER 1
85 82
   #if TEMP_SENSOR_0 == -1
86 83
     #define TEMP_0_PIN          6   // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
@@ -89,10 +86,7 @@
89 86
   #endif
90 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 90
   #define HEATER_1_PIN          3   // EXTRUDER 2
97 91
   #if TEMP_SENSOR_1 == -1
98 92
     #define TEMP_1_PIN          5   // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
@@ -101,10 +95,7 @@
101 95
   #endif
102 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 99
   #define HEATER_2_PIN         6    // EXTRUDER 3
109 100
   #if TEMP_SENSOR_2 == -1
110 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,10 +107,7 @@
116 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 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 111
   #define HEATER_BED_PIN       9    // BED
124 112
   #if TEMP_SENSOR_BED == -1
125 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,7 +116,6 @@
128 116
   #endif
129 117
 #endif
130 118
 
131
-#define SDPOWER            -1
132 119
 #define SDSS               53
133 120
 #define SD_DETECT_PIN      49
134 121
 #define BEEPER_PIN         44

+ 6
- 20
Marlin/pins_SANGUINOLOLU_11.h Bestand weergeven

@@ -43,28 +43,21 @@
43 43
 #define E0_STEP_PIN         1
44 44
 #define E0_DIR_PIN          0
45 45
 
46
-#define LED_PIN            -1
47
-#define FAN_PIN            -1
48
-
49 46
 #if MB(AZTEEG_X1) || MB(STB_11) || MB(MELZI)
50 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 54
 #endif
57 55
 
58 56
 #if ENABLED(Z_PROBE_SLED)
59 57
   #define SLED_PIN         -1
60 58
 #endif
61 59
 
62
-#define PS_ON_PIN          -1
63
-#define KILL_PIN           -1
64
-
65 60
 #define HEATER_0_PIN       13 // (extruder)
66
-#define HEATER_1_PIN       -1
67
-#define HEATER_2_PIN       -1
68 61
 
69 62
 #if ENABLED(SANGUINOLOLU_V_1_2)
70 63
 
@@ -89,10 +82,7 @@
89 82
 #endif
90 83
 
91 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 85
 #define TEMP_BED_PIN        6   // MUST USE ANALOG INPUT NUMBERING NOT DIGITAL OUTPUT NUMBERING!!!!!!!!! (pin 34 bed)
95
-#define SDPOWER            -1
96 86
 #define SDSS               31
97 87
 
98 88
 /**
@@ -190,7 +180,3 @@
190 180
   #define SD_DETECT_PIN         -1
191 181
 
192 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 Bestand weergeven

@@ -53,12 +53,9 @@
53 53
 #define E0_ENABLE_PIN      19
54 54
 
55 55
 #define HEATER_0_PIN       21  // Extruder
56
-#define HEATER_1_PIN       -1
57
-#define HEATER_2_PIN       -1
58 56
 #define HEATER_BED_PIN     20  // Bed
59 57
 #define FAN_PIN            16  // Fan   -- from Teensyduino environment.
60 58
                                // For the fan and Teensyduino uses a different pin mapping.
61
-
62 59
 #define X_STOP_PIN         13
63 60
 #define Y_STOP_PIN         14
64 61
 //#define Z_STOP_PIN         15
@@ -67,9 +64,6 @@
67 64
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
68 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 67
 #if DISABLED(SDSUPPORT)
74 68
   // these pins are defined in the SD library if building with SD support
75 69
   #define SCK_PIN          9
@@ -104,11 +98,6 @@
104 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 101
 #define BEEPER_PIN         -1
113 102
 #define LCD_PINS_RS        -1
114 103
 #define LCD_PINS_ENABLE    -1

+ 0
- 9
Marlin/pins_SETHI.h Bestand weergeven

@@ -57,20 +57,11 @@
57 57
 #define E0_ENABLE_PIN 24
58 58
 
59 59
 #define TEMP_0_PIN 1
60
-#define TEMP_1_PIN -1
61
-#define TEMP_2_PIN -1
62 60
 #define TEMP_BED_PIN 2
63 61
 
64 62
 #define HEATER_0_PIN 4
65
-#define HEATER_1_PIN -1
66
-#define HEATER_2_PIN -1
67 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 66
 #if (GEN7_VERSION >= 13)
76 67
   // Gen7 v1.3 removed the fan pin

+ 0
- 7
Marlin/pins_TEENSY2.h Bestand weergeven

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

+ 0
- 7
Marlin/pins_TEENSYLU.h Bestand weergeven

@@ -72,14 +72,7 @@
72 72
 #define TEMP_0_PIN          7  // Extruder / Analog pin numbering
73 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 75
 #define SDSS                8
80
-#define LED_PIN            -1
81
-#define PS_ON_PIN          -1
82
-#define KILL_PIN           -1
83 76
 
84 77
 #if DISABLED(SDSUPPORT)
85 78
   // these pins are defined in the SD library if building with SD support

+ 0
- 7
Marlin/pins_ULTIMAIN_2.h Bestand weergeven

@@ -55,9 +55,6 @@
55 55
 #define HEATER_1_PIN 3
56 56
 #define TEMP_1_PIN 9
57 57
 
58
-#define HEATER_2_PIN -1
59
-#define TEMP_2_PIN -1
60
-
61 58
 #define E0_STEP_PIN         42
62 59
 #define E0_DIR_PIN          43
63 60
 #define E0_ENABLE_PIN       37
@@ -66,13 +63,9 @@
66 63
 #define E1_DIR_PIN          47
67 64
 #define E1_ENABLE_PIN       48
68 65
 
69
-#define SDPOWER            -1
70 66
 #define SDSS               53
71 67
 #define LED_PIN            8
72 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 69
 #define SAFETY_TRIGGERED_PIN     28 //PIN to detect the safety circuit has triggered
77 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 Bestand weergeven

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

+ 2
- 16
Marlin/pins_ULTIMAKER_OLD.h Bestand weergeven

@@ -51,17 +51,11 @@
51 51
 #define Z_MAX_PIN 18
52 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 54
 #define TEMP_0_PIN 8
59
-
60
-#define HEATER_1_PIN 1
61 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 60
 #define E0_STEP_PIN         43
67 61
 #define E0_DIR_PIN          45
@@ -71,14 +65,6 @@
71 65
 #define E1_DIR_PIN          -1
72 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 68
 #define LCD_PINS_RS 24
83 69
 #define LCD_PINS_ENABLE 22
84 70
 #define LCD_PINS_D4 36

Laden…
Annuleren
Opslaan