Przeglądaj źródła

Add E1 for RAMPS 1.4.4 / AGC

Scott Lahteine 4 lat temu
rodzic
commit
0561d5bea3
1 zmienionych plików z 17 dodań i 48 usunięć
  1. 17
    48
      Marlin/src/pins/samd/pins_RAMPS_144.h

+ 17
- 48
Marlin/src/pins/samd/pins_RAMPS_144.h Wyświetl plik

@@ -89,13 +89,6 @@
89 89
   #define Z_CS_PIN                            32
90 90
 #endif
91 91
 
92
-#define Z2_STEP_PIN                           36
93
-#define Z2_DIR_PIN                            34
94
-#define Z2_ENABLE_PIN                         30
95
-#ifndef Z2_CS_PIN
96
-  #define Z2_CS_PIN                           22
97
-#endif
98
-
99 92
 #define E0_STEP_PIN                           26
100 93
 #define E0_DIR_PIN                            28
101 94
 #define E0_ENABLE_PIN                         24
@@ -103,18 +96,33 @@
103 96
   #define E0_CS_PIN                           43
104 97
 #endif
105 98
 
99
+#define E1_STEP_PIN                           36
100
+#define E1_DIR_PIN                            34
101
+#define E1_ENABLE_PIN                         30
102
+#ifndef E1_CS_PIN
103
+  #define E1_CS_PIN                           22
104
+#endif
105
+
106 106
 //
107 107
 // Temperature Sensors
108 108
 //
109 109
 #define TEMP_0_PIN                            13
110
-#define TEMP_BED_PIN                          14
110
+#if TEMP_SENSOR_BED
111
+  #define TEMP_BED_PIN                        14
112
+#else
113
+  #define TEMP_1_PIN                          14
114
+#endif
111 115
 #define TEMP_CHAMBER_PIN                      15
112 116
 
113 117
 //
114 118
 // Heaters / Fans
115 119
 //
116 120
 #define HEATER_0_PIN                          10
117
-#define HEATER_BED_PIN                         8
121
+#if TEMP_SENSOR_BED
122
+  #define HEATER_BED_PIN                       8
123
+#else
124
+  #define HEATER_1_PIN                         8
125
+#endif
118 126
 #define FAN_PIN                                9
119 127
 #define FAN1_PIN                               7
120 128
 #define FAN2_PIN                              12
@@ -186,9 +194,6 @@
186 194
   //#define Z2_HARDWARE_SERIAL Serial1
187 195
   //#define E0_HARDWARE_SERIAL Serial1
188 196
   //#define E1_HARDWARE_SERIAL Serial1
189
-  //#define E2_HARDWARE_SERIAL Serial1
190
-  //#define E3_HARDWARE_SERIAL Serial1
191
-  //#define E4_HARDWARE_SERIAL Serial1
192 197
 
193 198
   //
194 199
   // Software serial
@@ -245,42 +250,6 @@
245 250
   #ifndef E1_SERIAL_RX_PIN
246 251
     #define E1_SERIAL_RX_PIN                  -1
247 252
   #endif
248
-  #ifndef E2_SERIAL_TX_PIN
249
-    #define E2_SERIAL_TX_PIN                  -1
250
-  #endif
251
-  #ifndef E2_SERIAL_RX_PIN
252
-    #define E2_SERIAL_RX_PIN                  -1
253
-  #endif
254
-  #ifndef E3_SERIAL_TX_PIN
255
-    #define E3_SERIAL_TX_PIN                  -1
256
-  #endif
257
-  #ifndef E3_SERIAL_RX_PIN
258
-    #define E3_SERIAL_RX_PIN                  -1
259
-  #endif
260
-  #ifndef E4_SERIAL_TX_PIN
261
-    #define E4_SERIAL_TX_PIN                  -1
262
-  #endif
263
-  #ifndef E4_SERIAL_RX_PIN
264
-    #define E4_SERIAL_RX_PIN                  -1
265
-  #endif
266
-  #ifndef E5_SERIAL_TX_PIN
267
-    #define E5_SERIAL_TX_PIN                  -1
268
-  #endif
269
-  #ifndef E5_SERIAL_RX_PIN
270
-    #define E5_SERIAL_RX_PIN                  -1
271
-  #endif
272
-  #ifndef E6_SERIAL_TX_PIN
273
-    #define E6_SERIAL_TX_PIN                  -1
274
-  #endif
275
-  #ifndef E6_SERIAL_RX_PIN
276
-    #define E6_SERIAL_RX_PIN                  -1
277
-  #endif
278
-  #ifndef E7_SERIAL_TX_PIN
279
-    #define E7_SERIAL_TX_PIN                  -1
280
-  #endif
281
-  #ifndef E7_SERIAL_RX_PIN
282
-    #define E7_SERIAL_RX_PIN                  -1
283
-  #endif
284 253
 #endif
285 254
 
286 255
 //////////////////////////

Ładowanie…
Anuluj
Zapisz