|
@@ -0,0 +1,218 @@
|
|
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
|
+ * Azteeg X5 MINI pin assignments
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#ifndef LPC1769
|
|
28
|
+ #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
|
29
|
+#endif
|
|
30
|
+
|
|
31
|
+#ifndef BOARD_NAME
|
|
32
|
+ #define BOARD_NAME "Azteeg X5 MINI WIFI"
|
|
33
|
+#endif
|
|
34
|
+#define BOARD_WEBSITE_URL "http://www.panucatt.com/azteeg_X5_mini_reprap_3d_printer_controller_p/ax5mini.htm"
|
|
35
|
+
|
|
36
|
+//
|
|
37
|
+// LED
|
|
38
|
+//
|
|
39
|
+#define LED_PIN P1_18
|
|
40
|
+
|
|
41
|
+//
|
|
42
|
+// Servos
|
|
43
|
+//
|
|
44
|
+#define SERVO0_PIN P1_29
|
|
45
|
+
|
|
46
|
+//
|
|
47
|
+// Limit Switches
|
|
48
|
+//
|
|
49
|
+#define X_STOP_PIN P1_24
|
|
50
|
+#define Y_STOP_PIN P1_26
|
|
51
|
+#define Z_STOP_PIN P1_28
|
|
52
|
+
|
|
53
|
+#ifndef FILWIDTH_PIN
|
|
54
|
+ #define FILWIDTH_PIN P2_04
|
|
55
|
+#endif
|
|
56
|
+
|
|
57
|
+//
|
|
58
|
+// Steppers
|
|
59
|
+//
|
|
60
|
+#define X_STEP_PIN P2_01
|
|
61
|
+#define X_DIR_PIN P0_11
|
|
62
|
+#define X_ENABLE_PIN P0_10
|
|
63
|
+
|
|
64
|
+#define Y_STEP_PIN P2_02
|
|
65
|
+#define Y_DIR_PIN P0_20
|
|
66
|
+#define Y_ENABLE_PIN P0_19
|
|
67
|
+
|
|
68
|
+#define Z_STEP_PIN P2_03
|
|
69
|
+#define Z_DIR_PIN P0_22
|
|
70
|
+#define Z_ENABLE_PIN P0_21
|
|
71
|
+
|
|
72
|
+#define E0_STEP_PIN P2_00
|
|
73
|
+#define E0_DIR_PIN P0_05
|
|
74
|
+#define E0_ENABLE_PIN P0_04
|
|
75
|
+
|
|
76
|
+//
|
|
77
|
+// DIGIPOT slave addresses
|
|
78
|
+//
|
|
79
|
+#ifndef DIGIPOT_I2C_ADDRESS_A
|
|
80
|
+ #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
|
|
81
|
+#endif
|
|
82
|
+
|
|
83
|
+#ifndef DIGIPOT_I2C_ADDRESS_B
|
|
84
|
+ #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
|
|
85
|
+#endif
|
|
86
|
+
|
|
87
|
+//
|
|
88
|
+// Temperature Sensors
|
|
89
|
+// 3.3V max when defined as an analog input
|
|
90
|
+//
|
|
91
|
+#define TEMP_BED_PIN 0 // A0 (TH1)
|
|
92
|
+#define TEMP_0_PIN 1 // A1 (TH2)
|
|
93
|
+
|
|
94
|
+//
|
|
95
|
+// Heaters / Fans
|
|
96
|
+//
|
|
97
|
+#define HEATER_BED_PIN P2_07
|
|
98
|
+#define HEATER_0_PIN P2_05
|
|
99
|
+#ifndef FAN_PIN
|
|
100
|
+ #define FAN_PIN P0_26
|
|
101
|
+#endif
|
|
102
|
+#define FAN1_PIN P1_25
|
|
103
|
+
|
|
104
|
+//
|
|
105
|
+// Display
|
|
106
|
+//
|
|
107
|
+#if ENABLED(ULTRA_LCD)
|
|
108
|
+
|
|
109
|
+ #if ENABLED(CR10_STOCKDISPLAY)
|
|
110
|
+
|
|
111
|
+ // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
|
112
|
+ // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
|
113
|
+ // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
|
114
|
+ // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
|
115
|
+
|
|
116
|
+ #define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
|
117
|
+
|
|
118
|
+ #define BTN_EN1 P0_16 // J3-7 & AUX-4
|
|
119
|
+ #define BTN_EN2 P1_23 // J3-5 & AUX-4
|
|
120
|
+ #define BTN_ENC P3_25 // J3-4 & AUX-4
|
|
121
|
+
|
|
122
|
+ #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
|
123
|
+ #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
|
124
|
+ #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
|
125
|
+
|
|
126
|
+ #else
|
|
127
|
+
|
|
128
|
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
129
|
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
130
|
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
131
|
+
|
|
132
|
+ #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
133
|
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
134
|
+ #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
|
135
|
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
|
136
|
+ #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
|
137
|
+ #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
138
|
+ #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
139
|
+
|
|
140
|
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
141
|
+
|
|
142
|
+ #if ENABLED(REPRAPWORLD_KEYPAD)
|
|
143
|
+ #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
144
|
+ #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
145
|
+ #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
146
|
+ #elif DISABLED(NEWPANEL)
|
|
147
|
+ //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
|
148
|
+ //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
|
149
|
+ //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
|
150
|
+ //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
|
151
|
+ #endif
|
|
152
|
+
|
|
153
|
+ #if ANY(VIKI2, miniVIKI)
|
|
154
|
+ //#define LCD_SCREEN_ROT_180
|
|
155
|
+
|
|
156
|
+ #define BEEPER_PIN P1_30 // (37) may change if cable changes
|
|
157
|
+ #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
|
158
|
+ #define DOGLCD_SCK SCK_PIN
|
|
159
|
+ #define DOGLCD_MOSI MOSI_PIN
|
|
160
|
+
|
|
161
|
+ #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
|
162
|
+ #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
|
163
|
+ #else
|
|
164
|
+ #if ENABLED(ULTIPANEL)
|
|
165
|
+ #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
|
166
|
+ #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
|
167
|
+ #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
|
168
|
+ #endif
|
|
169
|
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
|
170
|
+ #define DOGLCD_CS P0_16 // (16)
|
|
171
|
+ #endif
|
|
172
|
+
|
|
173
|
+ #if ENABLED(MINIPANEL)
|
|
174
|
+ // GLCD features
|
|
175
|
+ // Uncomment screen orientation
|
|
176
|
+ //#define LCD_SCREEN_ROT_90
|
|
177
|
+ //#define LCD_SCREEN_ROT_180
|
|
178
|
+ //#define LCD_SCREEN_ROT_270
|
|
179
|
+ #endif
|
|
180
|
+
|
|
181
|
+ #endif
|
|
182
|
+
|
|
183
|
+#endif // ULTRA_LCD
|
|
184
|
+
|
|
185
|
+//
|
|
186
|
+// SD Support
|
|
187
|
+//
|
|
188
|
+//#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
|
|
189
|
+//#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
|
|
190
|
+
|
|
191
|
+//#define LPC_SD_LCD // Marlin uses the SD drive attached to the LCD
|
|
192
|
+#define LPC_SD_ONBOARD // Marlin uses the SD drive on the control board. There is no SD detect pin
|
|
193
|
+ // for the onboard card. Init card from LCD menu or send M21 whenever printer
|
|
194
|
+ // is powered on to enable SD access.
|
|
195
|
+
|
|
196
|
+#if ENABLED(LPC_SD_LCD)
|
|
197
|
+
|
|
198
|
+ #define SCK_PIN P0_15
|
|
199
|
+ #define MISO_PIN P0_17
|
|
200
|
+ #define MOSI_PIN P0_18
|
|
201
|
+ #define SS_PIN P1_23 // Chip select for SD card used by Marlin
|
|
202
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
203
|
+
|
|
204
|
+#elif ENABLED(LPC_SD_ONBOARD)
|
|
205
|
+
|
|
206
|
+ #if ENABLED(USB_SD_ONBOARD)
|
|
207
|
+ // When sharing the SD card with a PC we want the menu options to
|
|
208
|
+ // mount/unmount the card and refresh it. So we disable card detect.
|
|
209
|
+ #define SHARED_SD_CARD
|
|
210
|
+ #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
|
|
211
|
+ #endif
|
|
212
|
+ #define SCK_PIN P0_07
|
|
213
|
+ #define MISO_PIN P0_08
|
|
214
|
+ #define MOSI_PIN P0_09
|
|
215
|
+ #define SS_PIN P0_06 // Chip select for SD card used by Marlin
|
|
216
|
+ #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
|
217
|
+
|
|
218
|
+#endif
|