Browse Source

Update Robin Pro TFT Pins (#21879)

Victor Oliveira 4 years ago
parent
commit
c8f9a32610
No account linked to committer's email address
1 changed files with 24 additions and 10 deletions
  1. 24
    10
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h

+ 24
- 10
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h View File

@@ -43,7 +43,7 @@
43 43
 //
44 44
 // Note: MKS Robin board is using SPI2 interface.
45 45
 //
46
-#define SPI_DEVICE                             2
46
+#define SPI_DEVICE                          2
47 47
 
48 48
 //
49 49
 // Servos
@@ -188,7 +188,7 @@
188 188
 // SD Card
189 189
 //
190 190
 #ifndef SDCARD_CONNECTION
191
-  #define SDCARD_CONNECTION              ONBOARD
191
+  #define SDCARD_CONNECTION                 ONBOARD
192 192
 #endif
193 193
 
194 194
 #if SD_CONNECTION_IS(LCD)
@@ -210,12 +210,16 @@
210 210
  * If the screen stays white, disable 'LCD_RESET_PIN'
211 211
  * to let the bootloader init the screen.
212 212
  */
213
-#if HAS_FSMC_GRAPHICAL_TFT
214
-  #define FSMC_CS_PIN                       PD7   // NE4
215
-  #define FSMC_RS_PIN                       PD11  // A0
213
+#if HAS_FSMC_TFT
214
+  #define FSMC_CS_PIN                       PD7           // NE4
215
+  #define FSMC_RS_PIN                       PD11          // A0
216
+  #define TFT_CS_PIN                        FSMC_CS_PIN
217
+  #define TFT_RS_PIN                        FSMC_RS_PIN
216 218
 
217 219
   #define LCD_RESET_PIN                     PF6
218 220
   #define LCD_BACKLIGHT_PIN                 PD13
221
+  #define TFT_RESET_PIN                     LCD_RESET_PIN
222
+  #define TFT_BACKLIGHT_PIN                 LCD_BACKLIGHT_PIN
219 223
 
220 224
   #if NEED_TOUCH_PINS
221 225
     #define TOUCH_CS_PIN                    PA7
@@ -251,7 +255,8 @@
251 255
     #define DOGLCD_SCK                      PB13
252 256
     #define DOGLCD_MOSI                     PB15
253 257
 
254
-  #else                                           // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
258
+  #else
259
+  // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
255 260
 
256 261
     #define LCD_PINS_D4                     PF14
257 262
     #if IS_ULTIPANEL
@@ -260,7 +265,7 @@
260 265
       #define LCD_PINS_D7                   PF13
261 266
 
262 267
       #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
263
-        #define BTN_ENC_EN           LCD_PINS_D7  // Detect the presence of the encoder
268
+        #define BTN_ENC_EN                  LCD_PINS_D7  // Detect the presence of the encoder
264 269
       #endif
265 270
 
266 271
     #endif
@@ -270,11 +275,20 @@
270 275
 #endif
271 276
 
272 277
 #ifndef BOARD_ST7920_DELAY_1
273
-  #define BOARD_ST7920_DELAY_1     DELAY_NS(125)
278
+  #define BOARD_ST7920_DELAY_1              DELAY_NS(125)
274 279
 #endif
275 280
 #ifndef BOARD_ST7920_DELAY_2
276
-  #define BOARD_ST7920_DELAY_2     DELAY_NS(125)
281
+  #define BOARD_ST7920_DELAY_2              DELAY_NS(125)
277 282
 #endif
278 283
 #ifndef BOARD_ST7920_DELAY_3
279
-  #define BOARD_ST7920_DELAY_3     DELAY_NS(125)
284
+  #define BOARD_ST7920_DELAY_3              DELAY_NS(125)
285
+#endif
286
+
287
+#define HAS_SPI_FLASH                       1
288
+#if HAS_SPI_FLASH
289
+  #define SPI_FLASH_SIZE                    0x1000000   // 16MB
290
+  #define W25QXX_CS_PIN                     PB12        // Flash chip-select
291
+  #define W25QXX_MOSI_PIN                   PB15
292
+  #define W25QXX_MISO_PIN                   PB14
293
+  #define W25QXX_SCK_PIN                    PB13
280 294
 #endif

Loading…
Cancel
Save