|
@@ -0,0 +1,165 @@
|
|
1
|
+/**
|
|
2
|
+ * Marlin 3D Printer Firmware
|
|
3
|
+ * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
4
|
+ *
|
|
5
|
+ * Based on Sprinter and grbl.
|
|
6
|
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
|
7
|
+ *
|
|
8
|
+ * This program is free software: you can redistribute it and/or modify
|
|
9
|
+ * it under the terms of the GNU General Public License as published by
|
|
10
|
+ * the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+ * (at your option) any later version.
|
|
12
|
+ *
|
|
13
|
+ * This program is distributed in the hope that it will be useful,
|
|
14
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+ * GNU General Public License for more details.
|
|
17
|
+ *
|
|
18
|
+ * You should have received a copy of the GNU General Public License
|
|
19
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+ *
|
|
21
|
+ */
|
|
22
|
+
|
|
23
|
+/**
|
|
24
|
+ * TH3D EZBoard pin assignments
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#ifndef TARGET_LPC1768
|
|
28
|
+ #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+#define BOARD_NAME "TH3D EZBoard"
|
|
32
|
+#define BOARD_WEBSITE_URL "https://www.th3dstudio.com/product/ezboard-lite/"
|
|
33
|
+
|
|
34
|
+//
|
|
35
|
+// Servos
|
|
36
|
+//
|
|
37
|
+#define SERVO0_PIN P2_04
|
|
38
|
+
|
|
39
|
+//
|
|
40
|
+// Limit Switches
|
|
41
|
+//
|
|
42
|
+#define X_STOP_PIN P1_24
|
|
43
|
+#define Y_STOP_PIN P1_25
|
|
44
|
+#define Z_STOP_PIN P1_26
|
|
45
|
+
|
|
46
|
+//
|
|
47
|
+// Filament Runout Sensor
|
|
48
|
+//
|
|
49
|
+#ifndef FIL_RUNOUT_PIN
|
|
50
|
+ #define FIL_RUNOUT_PIN P1_27
|
|
51
|
+#endif
|
|
52
|
+
|
|
53
|
+//
|
|
54
|
+// Steppers
|
|
55
|
+//
|
|
56
|
+#define X_STEP_PIN P2_00
|
|
57
|
+#define X_DIR_PIN P1_16
|
|
58
|
+#define X_ENABLE_PIN P1_17
|
|
59
|
+
|
|
60
|
+#define Y_STEP_PIN P2_01
|
|
61
|
+#define Y_DIR_PIN P1_10
|
|
62
|
+#define Y_ENABLE_PIN P1_09
|
|
63
|
+
|
|
64
|
+#define Z_STEP_PIN P2_02
|
|
65
|
+#define Z_DIR_PIN P1_15
|
|
66
|
+#define Z_ENABLE_PIN P1_14
|
|
67
|
+
|
|
68
|
+#define E0_STEP_PIN P2_03
|
|
69
|
+#define E0_DIR_PIN P1_04
|
|
70
|
+#define E0_ENABLE_PIN P1_08
|
|
71
|
+
|
|
72
|
+#define E1_STEP_PIN P2_08
|
|
73
|
+#define E1_DIR_PIN P2_13
|
|
74
|
+#define E1_ENABLE_PIN P4_29
|
|
75
|
+
|
|
76
|
+#if HAS_DRIVER(TMC2208)
|
|
77
|
+ //
|
|
78
|
+ // TMC2208 stepper drivers
|
|
79
|
+ // Software serial
|
|
80
|
+ //
|
|
81
|
+ #define X_SERIAL_TX_PIN P0_04
|
|
82
|
+ #define X_SERIAL_RX_PIN P0_05
|
|
83
|
+ #define Y_SERIAL_TX_PIN P0_10
|
|
84
|
+ #define Y_SERIAL_RX_PIN P0_11
|
|
85
|
+ #define Z_SERIAL_TX_PIN P0_19
|
|
86
|
+ #define Z_SERIAL_RX_PIN P0_20
|
|
87
|
+ #define E0_SERIAL_TX_PIN P0_22
|
|
88
|
+ #define E0_SERIAL_RX_PIN P0_21
|
|
89
|
+#endif
|
|
90
|
+
|
|
91
|
+//
|
|
92
|
+// Temp Sensors
|
|
93
|
+// 3.3V max when defined as an Analog Input!
|
|
94
|
+//
|
|
95
|
+#define TEMP_0_PIN 0 // Analog Input P0_23
|
|
96
|
+#define TEMP_BED_PIN 1 // Analog Input P0_24
|
|
97
|
+#define TEMP_1_PIN 2 // Analog Input P0_25
|
|
98
|
+#if ENABLED(FILAMENT_WIDTH_SENSOR)
|
|
99
|
+ #define FILWIDTH_PIN 3 // Analog Input P0_26
|
|
100
|
+#else
|
|
101
|
+ #define TEMP_2_PIN 3 // Analog Input P0_26
|
|
102
|
+#endif
|
|
103
|
+
|
|
104
|
+//
|
|
105
|
+// Heaters / Fans
|
|
106
|
+//
|
|
107
|
+#define HEATER_BED_PIN P2_05
|
|
108
|
+#define HEATER_0_PIN P2_07
|
|
109
|
+#ifndef FAN_PIN
|
|
110
|
+ #define FAN_PIN P2_06
|
|
111
|
+#endif
|
|
112
|
+#define FAN1_PIN P1_22
|
|
113
|
+
|
|
114
|
+//
|
|
115
|
+// Auto fans
|
|
116
|
+//
|
|
117
|
+#define AUTO_FAN_PIN P1_22 // FET 3
|
|
118
|
+#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
119
|
+#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
120
|
+#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
|
121
|
+
|
|
122
|
+//
|
|
123
|
+// SD Card
|
|
124
|
+//
|
|
125
|
+
|
|
126
|
+#define SDCARD_CONNECTION ONBOARD
|
|
127
|
+
|
|
128
|
+#define SCK_PIN P0_07
|
|
129
|
+#define MISO_PIN P0_08
|
|
130
|
+#define MOSI_PIN P0_09
|
|
131
|
+#define ONBOARD_SD_CS_PIN P0_06
|
|
132
|
+#define SS_PIN ONBOARD_SD_CS_PIN
|
|
133
|
+
|
|
134
|
+//
|
|
135
|
+// LCD / Controller
|
|
136
|
+//
|
|
137
|
+
|
|
138
|
+/**
|
|
139
|
+ * _____
|
|
140
|
+ * 5V | · · | GND
|
|
141
|
+ * (LCD_EN) P0_18 | · · | P0_16 (LCD_RS)
|
|
142
|
+ * (LCD_D4) P0_15 | · · | P3_25 (BTN_EN2)
|
|
143
|
+ * (RESET) P2_11 | · · | P3_26 (BTN_EN1)
|
|
144
|
+ * (BTN_ENC) P1_30 | · · | P1_31 (BEEPER)
|
|
145
|
+ * -----
|
|
146
|
+ * EXP1
|
|
147
|
+ *
|
|
148
|
+ * LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
|
|
149
|
+ * defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
|
|
150
|
+ *
|
|
151
|
+ * A remote SD card is currently not supported because the pins routed to the EXP2
|
|
152
|
+ * connector are shared with the onboard SD card.
|
|
153
|
+ *
|
|
154
|
+ */
|
|
155
|
+
|
|
156
|
+#if ENABLED(CR10_STOCKDISPLAY)
|
|
157
|
+ #define BEEPER_PIN P1_31
|
|
158
|
+ #define BTN_EN1 P3_26
|
|
159
|
+ #define BTN_EN2 P3_25
|
|
160
|
+ #define BTN_ENC P1_30
|
|
161
|
+ #define LCD_PINS_RS P0_16
|
|
162
|
+ #define LCD_PINS_ENABLE P0_18
|
|
163
|
+ #define LCD_PINS_D4 P0_15
|
|
164
|
+ #define KILL_PIN P2_11
|
|
165
|
+#endif
|