Pārlūkot izejas kodu

Updated Azteeg X5 Mini Wifi pins for onboard SD (#12133)

Michael Triffon 6 gadus atpakaļ
vecāks
revīzija
eded90bf87
1 mainītis faili ar 36 papildinājumiem un 9 dzēšanām
  1. 36
    9
      Marlin/src/pins/pins_AZTEEG_X5_MINI_WIFI.h

+ 36
- 9
Marlin/src/pins/pins_AZTEEG_X5_MINI_WIFI.h Parādīt failu

@@ -35,15 +35,14 @@
35 35
 #endif
36 36
 
37 37
 //
38
-//  Set CPU
38
+// LED
39 39
 //
40
-#undef F_CPU
41
-#define F_CPU 120000000
40
+#define LED_PIN             P1_18
42 41
 
43 42
 //
44 43
 // Servo
45 44
 //
46
-#define SERVO0_PIN         P1_23
45
+#define SERVO0_PIN         P1_29
47 46
 
48 47
 //
49 48
 // Limit Switches
@@ -163,11 +162,6 @@
163 162
       #define DOGLCD_CS    P0_16   // (16)
164 163
     #endif
165 164
 
166
-    //#define MISO_PIN     P0_17   // (50)  system defined J3-10 & AUX-3
167
-    //#define MOSI_PIN     P0_18   // (51)  system defined J3-10 & AUX-3
168
-    //#define SCK_PIN      P0_15   // (52)  system defined J3-9 & AUX-3
169
-    //#define SS_PIN       P1_23   // (53)  system defined J3-5 & AUX-3 - sometimes called SDSS
170
-
171 165
     #if ENABLED(MINIPANEL)
172 166
       // GLCD features
173 167
       //#define LCD_CONTRAST   190
@@ -180,3 +174,36 @@
180 174
   #endif
181 175
 
182 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
+  #define SCK_PIN            P0_15
191
+  #define MISO_PIN           P0_17
192
+  #define MOSI_PIN           P0_18
193
+  #define SS_PIN             P1_23   // Chip select for SD card used by Marlin
194
+  #define ONBOARD_SD_CS      P0_06   // Chip select for "System" SD card
195
+#endif
196
+
197
+#if ENABLED(LPC_SD_ONBOARD)
198
+  #if ENABLED(USB_SD_ONBOARD)
199
+    // When sharing the SD card with a PC we want the menu options to
200
+    // mount/unmount the card and refresh it. So we disable card detect.
201
+    #define SHARED_SD_CARD
202
+    #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
203
+  #endif
204
+  #define SCK_PIN            P0_07
205
+  #define MISO_PIN           P0_08
206
+  #define MOSI_PIN           P0_09
207
+  #define SS_PIN             P0_06   // Chip select for SD card used by Marlin
208
+  #define ONBOARD_SD_CS      P0_06   // Chip select for "System" SD card
209
+#endif

Notiek ielāde…
Atcelt
Saglabāt