|
@ -280,24 +280,29 @@ |
|
|
//#define FAN6_PIN PC9 // Fan6
|
|
|
//#define FAN6_PIN PC9 // Fan6
|
|
|
//#define FAN7_PIN PE14 // Fan7
|
|
|
//#define FAN7_PIN PE14 // Fan7
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SDCARD_CONNECTION |
|
|
|
|
|
#define SDCARD_CONNECTION ONBOARD |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
// By default the onboard SD (SPI1) is enabled
|
|
|
// By default the LCD SD (SPI2) is enabled
|
|
|
|
|
|
// Onboard SD is on a completely separate SPI bus, and requires
|
|
|
|
|
|
// overriding pins to access.
|
|
|
//
|
|
|
//
|
|
|
#define CUSTOM_SPI_PINS |
|
|
#if SD_CONNECTION_IS(LCD) |
|
|
#if DISABLED(CUSTOM_SPI_PINS) |
|
|
#define SD_DETECT_PIN PB10 |
|
|
#define SDSS PB12 |
|
|
#define SDSS PB12 |
|
|
#endif |
|
|
#elif SD_CONNECTION_IS(ONBOARD) |
|
|
|
|
|
// Instruct the STM32 HAL to override the default SPI pins from the variant.h file
|
|
|
// HAL SPI1 pins group
|
|
|
#define CUSTOM_SPI_PINS |
|
|
#if ENABLED(CUSTOM_SPI_PINS) |
|
|
|
|
|
#define SDSS PA4 |
|
|
#define SDSS PA4 |
|
|
#define SD_DETECT_PIN PC4 |
|
|
#define SS_PIN SDSS |
|
|
#define LCD_SDSS PA4 |
|
|
|
|
|
|
|
|
|
|
|
#define SCK_PIN PA5 |
|
|
#define SCK_PIN PA5 |
|
|
#define MISO_PIN PA6 |
|
|
#define MISO_PIN PA6 |
|
|
#define MOSI_PIN PA7 |
|
|
#define MOSI_PIN PA7 |
|
|
#define SS_PIN PA4 // Chip select for SD card used by Marlin
|
|
|
#define SD_DETECT_PIN PC4 |
|
|
|
|
|
#elif SD_CONNECTION_IS(CUSTOM_CABLE) |
|
|
|
|
|
#define "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board" |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
@ -319,7 +324,6 @@ |
|
|
#define BTN_ENC PA15 |
|
|
#define BTN_ENC PA15 |
|
|
|
|
|
|
|
|
#if ENABLED(CR10_STOCKDISPLAY) |
|
|
#if ENABLED(CR10_STOCKDISPLAY) |
|
|
|
|
|
|
|
|
#define LCD_PINS_RS PG6 |
|
|
#define LCD_PINS_RS PG6 |
|
|
|
|
|
|
|
|
#define BTN_EN1 PC10 |
|
|
#define BTN_EN1 PC10 |
|
@ -333,6 +337,15 @@ |
|
|
#undef BOARD_ST7920_DELAY_2 |
|
|
#undef BOARD_ST7920_DELAY_2 |
|
|
#undef BOARD_ST7920_DELAY_3 |
|
|
#undef BOARD_ST7920_DELAY_3 |
|
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(MKS_MINI_12864) |
|
|
|
|
|
#define DOGLCD_A0 PG6 |
|
|
|
|
|
#define DOGLCD_CS PG7 |
|
|
|
|
|
#define BTN_EN1 PD10 |
|
|
|
|
|
#define BTN_EN2 PH10 |
|
|
|
|
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(ONBOARD) |
|
|
|
|
|
#define SOFTWARE_SPI |
|
|
|
|
|
#endif |
|
|
#else |
|
|
#else |
|
|
|
|
|
|
|
|
#define LCD_PINS_RS PA8 |
|
|
#define LCD_PINS_RS PA8 |
|
@ -340,17 +353,17 @@ |
|
|
#define BTN_EN1 PD10 |
|
|
#define BTN_EN1 PD10 |
|
|
#define BTN_EN2 PH10 |
|
|
#define BTN_EN2 PH10 |
|
|
|
|
|
|
|
|
#if DISABLED(CUSTOM_SPI_PINS) |
|
|
|
|
|
#define SD_DETECT_PIN PB10 |
|
|
|
|
|
#define LCD_SDSS PB12 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#define LCD_PINS_ENABLE PC10 |
|
|
#define LCD_PINS_ENABLE PC10 |
|
|
#define LCD_PINS_D4 PG8 |
|
|
#define LCD_PINS_D4 PG8 |
|
|
|
|
|
|
|
|
#if ENABLED(FYSETC_MINI_12864) |
|
|
#if ENABLED(FYSETC_MINI_12864) |
|
|
#define DOGLCD_CS PC10 |
|
|
#define DOGLCD_CS PC10 |
|
|
#define DOGLCD_A0 PA8 |
|
|
#define DOGLCD_A0 PA8 |
|
|
|
|
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(ONBOARD) |
|
|
|
|
|
#define SOFTWARE_SPI |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
//#define LCD_BACKLIGHT_PIN -1
|
|
|
//#define LCD_BACKLIGHT_PIN -1
|
|
|
#define LCD_RESET_PIN PG8 // Must be high or open for LCD to operate normally.
|
|
|
#define LCD_RESET_PIN PG8 // Must be high or open for LCD to operate normally.
|
|
|
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) |
|
|
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) |
|
@ -389,11 +402,6 @@ |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
//#define DOGLCD_CS PB12
|
|
|
|
|
|
//#define DOGLCD_A0 PA8
|
|
|
|
|
|
//#define LCD_PINS_DC PB14
|
|
|
|
|
|
//#define DOGLCD_MOSI PB15
|
|
|
|
|
|
|
|
|
|
|
|
#endif // HAS_SPI_LCD
|
|
|
#endif // HAS_SPI_LCD
|
|
|
|
|
|
|
|
|
#undef TP |
|
|
#undef TP |
|
|