|
@@ -139,11 +139,11 @@
|
139
|
139
|
//
|
140
|
140
|
#if ENABLED(SPINDLE_LASER_ENABLE)
|
141
|
141
|
#undef HEATER_0_PIN
|
142
|
|
- #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
143
|
142
|
#undef HEATER_BED_PIN
|
144
|
|
- #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
145
|
143
|
#undef FAN_PIN
|
146
|
|
- #define SPINDLE_DIR_PIN P2_06 // FET 4
|
|
144
|
+ #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
|
145
|
+ #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
|
146
|
+ #define SPINDLE_DIR_PIN P2_06 // FET 4
|
147
|
147
|
#endif
|
148
|
148
|
|
149
|
149
|
//
|
|
@@ -153,41 +153,134 @@
|
153
|
153
|
// defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
|
154
|
154
|
//
|
155
|
155
|
// A remote SD card is currently not supported because the pins routed to the EXP2
|
156
|
|
-// connector are shared with the onboard SD card, and Marlin does not support reading
|
157
|
|
-// G-code files from the onboard SD card.
|
|
156
|
+// connector are shared with the onboard SD card, and Marlin does not support that
|
|
157
|
+// hardware configuration.
|
158
|
158
|
//
|
159
|
|
-#if ENABLED(ULTRA_LCD)
|
160
|
159
|
|
161
|
|
- #define BEEPER_PIN P1_31 // EXP1-1
|
162
|
|
- #define SD_DETECT_PIN P0_27 // EXP2-7
|
|
160
|
+#if ENABLED(FYSETC_MINI_12864)
|
163
|
161
|
|
164
|
|
- #define BTN_EN1 P3_26 // EXP2-5
|
165
|
|
- #define BTN_EN2 P3_25 // EXP2-3
|
166
|
|
- #define BTN_ENC P1_30 // EXP1-2
|
|
162
|
+ #define FORCE_SOFT_SPI // REQUIRED - results in LCD soft SPI mode 3
|
167
|
163
|
|
168
|
|
- #define LCD_PINS_RS P0_16 // EXP1-4
|
169
|
|
- #define LCD_SDSS P0_28 // EXP2-4
|
170
|
|
- #define LCD_PINS_ENABLE P0_18 // EXP1-3
|
171
|
|
- #define LCD_PINS_D4 P0_15 // EXP1-5
|
|
164
|
+ #define BEEPER_PIN P1_31 // EXP1-1
|
|
165
|
+ #define BTN_ENC P1_30 // EXP1-2
|
|
166
|
+ #define DOGLCD_CS P0_18 // EXP1-3
|
|
167
|
+ #define DOGLCD_A0 P0_16 // EXP1-4
|
|
168
|
+ #define LCD_RESET_PIN P0_15 // EXP1-5
|
172
|
169
|
|
173
|
|
- #define KILL_PIN P2_11 // EXP2-10
|
|
170
|
+ // A custom cable is REQUIRED for EXP2 cable because the SCK & MOSI on the card's EXP2 are dedicated
|
|
171
|
+ // to the onboard SD card. All required EXP2 signals come from the Ethernet connector. Pin 1 of this
|
|
172
|
+ // connector is the one nearest the motor power connector.
|
|
173
|
+ #define DOGLCD_SCK P1_17 // EXP2-2 => Ethernet pin 5 (bottom, 3 from left)
|
|
174
|
+ #define BTN_EN2 P1_09 // EXP2-3 => Ethernet pin 9 (bottom, 5 from left)
|
|
175
|
+ #define BTN_EN1 P1_04 // EXP2-5 => Ethernet pin 11 (bottom, 6 from left)
|
|
176
|
+ #define DOGLCD_MOSI P1_01 // EXP2-6 => Ethernet pin 13 (bottom, 7 from left)
|
174
|
177
|
|
175
|
|
- #if ENABLED(SDSUPPORT)
|
176
|
|
- #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
|
|
178
|
+ // A custom EXP1 cable is required colored LEDs. Pins 1-5, 9, 10 of the cable go to pins 1-5, 9, 10
|
|
179
|
+ // on the board's EXP1 connector. Pins 6, 7, and 8 of the EXP1 cable go to the Ethernet connector.
|
|
180
|
+ // Rev 1.2 displays do NOT require the RGB LEDs. 2.0 and 2.1 displays do require RGB.
|
|
181
|
+ #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
|
182
|
+ #ifndef RGB_LED_R_PIN
|
|
183
|
+ #define RGB_LED_R_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
|
|
184
|
+ #endif
|
|
185
|
+ #ifndef RGB_LED_G_PIN
|
|
186
|
+ #define RGB_LED_G_PIN P1_10 // EXP1-7 => Ethernet pin 10 (top row, 5 from left)
|
|
187
|
+ #endif
|
|
188
|
+ #ifndef RGB_LED_B_PIN
|
|
189
|
+ #define RGB_LED_B_PIN P1_00 // EXP1-8 => Ethernet pin 12 (top row, 6 from left)
|
|
190
|
+ #endif
|
|
191
|
+ #elif ENABLED(FYSETC_MINI_12864_2_1)
|
|
192
|
+ #define NEOPIXEL_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
|
177
|
193
|
#endif
|
178
|
194
|
|
|
195
|
+#elif ENABLED(ULTRA_LCD)
|
|
196
|
+
|
|
197
|
+ #define BEEPER_PIN P1_31 // EXP1-1
|
|
198
|
+ //#define SD_DETECT_PIN P0_27 // EXP2-7
|
|
199
|
+
|
|
200
|
+ #define BTN_EN1 P3_26 // EXP2-5
|
|
201
|
+ #define BTN_EN2 P3_25 // EXP2-3
|
|
202
|
+ #define BTN_ENC P1_30 // EXP1-2
|
|
203
|
+
|
|
204
|
+ #define LCD_PINS_RS P0_16 // EXP1-4
|
|
205
|
+ #define LCD_SDSS P0_28 // EXP2-4
|
|
206
|
+ #define LCD_PINS_ENABLE P0_18 // EXP1-3
|
|
207
|
+ #define LCD_PINS_D4 P0_15 // EXP1-5
|
|
208
|
+
|
|
209
|
+ #define KILL_PIN P2_11 // EXP2-10
|
|
210
|
+
|
179
|
211
|
#endif // ULTRA_LCD
|
180
|
212
|
|
181
|
213
|
//
|
|
214
|
+// SD Support
|
|
215
|
+//
|
|
216
|
+#if NONE(LPC_SD_LCD, LPC_SD_ONBOARD, LPC_SD_CUSTOM_CABLE)
|
|
217
|
+ #undef USB_SD_DISABLED
|
|
218
|
+ #define USB_SD_ONBOARD
|
|
219
|
+ #define LPC_SD_ONBOARD
|
|
220
|
+#endif
|
|
221
|
+
|
|
222
|
+#if ENABLED(LPC_SD_LCD)
|
|
223
|
+
|
|
224
|
+ #define SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
|
|
225
|
+ #define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
|
|
226
|
+ #define MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
|
|
227
|
+ #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
|
228
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
229
|
+
|
|
230
|
+#elif ENABLED(LPC_SD_ONBOARD)
|
|
231
|
+
|
|
232
|
+ #if ENABLED(USB_SD_ONBOARD)
|
|
233
|
+ // When sharing the SD card with a PC the LCD menu options are
|
|
234
|
+ // needed to mount/unmount and refresh SD. So disable SD detect.
|
|
235
|
+ #define SHARED_SD_CARD
|
|
236
|
+ #undef SD_DETECT_PIN // No SD detect pin for the onboard card
|
|
237
|
+ #endif
|
|
238
|
+
|
|
239
|
+ #define SCK_PIN P0_07
|
|
240
|
+ #define MISO_PIN P0_08
|
|
241
|
+ #define MOSI_PIN P0_09
|
|
242
|
+ #define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
|
243
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
244
|
+
|
|
245
|
+#endif
|
|
246
|
+
|
|
247
|
+//
|
182
|
248
|
// Ethernet pins
|
183
|
249
|
//
|
184
|
|
-#define ENET_MDIO P1_17
|
185
|
|
-#define ENET_RX_ER P1_14
|
186
|
|
-#define ENET_RXD1 P1_10
|
187
|
|
-#define ENET_MOC P1_16
|
188
|
|
-#define REF_CLK P1_15
|
189
|
|
-#define ENET_RXD0 P1_09
|
190
|
|
-#define ENET_CRS P1_08
|
191
|
|
-#define ENET_TX_EN P1_04
|
192
|
|
-#define ENET_TXD0 P1_00
|
193
|
|
-#define ENET_TXD1 P1_01
|
|
250
|
+//#define ENET_MDIO P1_17 // Ethernet pin 5 (bottom, 3 from left)
|
|
251
|
+//#define ENET_RX_ER P1_14
|
|
252
|
+//#define ENET_RXD1 P1_10 // Ethernet pin 10 (top row, 5 from left)
|
|
253
|
+//#define ENET_MOC P1_16 // Ethernet pin 6 (top row, 3 from left)
|
|
254
|
+//#define REF_CLK P1_15
|
|
255
|
+//#define ENET_RXD0 P1_09 // Ethernet pin 9 (bottom, 5 from left)
|
|
256
|
+//#define ENET_CRS P1_08 // Ethernet pin 8 (top row, 4 from left) - INPUT ONLY
|
|
257
|
+//#define ENET_TX_EN P1_04 // Ethernet pin 11 (bottom, 6 from left)
|
|
258
|
+//#define ENET_TXD0 P1_00 // Ethernet pin 12 (top row, 6 from left)
|
|
259
|
+//#define ENET_TXD1 P1_01 // Ethernet pin 13 (bottom, 7 from left)
|
|
260
|
+
|
|
261
|
+/**
|
|
262
|
+ * EXP1 pins
|
|
263
|
+ * 1 - P1_31
|
|
264
|
+ * 2 - P1_30
|
|
265
|
+ * 3 - P0_18
|
|
266
|
+ * 4 - P0_16
|
|
267
|
+ * 5 - P0_15
|
|
268
|
+ * 6 - N/C
|
|
269
|
+ * 7 - N/C
|
|
270
|
+ * 8 - P0_27 (also on EXP2-7)
|
|
271
|
+ * 9 - GND
|
|
272
|
+ * 10 - +5V
|
|
273
|
+ *
|
|
274
|
+ *
|
|
275
|
+ * EXP2 pins
|
|
276
|
+ * 1 - P0_08
|
|
277
|
+ * 2 - P0_07
|
|
278
|
+ * 3 - P3_26
|
|
279
|
+ * 4 - P0_28
|
|
280
|
+ * 5 - P3_25
|
|
281
|
+ * 6 - P0_09
|
|
282
|
+ * 7 - P0_27 (also on EXP1_8)
|
|
283
|
+ * 8 - P2_11
|
|
284
|
+ * 9 - GND
|
|
285
|
+ * 10 - N/C
|
|
286
|
+ */
|