Skip to content

Commit 7c15cbd

Browse files
committed
Added SPI pins for TMC's
1 parent 53741b2 commit 7c15cbd

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h

+46
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,52 @@
113113

114114
#define LED_PIN PB2
115115

116+
#if HAS_TMC220x
117+
/**
118+
* TMC2208/TMC2209 stepper drivers
119+
*
120+
* Hardware serial communication ports.
121+
* If undefined software serial is used according to the pins below
122+
*/
123+
//#define X_HARDWARE_SERIAL Serial1
124+
//#define Y_HARDWARE_SERIAL Serial1
125+
//#define Z_HARDWARE_SERIAL Serial1
126+
//#define E0_HARDWARE_SERIAL Serial1
127+
//#define E1_HARDWARE_SERIAL Serial1
128+
129+
//
130+
// Software serial
131+
//
132+
133+
#ifndef X_SERIAL_TX_PIN
134+
#define X_SERIAL_TX_PIN PB2 //LED_PIN
135+
#endif
136+
#ifndef X_SERIAL_RX_PIN
137+
#define X_SERIAL_RX_PIN PE6 //MAX6675_SS_PIN
138+
#endif
139+
140+
#ifndef Y_SERIAL_TX_PIN
141+
#define Y_SERIAL_TX_PIN PB2 //LED_PIN
142+
#endif
143+
#ifndef Y_SERIAL_RX_PIN
144+
#define Y_SERIAL_RX_PIN PE6 //MAX6675_SS_PIN
145+
#endif
146+
147+
#ifndef Z_SERIAL_TX_PIN
148+
#define Z_SERIAL_TX_PIN PB2 //LED_PIN
149+
#endif
150+
#ifndef Z_SERIAL_RX_PIN
151+
#define Z_SERIAL_RX_PIN PE6 //MAX6675_SS_PIN
152+
#endif
153+
154+
#ifndef E0_SERIAL_TX_PIN
155+
#define E0_SERIAL_TX_PIN PB2 //LED_PIN
156+
#endif
157+
#ifndef E0_SERIAL_RX_PIN
158+
#define E0_SERIAL_RX_PIN PE6 //MAX6675_SS_PIN
159+
#endif
160+
#endif
161+
116162
//
117163
// SD Card
118164
//

0 commit comments

Comments
 (0)