Fix controller and SD on Robin Nano (#16187)

This commit is contained in:
Antti Andreimann 2019-12-10 23:29:33 -06:00 committed by Scott Lahteine
parent 07a61057ba
commit 1465fc0632

View File

@ -38,11 +38,6 @@
// //
#define DISABLE_DEBUG #define DISABLE_DEBUG
//
// Note: MKS Robin board is using SPI2 interface.
//
#define SPI_MODULE 2
// //
// Limit Switches // Limit Switches
// //
@ -108,11 +103,16 @@
#define LED_PIN PB2 #define LED_PIN PB2
//
// SD Card
//
#define SDIO_SUPPORT
#define SD_DETECT_PIN PD12
// //
// LCD / Controller // LCD / Controller
// //
#define BEEPER_PIN PC5 #define BEEPER_PIN PC5
#define SD_DETECT_PIN PD12
/** /**
* Note: MKS Robin TFT screens use various TFT controllers. * Note: MKS Robin TFT screens use various TFT controllers.
@ -123,12 +123,15 @@
#define FSMC_CS_PIN PD7 // NE4 #define FSMC_CS_PIN PD7 // NE4
#define FSMC_RS_PIN PD11 // A0 #define FSMC_RS_PIN PD11 // A0
#define LCD_RESET_PIN PF6 #define LCD_RESET_PIN PC6 // FSMC_RST
#define NO_LCD_REINIT // Suppress LCD re-initialization #define NO_LCD_REINIT // Suppress LCD re-initialization
#define LCD_BACKLIGHT_PIN PD13 #define LCD_BACKLIGHT_PIN PD13
#if ENABLED(TOUCH_BUTTONS) #if ENABLED(TOUCH_BUTTONS)
#define TOUCH_CS_PIN PA7 #define TOUCH_CS_PIN PA7 // SPI2_NSS
#define TOUCH_SCK_PIN PB13 // SPI2_SCK
#define TOUCH_MISO_PIN PB14 // SPI2_MISO
#define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
#endif #endif
#endif #endif