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
 //
43
 //
44
 // Note: MKS Robin board is using SPI2 interface.
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
 // Servos
49
 // Servos
188
 // SD Card
188
 // SD Card
189
 //
189
 //
190
 #ifndef SDCARD_CONNECTION
190
 #ifndef SDCARD_CONNECTION
191
-  #define SDCARD_CONNECTION              ONBOARD
191
+  #define SDCARD_CONNECTION                 ONBOARD
192
 #endif
192
 #endif
193
 
193
 
194
 #if SD_CONNECTION_IS(LCD)
194
 #if SD_CONNECTION_IS(LCD)
210
  * If the screen stays white, disable 'LCD_RESET_PIN'
210
  * If the screen stays white, disable 'LCD_RESET_PIN'
211
  * to let the bootloader init the screen.
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
   #define LCD_RESET_PIN                     PF6
219
   #define LCD_RESET_PIN                     PF6
218
   #define LCD_BACKLIGHT_PIN                 PD13
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
   #if NEED_TOUCH_PINS
224
   #if NEED_TOUCH_PINS
221
     #define TOUCH_CS_PIN                    PA7
225
     #define TOUCH_CS_PIN                    PA7
251
     #define DOGLCD_SCK                      PB13
255
     #define DOGLCD_SCK                      PB13
252
     #define DOGLCD_MOSI                     PB15
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
     #define LCD_PINS_D4                     PF14
261
     #define LCD_PINS_D4                     PF14
257
     #if IS_ULTIPANEL
262
     #if IS_ULTIPANEL
260
       #define LCD_PINS_D7                   PF13
265
       #define LCD_PINS_D7                   PF13
261
 
266
 
262
       #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
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
       #endif
269
       #endif
265
 
270
 
266
     #endif
271
     #endif
270
 #endif
275
 #endif
271
 
276
 
272
 #ifndef BOARD_ST7920_DELAY_1
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
 #endif
279
 #endif
275
 #ifndef BOARD_ST7920_DELAY_2
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
 #endif
282
 #endif
278
 #ifndef BOARD_ST7920_DELAY_3
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
 #endif
294
 #endif

Loading…
Cancel
Save