Browse Source

[2.0.x] MKS SBASE - Separate SD_DETECT for LCD and on-board SD cards (#10557)

Bob-the-Kuhn 7 years ago
parent
commit
f973ff49ae

+ 11
- 0
Marlin/src/config/examples/Mks/Sbase/000-README_RepRap_Discount_Full_Graphic_Smart_Controller.txt View File

25
 
25
 
26
 Adafruit 10-pin IDC Socket Rainbow Breakout Cable [1199]
26
 Adafruit 10-pin IDC Socket Rainbow Breakout Cable [1199]
27
   https://www.adafruit.com/product/1199
27
   https://www.adafruit.com/product/1199
28
+
29
+
30
+/////////////////////////////////////////////////////////////////////
31
+
32
+27 APR 2018
33
+
34
+If you also want a functional SD_DETECT_PIN then you'll need to also move the following pin:
35
+
36
+    used to go to P0.27 to J8-5
37
+
38
+if you decide to use a different pin then the pins_MKS_SBASE.h file will need to be modified.

+ 13
- 2
Marlin/src/pins/pins_MKS_SBASE.h View File

158
   #define BTN_ENC          P1_30   // EXP1.2
158
   #define BTN_ENC          P1_30   // EXP1.2
159
   #define BTN_EN1          P3_26   // EXP2.5
159
   #define BTN_EN1          P3_26   // EXP2.5
160
   #define BTN_EN2          P3_25   // EXP2.3
160
   #define BTN_EN2          P3_25   // EXP2.3
161
-  #define SD_DETECT_PIN    P0_27   // EXP2.7
162
   #define LCD_PINS_RS      P0_16   // EXP1.4
161
   #define LCD_PINS_RS      P0_16   // EXP1.4
163
   #define LCD_SDSS         P0_28   // EXP2.4
162
   #define LCD_SDSS         P0_28   // EXP2.4
164
   #define LCD_PINS_ENABLE  P0_18   // EXP1.3
163
   #define LCD_PINS_ENABLE  P0_18   // EXP1.3
194
 #define MISO_PIN           P1_23   // J8-3 (moved from EXP2 P0.8)
193
 #define MISO_PIN           P1_23   // J8-3 (moved from EXP2 P0.8)
195
 #define MOSI_PIN           P2_12   // J8-4 (moved from EXP2 P0.5)
194
 #define MOSI_PIN           P2_12   // J8-4 (moved from EXP2 P0.5)
196
 #define SS_PIN             P0_28
195
 #define SS_PIN             P0_28
197
-#define SD_DETECT_PIN      P0_27
198
 #define SDSS               P0_06
196
 #define SDSS               P0_06
199
 
197
 
200
 /**
198
 /**
199
+ * P0.27 is on EXP2 and the on-board SD card's socket. That means it can't be
200
+ * used as the SD_DETECT for the LCD's SD card.
201
+ *
202
+ * The best solution is to use the custom cable to connect the LCD's SD_DETECT
203
+ * to a pin NOT on EXP2.
204
+ *
205
+ * If you can't find a pin to use for the LCD's SD_DETECT then comment out
206
+ * SD_DETECT_PIN entirely and remove that wire from the the custom cable.
207
+ */
208
+#define SD_DETECT_PIN      P2_11   // J8-5 (moved from EXP2 P0.27)
209
+
210
+
211
+/**
201
  *  PWMs
212
  *  PWMs
202
  *
213
  *
203
  *  There are 6 PWMs.  Each PWM can be assigned to one of two pins.
214
  *  There are 6 PWMs.  Each PWM can be assigned to one of two pins.

Loading…
Cancel
Save