From 24177954ddee0a291cc8b83aac9c65023bf49195 Mon Sep 17 00:00:00 2001 From: Robert Mendon Date: Sat, 4 May 2019 21:04:01 -0600 Subject: [PATCH] Add missing AZSMZ Mini SPI pins (#13824) --- Marlin/src/pins/pins_AZSMZ_MINI.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Marlin/src/pins/pins_AZSMZ_MINI.h b/Marlin/src/pins/pins_AZSMZ_MINI.h index 6b0d8cc68..c254f2e98 100644 --- a/Marlin/src/pins/pins_AZSMZ_MINI.h +++ b/Marlin/src/pins/pins_AZSMZ_MINI.h @@ -85,6 +85,9 @@ #endif #define FAN1_PIN P0_26 +#define LCD_SDSS P0_16 // LCD SD chip select +#define ONBOARD_SD_CS P0_06 // On board SD chip select + #if ENABLED(AZSMZ_12864) #define BEEPER_PIN P1_30 #define DOGLCD_A0 P2_06 @@ -92,8 +95,28 @@ #define BTN_EN1 P4_28 #define BTN_EN2 P1_27 #define BTN_ENC P3_26 - #define LCD_SDSS P0_16 + #if DISABLED(LPC_SD_ONBOARD) + #define LPC_SD_LCD + #endif +#endif + +#if ENABLED(LPC_SD_LCD) + #define SCK_PIN P0_15 + #define MISO_PIN P0_17 + #define MOSI_PIN P0_18 + #define SS_PIN LCD_SDSS #define SD_DETECT_PIN P3_25 +#elif ENABLED(LPC_SD_ONBOARD) + #if ENABLED(USB_SD_ONBOARD) + // When sharing the SD card with a PC we want the menu options to + // mount/unmount the card and refresh it. So we disable card detect. + #define SHARED_SD_CARD + #undef SD_DETECT_PIN + #endif + #define SCK_PIN P0_07 + #define MISO_PIN P0_08 + #define MOSI_PIN P0_09 + #define SS_PIN ONBOARD_SD_CS #endif //