Browse Source

Azteeg X5 Mini support (#13425)

InsanityAutomation 5 years ago
parent
commit
ba31d39f6d

+ 1
- 0
Marlin/Configuration_adv.h View File

@@ -679,6 +679,7 @@
679 679
    *                        A   (A shifted)   B   (B shifted)  IC
680 680
    * Smoothie              0x2C (0x58)       0x2D (0x5A)       MCP4451
681 681
    * AZTEEG_X3_PRO         0x2C (0x58)       0x2E (0x5C)       MCP4451
682
+   * AZTEEG_X5_MINI        0x2C (0x58)       0x2E (0x5C)       MCP4451
682 683
    * AZTEEG_X5_MINI_WIFI         0x58              0x5C        MCP4451
683 684
    * MIGHTYBOARD_REVE      0x2F (0x5E)                         MCP4018
684 685
    */

+ 2
- 1
Marlin/src/core/boards.h View File

@@ -189,10 +189,11 @@
189 189
 #define BOARD_COHESION3D_REMIX    1755  // Cohesion3D ReMix
190 190
 #define BOARD_COHESION3D_MINI     1756  // Cohesion3D Mini
191 191
 #define BOARD_SMOOTHIEBOARD       1757  // Smoothieboard
192
-#define BOARD_AZTEEG_X5_MINI_WIFI 1758  // Azteeg X5 Mini (Power outputs: Hotend0, Bed, Fan)
192
+#define BOARD_AZTEEG_X5_MINI_WIFI 1758  // Azteeg X5 Mini Wifi (Power outputs: Hotend0, Bed, Fan)
193 193
 #define BOARD_BIQU_SKR_V1_1       1759  // BIQU SKR_V1.1 (Power outputs: Hotend0,Hotend1, Fan, Bed)
194 194
 #define BOARD_BIQU_B300_V1_0      1760  // BIQU B300_V1.0 (Power outputs: Hotend0, Fan, Bed, SPI Driver)
195 195
 #define BOARD_BIGTREE_SKR_V1_3    1761  // BIGTREE SKR_V1.3 (Power outputs: Hotend0, Hotend1, Fan, Bed)
196
+#define BOARD_AZTEEG_X5_MINI      1762  // Azteeg X5 Mini (Power outputs: Hotend0, Bed, Fan)
196 197
 
197 198
 //
198 199
 // SAM3X8E ARM Cortex M3

+ 3
- 0
Marlin/src/feature/digipot/digipot_mcp4451.cpp View File

@@ -35,6 +35,9 @@
35 35
 #if MB(5DPRINT)
36 36
   #define DIGIPOT_I2C_FACTOR 117.96
37 37
   #define DIGIPOT_I2C_MAX_CURRENT 1.736
38
+#elif MB(AZTEEG_X5_MINI) || MB(AZTEEG_X5_MINI_WIFI)
39
+  #define DIGIPOT_I2C_FACTOR 113.5
40
+  #define DIGIPOT_I2C_MAX_CURRENT 2.0
38 41
 #else
39 42
   #define DIGIPOT_I2C_FACTOR 106.7
40 43
   #define DIGIPOT_I2C_MAX_CURRENT 2.5

+ 19
- 17
Marlin/src/pins/pins.h View File

@@ -305,39 +305,41 @@
305 305
 //
306 306
 
307 307
 #elif MB(RAMPS_14_RE_ARM_EFB)
308
-  #include "pins_RAMPS_RE_ARM.h"      // LPC1768                                    env:LPC1768
308
+  #include "pins_RAMPS_RE_ARM.h"        // LPC1768                                    env:LPC1768
309 309
 #elif MB(RAMPS_14_RE_ARM_EEB)
310
-  #include "pins_RAMPS_RE_ARM.h"      // LPC1768                                    env:LPC1768
310
+  #include "pins_RAMPS_RE_ARM.h"        // LPC1768                                    env:LPC1768
311 311
 #elif MB(RAMPS_14_RE_ARM_EFF)
312
-  #include "pins_RAMPS_RE_ARM.h"      // LPC1768                                    env:LPC1768
312
+  #include "pins_RAMPS_RE_ARM.h"        // LPC1768                                    env:LPC1768
313 313
 #elif MB(RAMPS_14_RE_ARM_EEF)
314
-  #include "pins_RAMPS_RE_ARM.h"      // LPC1768                                    env:LPC1768
314
+  #include "pins_RAMPS_RE_ARM.h"        // LPC1768                                    env:LPC1768
315 315
 #elif MB(RAMPS_14_RE_ARM_SF)
316
-  #include "pins_RAMPS_RE_ARM.h"      // LPC1768                                    env:LPC1768
316
+  #include "pins_RAMPS_RE_ARM.h"        // LPC1768                                    env:LPC1768
317 317
 #elif MB(MKS_SBASE)
318
-  #include "pins_MKS_SBASE.h"         // LPC1768                                    env:LPC1768
318
+  #include "pins_MKS_SBASE.h"           // LPC1768                                    env:LPC1768
319 319
 #elif MB(AZSMZ_MINI)
320
-  #include "pins_AZSMZ_MINI.h"        // LPC1768                                    env:LPC1768
320
+  #include "pins_AZSMZ_MINI.h"          // LPC1768                                    env:LPC1768
321 321
 #elif MB(AZTEEG_X5_GT)
322
-  #include "pins_AZTEEG_X5_GT.h"      // LPC1769                                    env:LPC1769
322
+  #include "pins_AZTEEG_X5_GT.h"        // LPC1769                                    env:LPC1769
323
+#elif MB(AZTEEG_X5_MINI)
324
+  #include "pins_AZTEEG_X5_MINI.h"      // LPC1769                                    env:LPC1769
323 325
 #elif MB(AZTEEG_X5_MINI_WIFI)
324
-  #include "pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769                                  env:LPC1769
326
+  #include "pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769                                    env:LPC1769
325 327
 #elif MB(BIQU_BQ111_A4)
326
-  #include "pins_BIQU_BQ111_A4.h"     // LPC1768                                    env:LPC1768
328
+  #include "pins_BIQU_BQ111_A4.h"       // LPC1768                                    env:LPC1768
327 329
 #elif MB(SELENA_COMPACT)
328
-  #include "pins_SELENA_COMPACT.h"    // LPC1768                                    env:LPC1768
330
+  #include "pins_SELENA_COMPACT.h"      // LPC1768                                    env:LPC1768
329 331
 #elif MB(COHESION3D_REMIX)
330
-  #include "pins_COHESION3D_REMIX.h"  // LPC1769                                    env:LPC1769
332
+  #include "pins_COHESION3D_REMIX.h"    // LPC1769                                    env:LPC1769
331 333
 #elif MB(COHESION3D_MINI)
332
-  #include "pins_COHESION3D_MINI.h"   // LPC1769                                    env:LPC1769
334
+  #include "pins_COHESION3D_MINI.h"     // LPC1769                                    env:LPC1769
333 335
 #elif MB(SMOOTHIEBOARD)
334
-  #include "pins_SMOOTHIEBOARD.h"     // LPC1769                                    env:LPC1769
336
+  #include "pins_SMOOTHIEBOARD.h"       // LPC1769                                    env:LPC1769
335 337
 #elif MB(BIQU_SKR_V1_1)
336
-  #include "pins_BIQU_SKR_V1.1.h"     // LPC1768                                    env:LPC1768
338
+  #include "pins_BIQU_SKR_V1.1.h"       // LPC1768                                    env:LPC1768
337 339
 #elif MB(BIQU_B300_V1_0)
338
-  #include "pins_BIQU_B300_V1.0.h"    // LPC1768                                    env:LPC1768
340
+  #include "pins_BIQU_B300_V1.0.h"      // LPC1768                                    env:LPC1768
339 341
 #elif MB(BIGTREE_SKR_V1_3)
340
-  #include "pins_BIGTREE_SKR_V1.3.h"  // LPC1768                                    env:LPC1768
342
+  #include "pins_BIGTREE_SKR_V1.3.h"    // LPC1768                                    env:LPC1768
341 343
 
342 344
 //
343 345
 // Other 32-bit Boards

+ 3
- 1
Marlin/src/pins/pins_5DPRINT.h View File

@@ -142,4 +142,6 @@
142 142
 #define SDSS               20   // B0
143 143
 
144 144
 //DIGIPOTS slave addresses
145
-#define DIGIPOT_I2C_ADDRESS_A 0x2C   // unshifted slave address for DIGIPOT 0x2C (0x58 <- 0x2C << 1)
145
+#ifndef DIGIPOT_I2C_ADDRESS_A
146
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C   // unshifted slave address for DIGIPOT 0x2C (0x58 <- 0x2C << 1)
147
+#endif

+ 6
- 2
Marlin/src/pins/pins_AZTEEG_X3_PRO.h View File

@@ -48,8 +48,12 @@
48 48
 #include "pins_RAMPS.h"
49 49
 
50 50
 // DIGIPOT slave addresses
51
-#define DIGIPOT_I2C_ADDRESS_A 0x2C   // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
52
-#define DIGIPOT_I2C_ADDRESS_B 0x2E   // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
51
+#ifndef DIGIPOT_I2C_ADDRESS_A
52
+  #define DIGIPOT_I2C_ADDRESS_A 0x2C   // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
53
+#endif
54
+#ifndef DIGIPOT_I2C_ADDRESS_B
55
+  #define DIGIPOT_I2C_ADDRESS_B 0x2E   // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
56
+#endif
53 57
 
54 58
 //
55 59
 // Servos

+ 218
- 0
Marlin/src/pins/pins_AZTEEG_X5_MINI.h View File

@@ -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

+ 6
- 174
Marlin/src/pins/pins_AZTEEG_X5_MINI_WIFI.h View File

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

+ 3
- 1
Marlin/src/pins/pins_MIGHTYBOARD_REVE.h View File

@@ -104,7 +104,9 @@
104 104
 #define DIGIPOTS_I2C_SDA_E0 27   // A5
105 105
 #define DIGIPOTS_I2C_SDA_E1 77   // J6
106 106
 
107
-#define DIGIPOT_I2C_ADDRESS_A 0x2F   // unshifted slave address (5E <- 2F << 1)
107
+#ifndef DIGIPOT_I2C_ADDRESS_A
108
+  #define DIGIPOT_I2C_ADDRESS_A 0x2F   // unshifted slave address (5E <- 2F << 1)
109
+#endif
108 110
 
109 111
 //
110 112
 // Temperature Sensors

Loading…
Cancel
Save