Ver código fonte

Fix controller and SD on Robin Nano (#16187)

Antti Andreimann 5 anos atrás
pai
commit
1465fc0632
1 arquivos alterados com 12 adições e 9 exclusões
  1. 12
    9
      Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h

+ 12
- 9
Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h Ver arquivo

@@ -39,11 +39,6 @@
39 39
 #define DISABLE_DEBUG
40 40
 
41 41
 //
42
-// Note: MKS Robin board is using SPI2 interface.
43
-//
44
-#define SPI_MODULE 2
45
-
46
-//
47 42
 // Limit Switches
48 43
 //
49 44
 #define X_STOP_PIN        PA15
@@ -109,10 +104,15 @@
109 104
 #define LED_PIN            PB2
110 105
 
111 106
 //
107
+// SD Card
108
+//
109
+#define SDIO_SUPPORT
110
+#define SD_DETECT_PIN      PD12
111
+
112
+//
112 113
 // LCD / Controller
113 114
 //
114 115
 #define BEEPER_PIN         PC5
115
-#define SD_DETECT_PIN      PD12
116 116
 
117 117
 /**
118 118
  * Note: MKS Robin TFT screens use various TFT controllers.
@@ -123,12 +123,15 @@
123 123
   #define FSMC_CS_PIN        PD7    // NE4
124 124
   #define FSMC_RS_PIN        PD11   // A0
125 125
 
126
-  #define LCD_RESET_PIN      PF6
126
+  #define LCD_RESET_PIN      PC6    // FSMC_RST
127 127
   #define NO_LCD_REINIT             // Suppress LCD re-initialization
128 128
 
129 129
   #define LCD_BACKLIGHT_PIN  PD13
130 130
 
131 131
   #if ENABLED(TOUCH_BUTTONS)
132
-    #define TOUCH_CS_PIN     PA7
132
+    #define TOUCH_CS_PIN     PA7  // SPI2_NSS
133
+    #define TOUCH_SCK_PIN    PB13 // SPI2_SCK
134
+    #define TOUCH_MISO_PIN   PB14 // SPI2_MISO
135
+    #define TOUCH_MOSI_PIN   PB15 // SPI2_MOSI
133 136
   #endif
134
-#endif
137
+#endif

Carregando…
Cancelar
Salvar