Browse Source

Change default Re-ARM UART pin order (#15037)

ManuelMcLure 5 years ago
parent
commit
9c87786464
1 changed files with 24 additions and 8 deletions
  1. 24
    8
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h

+ 24
- 8
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h View File

128
   // P2_08 E1-Step
128
   // P2_08 E1-Step
129
   // P2_13 E1-Dir
129
   // P2_13 E1-Dir
130
 
130
 
131
-  #define X_SERIAL_TX_PIN  P2_13
132
-  #define X_SERIAL_RX_PIN  P2_13
131
+  #ifndef  X_SERIAL_TX_PIN
132
+    #define X_SERIAL_TX_PIN  P0_01
133
+  #endif
134
+  #ifndef X_SERIAL_RX_PIN
135
+    #define X_SERIAL_RX_PIN  P0_01
136
+  #endif
133
 
137
 
134
-  #define Y_SERIAL_TX_PIN  P0_00
135
-  #define Y_SERIAL_RX_PIN  P0_00
138
+  #ifndef Y_SERIAL_TX_PIN
139
+    #define Y_SERIAL_TX_PIN  P0_00
140
+  #endif
141
+  #ifndef Y_SERIAL_RX_PIN
142
+    #define Y_SERIAL_RX_PIN  P0_00
143
+  #endif
136
 
144
 
137
-  #define Z_SERIAL_TX_PIN  P0_01
138
-  #define Z_SERIAL_RX_PIN  P0_01
145
+  #ifndef Z_SERIAL_TX_PIN
146
+    #define Z_SERIAL_TX_PIN  P2_13
147
+  #endif
148
+  #ifndef Z_SERIAL_RX_PIN
149
+    #define Z_SERIAL_RX_PIN  P2_13
150
+  #endif
139
 
151
 
140
-  #define E0_SERIAL_TX_PIN P2_08
141
-  #define E0_SERIAL_RX_PIN P2_08
152
+  #ifndef E0_SERIAL_TX_PIN
153
+    #define E0_SERIAL_TX_PIN P2_08
154
+  #endif
155
+  #ifndef E0_SESIAL_RX_PIN
156
+    #define E0_SERIAL_RX_PIN P2_08
157
+  #endif
142
 
158
 
143
 #endif
159
 #endif
144
 
160
 

Loading…
Cancel
Save