|
@@ -85,6 +85,9 @@
|
85
|
85
|
#endif
|
86
|
86
|
#define FAN1_PIN P0_26
|
87
|
87
|
|
|
88
|
+#define LCD_SDSS P0_16 // LCD SD chip select
|
|
89
|
+#define ONBOARD_SD_CS P0_06 // On board SD chip select
|
|
90
|
+
|
88
|
91
|
#if ENABLED(AZSMZ_12864)
|
89
|
92
|
#define BEEPER_PIN P1_30
|
90
|
93
|
#define DOGLCD_A0 P2_06
|
|
@@ -92,8 +95,28 @@
|
92
|
95
|
#define BTN_EN1 P4_28
|
93
|
96
|
#define BTN_EN2 P1_27
|
94
|
97
|
#define BTN_ENC P3_26
|
95
|
|
- #define LCD_SDSS P0_16
|
|
98
|
+ #if DISABLED(LPC_SD_ONBOARD)
|
|
99
|
+ #define LPC_SD_LCD
|
|
100
|
+ #endif
|
|
101
|
+#endif
|
|
102
|
+
|
|
103
|
+#if ENABLED(LPC_SD_LCD)
|
|
104
|
+ #define SCK_PIN P0_15
|
|
105
|
+ #define MISO_PIN P0_17
|
|
106
|
+ #define MOSI_PIN P0_18
|
|
107
|
+ #define SS_PIN LCD_SDSS
|
96
|
108
|
#define SD_DETECT_PIN P3_25
|
|
109
|
+#elif ENABLED(LPC_SD_ONBOARD)
|
|
110
|
+ #if ENABLED(USB_SD_ONBOARD)
|
|
111
|
+ // When sharing the SD card with a PC we want the menu options to
|
|
112
|
+ // mount/unmount the card and refresh it. So we disable card detect.
|
|
113
|
+ #define SHARED_SD_CARD
|
|
114
|
+ #undef SD_DETECT_PIN
|
|
115
|
+ #endif
|
|
116
|
+ #define SCK_PIN P0_07
|
|
117
|
+ #define MISO_PIN P0_08
|
|
118
|
+ #define MOSI_PIN P0_09
|
|
119
|
+ #define SS_PIN ONBOARD_SD_CS
|
97
|
120
|
#endif
|
98
|
121
|
|
99
|
122
|
//
|