|
@@ -60,6 +60,9 @@
|
60
|
60
|
// Note: FLSun Hispeed (clone MKS_Robin_miniV2) board is using SPI2 interface.
|
61
|
61
|
//
|
62
|
62
|
#define SPI_DEVICE 2
|
|
63
|
+#define SCK_PIN PB13 // SPI2
|
|
64
|
+#define MISO_PIN PB14 // SPI2
|
|
65
|
+#define MOSI_PIN PB15 // SPI2
|
63
|
66
|
|
64
|
67
|
// SPI Flash
|
65
|
68
|
#define HAS_SPI_FLASH 1
|
|
@@ -269,43 +272,42 @@
|
269
|
272
|
#error "FLSun HiSpeed default BEEPER_PIN is not a SPEAKER."
|
270
|
273
|
#endif
|
271
|
274
|
|
272
|
|
-/**
|
273
|
|
- * Note: MKS Robin TFT screens use various TFT controllers
|
274
|
|
- * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
|
275
|
|
- * ILI9488 is not supported
|
276
|
|
- * Define init sequences for other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
|
277
|
|
- *
|
278
|
|
- * If the screen stays white, disable 'LCD_RESET_PIN'
|
279
|
|
- * to let the bootloader init the screen.
|
280
|
|
- *
|
281
|
|
- * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
|
282
|
|
- * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
|
283
|
|
- */
|
284
|
|
-
|
285
|
|
-// QQS-Pro uses MKS Robin TFT v2.0 320x240
|
|
275
|
+#if HAS_FSMC_TFT || HAS_GRAPHICAL_TFT
|
|
276
|
+ #define TFT_CS_PIN PD7 // NE4
|
|
277
|
+ #define TFT_RS_PIN PD11 // A0
|
|
278
|
+#endif
|
286
|
279
|
|
287
|
|
-// Shared FSMC Configs
|
288
|
280
|
#if HAS_FSMC_TFT
|
289
|
|
- #define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
290
|
|
- #define DOGLCD_SCK -1
|
291
|
|
-
|
292
|
|
- #define FSMC_CS_PIN PD7 // NE4
|
293
|
|
- #define FSMC_RS_PIN PD11 // A0
|
294
|
|
-
|
295
|
|
- #define TFT_RESET_PIN PC6 // FSMC_RST
|
|
281
|
+ /**
|
|
282
|
+ * Note: MKS Robin TFT screens use various TFT controllers
|
|
283
|
+ * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
|
|
284
|
+ * ILI9488 is not supported
|
|
285
|
+ * Define init sequences for other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
|
|
286
|
+ *
|
|
287
|
+ * If the screen stays white, disable 'LCD_RESET_PIN'
|
|
288
|
+ * to let the bootloader init the screen.
|
|
289
|
+ *
|
|
290
|
+ * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
|
|
291
|
+ * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
|
|
292
|
+ */
|
|
293
|
+ //#define TFT_RESET_PIN PC6 // FSMC_RST
|
296
|
294
|
#define TFT_BACKLIGHT_PIN PD13
|
|
295
|
+ #define FSMC_CS_PIN TFT_CS_PIN // NE4
|
|
296
|
+ #define FSMC_RS_PIN TFT_RS_PIN // A0
|
297
|
297
|
|
298
|
298
|
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
|
299
|
299
|
#define FSMC_DMA_DEV DMA2
|
300
|
300
|
#define FSMC_DMA_CHANNEL DMA_CH5
|
301
|
|
-
|
302
|
|
- #define TFT_BUFFER_SIZE 14400
|
303
|
|
- #if ENABLED(TFT_CLASSIC_UI)
|
304
|
|
- #define TFT_MARLINBG_COLOR 0x3186 // White
|
305
|
|
- #define TFT_MARLINUI_COLOR 0xC7B6 // green
|
|
301
|
+ #ifdef TFT_CLASSIC_UI
|
|
302
|
+ #define TFT_MARLINBG_COLOR 0x3186 // Grey
|
|
303
|
+ #define TFT_MARLINUI_COLOR 0xC7B6 // Green
|
306
|
304
|
#define TFT_BTARROWS_COLOR 0xDEE6 // Yellow
|
307
|
305
|
#define TFT_BTOKMENU_COLOR 0x145F // Cyan
|
308
|
|
- #endif
|
|
306
|
+ #endif
|
|
307
|
+ #define TFT_BUFFER_SIZE 14400
|
|
308
|
+#elif HAS_GRAPHICAL_TFT
|
|
309
|
+ #define TFT_RESET_PIN PC6
|
|
310
|
+ #define TFT_BACKLIGHT_PIN PD13
|
309
|
311
|
#endif
|
310
|
312
|
|
311
|
313
|
#if NEED_TOUCH_PINS
|
|
@@ -313,4 +315,5 @@
|
313
|
315
|
#define TOUCH_SCK_PIN PB13 // SPI2_SCK
|
314
|
316
|
#define TOUCH_MISO_PIN PB14 // SPI2_MISO
|
315
|
317
|
#define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
|
|
318
|
+ #define TOUCH_INT_PIN -1
|
316
|
319
|
#endif
|