Browse Source

Add support for Mks Robin TFT display (#12706)

* Add support for MKS Robin TFT display

- Add support for MKS Robin TFT display and encoder for MKS Robin board.
- Generic 128x64 UI with x2 upscale is used (for now).
- Tested on MKS Robin TFT V2.0 with ST7789V controller.
jmz52 5 years ago
parent
commit
813a4ea107
93 changed files with 1260 additions and 23 deletions
  1. 9
    0
      Marlin/Configuration.h
  2. 1
    1
      Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  3. 255
    0
      Marlin/src/HAL/HAL_STM32F1/u8g_com_stm32duino_fsmc.cpp
  4. 9
    0
      Marlin/src/config/default/Configuration.h
  5. 9
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  6. 9
    0
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  7. 9
    0
      Marlin/src/config/examples/Anet/A2/Configuration.h
  8. 9
    0
      Marlin/src/config/examples/Anet/A2plus/Configuration.h
  9. 9
    0
      Marlin/src/config/examples/Anet/A6/Configuration.h
  10. 9
    0
      Marlin/src/config/examples/Anet/A8/Configuration.h
  11. 9
    0
      Marlin/src/config/examples/ArmEd/Configuration.h
  12. 9
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  13. 9
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  14. 9
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  15. 9
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  16. 9
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  17. 9
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  18. 9
    0
      Marlin/src/config/examples/Cartesio/Configuration.h
  19. 9
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  20. 9
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  21. 9
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration.h
  22. 9
    0
      Marlin/src/config/examples/Creality/CR-8/Configuration.h
  23. 9
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration.h
  24. 9
    0
      Marlin/src/config/examples/Creality/Ender-3/Configuration.h
  25. 9
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration.h
  26. 9
    0
      Marlin/src/config/examples/Einstart-S/Configuration.h
  27. 9
    0
      Marlin/src/config/examples/Felix/Configuration.h
  28. 9
    0
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  29. 9
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  30. 9
    0
      Marlin/src/config/examples/Formbot/Raptor/Configuration.h
  31. 9
    0
      Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h
  32. 9
    0
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h
  33. 9
    0
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  34. 9
    0
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  35. 9
    0
      Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h
  36. 9
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  37. 9
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  38. 9
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h
  39. 9
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h
  40. 9
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  41. 9
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  42. 9
    0
      Marlin/src/config/examples/MakerParts/Configuration.h
  43. 9
    0
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  44. 9
    0
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  45. 9
    0
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  46. 9
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  47. 22
    14
      Marlin/src/config/examples/Mks/Robin/Configuration.h
  48. 1
    1
      Marlin/src/config/examples/Mks/Robin/Configuration_adv.h
  49. 9
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  50. 9
    0
      Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h
  51. 9
    0
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  52. 9
    0
      Marlin/src/config/examples/RigidBot/Configuration.h
  53. 9
    0
      Marlin/src/config/examples/SCARA/Configuration.h
  54. 9
    0
      Marlin/src/config/examples/STM32F10/Configuration.h
  55. 9
    0
      Marlin/src/config/examples/STM32F4/Configuration.h
  56. 9
    0
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  57. 9
    0
      Marlin/src/config/examples/TheBorg/Configuration.h
  58. 9
    0
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  59. 9
    0
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  60. 9
    0
      Marlin/src/config/examples/Tronxy/X3A/Configuration.h
  61. 9
    0
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  62. 9
    0
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  63. 9
    0
      Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h
  64. 9
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  65. 9
    0
      Marlin/src/config/examples/VORONDesign/Configuration.h
  66. 9
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  67. 9
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  68. 9
    0
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  69. 9
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  70. 9
    0
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  71. 9
    0
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
  72. 9
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  73. 9
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  74. 9
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  75. 9
    0
      Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h
  76. 9
    0
      Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h
  77. 9
    0
      Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h
  78. 9
    0
      Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h
  79. 9
    0
      Marlin/src/config/examples/delta/generic/Configuration.h
  80. 9
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  81. 9
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  82. 9
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  83. 9
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  84. 9
    0
      Marlin/src/config/examples/makibox/Configuration.h
  85. 9
    0
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  86. 9
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  87. 9
    0
      Marlin/src/config/examples/wt150/Configuration.h
  88. 9
    0
      Marlin/src/inc/Conditionals_LCD.h
  89. 13
    0
      Marlin/src/lcd/dogm/HAL_LCD_class_defines.h
  90. 9
    0
      Marlin/src/lcd/dogm/HAL_LCD_com_defines.h
  91. 177
    0
      Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp
  92. 4
    0
      Marlin/src/lcd/dogm/ultralcd_DOGM.h
  93. 22
    7
      Marlin/src/pins/pins_MKS_ROBIN.h

+ 9
- 0
Marlin/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 1
- 1
Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py View File

@@ -17,7 +17,7 @@ if __name__ == "__main__":
17 17
                     "--specs=nano.specs",
18 18
                     "--specs=nosys.specs",
19 19
 
20
-                    "-IMarlin/src/HAL",
20
+                    "-IMarlin/src/HAL/HAL_STM32F1",
21 21
 
22 22
                     "-MMD",
23 23
                     "-MP",

+ 255
- 0
Marlin/src/HAL/HAL_STM32F1/u8g_com_stm32duino_fsmc.cpp View File

@@ -0,0 +1,255 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016, 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/**
24
+ * u8g_com_stm32duino_fsmc.cpp
25
+ *
26
+ * Communication interface for FSMC
27
+ */
28
+
29
+#include "../../inc/MarlinConfig.h"
30
+
31
+#if HAS_GRAPHICAL_LCD
32
+#if defined(STM32F1) || defined(STM32F1xx)
33
+
34
+#include "U8glib.h"
35
+#include "libmaple/fsmc.h"
36
+#include "libmaple/gpio.h"
37
+#include "boards.h"
38
+
39
+#define LCD_READ_ID     0x04   /* Read display identification information */
40
+
41
+/* Timing configuration */
42
+#define FSMC_ADDRESS_SETUP_TIME   15  // AddressSetupTime
43
+#define FSMC_DATA_SETUP_TIME      15  // DataSetupTime
44
+
45
+void LCD_IO_Init(uint8_t cs, uint8_t rs);
46
+void LCD_IO_WriteData(uint16_t RegValue);
47
+void LCD_IO_WriteReg(uint8_t Reg);
48
+uint32_t LCD_IO_ReadData(uint16_t RegValue, uint8_t ReadSize);
49
+
50
+static uint8_t msgInitCount = 2; // Ignore all messages until 2nd U8G_COM_MSG_INIT
51
+
52
+uint8_t u8g_com_stm32duino_fsmc_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {
53
+  if (msgInitCount) {
54
+    if (msg == U8G_COM_MSG_INIT) msgInitCount--;
55
+    if (msgInitCount) return -1;
56
+  }
57
+
58
+  static uint8_t isCommand;
59
+
60
+  switch(msg) {
61
+    case U8G_COM_MSG_STOP:
62
+      break;
63
+    case U8G_COM_MSG_INIT:
64
+      u8g_SetPIOutput(u8g, U8G_PI_RESET);
65
+
66
+      LCD_IO_Init(u8g->pin_list[U8G_PI_CS], u8g->pin_list[U8G_PI_A0]);
67
+      u8g_Delay(100);
68
+
69
+      if (arg_ptr != NULL)
70
+        *((uint32_t *)arg_ptr) = LCD_IO_ReadData(LCD_READ_ID, 3);
71
+
72
+      isCommand = 0;
73
+      break;
74
+
75
+    case U8G_COM_MSG_ADDRESS:           // define cmd (arg_val = 0) or data mode (arg_val = 1)
76
+      isCommand = arg_val == 0 ? 1 : 0;
77
+      break;
78
+
79
+    case U8G_COM_MSG_RESET:
80
+      u8g_SetPILevel(u8g, U8G_PI_RESET, arg_val);
81
+      break;
82
+
83
+    case U8G_COM_MSG_WRITE_BYTE:
84
+      if (isCommand)
85
+        LCD_IO_WriteReg(arg_val);
86
+      else
87
+        LCD_IO_WriteData((uint16_t)arg_val);
88
+      break;
89
+
90
+    case U8G_COM_MSG_WRITE_SEQ:
91
+
92
+      for (uint8_t i = 0; i < arg_val; i += 2)
93
+        LCD_IO_WriteData(*(uint16_t *)(((uint32_t)arg_ptr) + i));
94
+      break;
95
+  }
96
+  return 1;
97
+}
98
+
99
+/**
100
+ * FSMC LCD IO
101
+ */
102
+#define __ASM __asm
103
+#define __STATIC_INLINE static inline
104
+
105
+__attribute__((always_inline)) __STATIC_INLINE void __DSB(void) {
106
+  __ASM volatile ("dsb 0xF":::"memory");
107
+}
108
+
109
+#define FSMC_CS_NE1  PD7
110
+#define FSMC_CS_NE2  PG9
111
+#define FSMC_CS_NE3  PG10
112
+#define FSMC_CS_NE4  PG12
113
+
114
+#define FSMC_RS_A0   PF0
115
+#define FSMC_RS_A1   PF1
116
+#define FSMC_RS_A2   PF2
117
+#define FSMC_RS_A3   PF3
118
+#define FSMC_RS_A4   PF4
119
+#define FSMC_RS_A5   PF5
120
+#define FSMC_RS_A6   PF12
121
+#define FSMC_RS_A7   PF13
122
+#define FSMC_RS_A8   PF14
123
+#define FSMC_RS_A9   PF15
124
+#define FSMC_RS_A10  PG0
125
+#define FSMC_RS_A11  PG1
126
+#define FSMC_RS_A12  PG2
127
+#define FSMC_RS_A13  PG3
128
+#define FSMC_RS_A14  PG4
129
+#define FSMC_RS_A15  PG5
130
+#define FSMC_RS_A16  PD11
131
+#define FSMC_RS_A17  PD12
132
+#define FSMC_RS_A18  PD13
133
+#define FSMC_RS_A19  PE3
134
+#define FSMC_RS_A20  PE4
135
+#define FSMC_RS_A21  PE5
136
+#define FSMC_RS_A22  PE6
137
+#define FSMC_RS_A23  PE2
138
+#define FSMC_RS_A24  PG13
139
+#define FSMC_RS_A25  PG14
140
+
141
+static uint8_t fsmcInit = 0;
142
+
143
+typedef struct {
144
+  __IO uint16_t REG;
145
+  __IO uint16_t RAM;
146
+} LCD_CONTROLLER_TypeDef;
147
+
148
+LCD_CONTROLLER_TypeDef *LCD;
149
+
150
+void LCD_IO_Init(uint8_t cs, uint8_t rs) {
151
+  uint32_t controllerAddress;
152
+
153
+  if (fsmcInit) return;
154
+  fsmcInit = 1;
155
+
156
+  switch(cs) {
157
+    case FSMC_CS_NE1: controllerAddress = (uint32_t)FSMC_NOR_PSRAM_REGION1; break;
158
+    case FSMC_CS_NE2: controllerAddress = (uint32_t)FSMC_NOR_PSRAM_REGION2; break;
159
+    case FSMC_CS_NE3: controllerAddress = (uint32_t)FSMC_NOR_PSRAM_REGION3; break;
160
+    case FSMC_CS_NE4: controllerAddress = (uint32_t)FSMC_NOR_PSRAM_REGION4; break;
161
+    default: return;
162
+  }
163
+
164
+  #define _ORADDR(N) controllerAddress |= (_BV32(N) - 2)
165
+
166
+  switch(rs) {
167
+    case FSMC_RS_A0:  _ORADDR( 1); break;
168
+    case FSMC_RS_A1:  _ORADDR( 2); break;
169
+    case FSMC_RS_A2:  _ORADDR( 3); break;
170
+    case FSMC_RS_A3:  _ORADDR( 4); break;
171
+    case FSMC_RS_A4:  _ORADDR( 5); break;
172
+    case FSMC_RS_A5:  _ORADDR( 6); break;
173
+    case FSMC_RS_A6:  _ORADDR( 7); break;
174
+    case FSMC_RS_A7:  _ORADDR( 8); break;
175
+    case FSMC_RS_A8:  _ORADDR( 9); break;
176
+    case FSMC_RS_A9:  _ORADDR(10); break;
177
+    case FSMC_RS_A10: _ORADDR(11); break;
178
+    case FSMC_RS_A11: _ORADDR(12); break;
179
+    case FSMC_RS_A12: _ORADDR(13); break;
180
+    case FSMC_RS_A13: _ORADDR(14); break;
181
+    case FSMC_RS_A14: _ORADDR(15); break;
182
+    case FSMC_RS_A15: _ORADDR(16); break;
183
+    case FSMC_RS_A16: _ORADDR(17); break;
184
+    case FSMC_RS_A17: _ORADDR(18); break;
185
+    case FSMC_RS_A18: _ORADDR(19); break;
186
+    case FSMC_RS_A19: _ORADDR(20); break;
187
+    case FSMC_RS_A20: _ORADDR(21); break;
188
+    case FSMC_RS_A21: _ORADDR(22); break;
189
+    case FSMC_RS_A22: _ORADDR(23); break;
190
+    case FSMC_RS_A23: _ORADDR(24); break;
191
+    case FSMC_RS_A24: _ORADDR(25); break;
192
+    case FSMC_RS_A25: _ORADDR(26); break;
193
+    default: return;
194
+  }
195
+
196
+  rcc_clk_enable(RCC_FSMC);
197
+
198
+  gpio_set_mode(GPIOD, 14, GPIO_AF_OUTPUT_PP);  // FSMC_D00
199
+  gpio_set_mode(GPIOD, 15, GPIO_AF_OUTPUT_PP);  // FSMC_D01
200
+  gpio_set_mode(GPIOD,  0, GPIO_AF_OUTPUT_PP);  // FSMC_D02
201
+  gpio_set_mode(GPIOD,  1, GPIO_AF_OUTPUT_PP);  // FSMC_D03
202
+  gpio_set_mode(GPIOE,  7, GPIO_AF_OUTPUT_PP);  // FSMC_D04
203
+  gpio_set_mode(GPIOE,  8, GPIO_AF_OUTPUT_PP);  // FSMC_D05
204
+  gpio_set_mode(GPIOE,  9, GPIO_AF_OUTPUT_PP);  // FSMC_D06
205
+  gpio_set_mode(GPIOE, 10, GPIO_AF_OUTPUT_PP);  // FSMC_D07
206
+  gpio_set_mode(GPIOE, 11, GPIO_AF_OUTPUT_PP);  // FSMC_D08
207
+  gpio_set_mode(GPIOE, 12, GPIO_AF_OUTPUT_PP);  // FSMC_D09
208
+  gpio_set_mode(GPIOE, 13, GPIO_AF_OUTPUT_PP);  // FSMC_D10
209
+  gpio_set_mode(GPIOE, 14, GPIO_AF_OUTPUT_PP);  // FSMC_D11
210
+  gpio_set_mode(GPIOE, 15, GPIO_AF_OUTPUT_PP);  // FSMC_D12
211
+  gpio_set_mode(GPIOD,  8, GPIO_AF_OUTPUT_PP);  // FSMC_D13
212
+  gpio_set_mode(GPIOD,  9, GPIO_AF_OUTPUT_PP);  // FSMC_D14
213
+  gpio_set_mode(GPIOD, 10, GPIO_AF_OUTPUT_PP);  // FSMC_D15
214
+
215
+  gpio_set_mode(GPIOD,  4, GPIO_AF_OUTPUT_PP);   // FSMC_NOE
216
+  gpio_set_mode(GPIOD,  5, GPIO_AF_OUTPUT_PP);   // FSMC_NWE
217
+
218
+  gpio_set_mode(PIN_MAP[cs].gpio_device, PIN_MAP[cs].gpio_bit, GPIO_AF_OUTPUT_PP);  //FSMC_CS_NEx
219
+  gpio_set_mode(PIN_MAP[rs].gpio_device, PIN_MAP[rs].gpio_bit, GPIO_AF_OUTPUT_PP);  //FSMC_RS_Ax
220
+
221
+  FSMC_NOR_PSRAM4_BASE->BCR = FSMC_BCR_WREN | FSMC_BCR_MTYP_SRAM | FSMC_BCR_MWID_16BITS | FSMC_BCR_MBKEN;
222
+  FSMC_NOR_PSRAM4_BASE->BTR = (FSMC_DATA_SETUP_TIME << 8) | FSMC_ADDRESS_SETUP_TIME;
223
+
224
+  afio_remap(AFIO_REMAP_FSMC_NADV);
225
+
226
+  LCD = (LCD_CONTROLLER_TypeDef*)controllerAddress;
227
+}
228
+
229
+void LCD_IO_WriteData(uint16_t RegValue) {
230
+	LCD->RAM = RegValue;
231
+	__DSB();
232
+}
233
+
234
+void LCD_IO_WriteReg(uint8_t Reg) {
235
+	LCD->REG = (uint16_t)Reg;
236
+	__DSB();
237
+}
238
+
239
+uint32_t LCD_IO_ReadData(uint16_t RegValue, uint8_t ReadSize) {
240
+	volatile uint32_t data;
241
+	LCD->REG = (uint16_t)RegValue;
242
+	__DSB();
243
+
244
+	data = LCD->RAM; // dummy read
245
+	data = LCD->RAM & 0x00FF;
246
+
247
+	while (--ReadSize) {
248
+		data <<= 8;
249
+		data |= (LCD->RAM & 0x00FF);
250
+	}
251
+	return (uint32_t)data;
252
+}
253
+
254
+#endif // STM32F1 || STM32F1xx
255
+#endif // HAS_GRAPHICAL_LCD

+ 9
- 0
Marlin/src/config/default/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h View File

@@ -1894,6 +1894,15 @@
1894 1894
 //#define EXTENSIBLE_UI
1895 1895
 
1896 1896
 //=============================================================================
1897
+//=============================== Graphical TFTs ==============================
1898
+//=============================================================================
1899
+
1900
+//
1901
+// MKS Robin 320x240 color display
1902
+//
1903
+//#define MKS_ROBIN_TFT
1904
+
1905
+//=============================================================================
1897 1906
 //============================  Other Controllers  ============================
1898 1907
 //=============================================================================
1899 1908
 

+ 9
- 0
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Anet/A2/Configuration.h View File

@@ -1876,6 +1876,15 @@
1876 1876
 //#define EXTENSIBLE_UI
1877 1877
 
1878 1878
 //=============================================================================
1879
+//=============================== Graphical TFTs ==============================
1880
+//=============================================================================
1881
+
1882
+//
1883
+// MKS Robin 320x240 color display
1884
+//
1885
+//#define MKS_ROBIN_TFT
1886
+
1887
+//=============================================================================
1879 1888
 //============================  Other Controllers  ============================
1880 1889
 //=============================================================================
1881 1890
 

+ 9
- 0
Marlin/src/config/examples/Anet/A2plus/Configuration.h View File

@@ -1876,6 +1876,15 @@
1876 1876
 //#define EXTENSIBLE_UI
1877 1877
 
1878 1878
 //=============================================================================
1879
+//=============================== Graphical TFTs ==============================
1880
+//=============================================================================
1881
+
1882
+//
1883
+// MKS Robin 320x240 color display
1884
+//
1885
+//#define MKS_ROBIN_TFT
1886
+
1887
+//=============================================================================
1879 1888
 //============================  Other Controllers  ============================
1880 1889
 //=============================================================================
1881 1890
 

+ 9
- 0
Marlin/src/config/examples/Anet/A6/Configuration.h View File

@@ -2028,6 +2028,15 @@
2028 2028
 //#define EXTENSIBLE_UI
2029 2029
 
2030 2030
 //=============================================================================
2031
+//=============================== Graphical TFTs ==============================
2032
+//=============================================================================
2033
+
2034
+//
2035
+// MKS Robin 320x240 color display
2036
+//
2037
+//#define MKS_ROBIN_TFT
2038
+
2039
+//=============================================================================
2031 2040
 //============================  Other Controllers  ============================
2032 2041
 //=============================================================================
2033 2042
 

+ 9
- 0
Marlin/src/config/examples/Anet/A8/Configuration.h View File

@@ -1889,6 +1889,15 @@
1889 1889
 //#define EXTENSIBLE_UI
1890 1890
 
1891 1891
 //=============================================================================
1892
+//=============================== Graphical TFTs ==============================
1893
+//=============================================================================
1894
+
1895
+//
1896
+// MKS Robin 320x240 color display
1897
+//
1898
+//#define MKS_ROBIN_TFT
1899
+
1900
+//=============================================================================
1892 1901
 //============================  Other Controllers  ============================
1893 1902
 //=============================================================================
1894 1903
 

+ 9
- 0
Marlin/src/config/examples/ArmEd/Configuration.h View File

@@ -1886,6 +1886,15 @@
1886 1886
 //#define EXTENSIBLE_UI
1887 1887
 
1888 1888
 //=============================================================================
1889
+//=============================== Graphical TFTs ==============================
1890
+//=============================================================================
1891
+
1892
+//
1893
+// MKS Robin 320x240 color display
1894
+//
1895
+//#define MKS_ROBIN_TFT
1896
+
1897
+//=============================================================================
1889 1898
 //============================  Other Controllers  ============================
1890 1899
 //=============================================================================
1891 1900
 

+ 9
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration.h View File

@@ -1862,6 +1862,15 @@
1862 1862
 //#define EXTENSIBLE_UI
1863 1863
 
1864 1864
 //=============================================================================
1865
+//=============================== Graphical TFTs ==============================
1866
+//=============================================================================
1867
+
1868
+//
1869
+// MKS Robin 320x240 color display
1870
+//
1871
+//#define MKS_ROBIN_TFT
1872
+
1873
+//=============================================================================
1865 1874
 //============================  Other Controllers  ============================
1866 1875
 //=============================================================================
1867 1876
 

+ 9
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration.h View File

@@ -1862,6 +1862,15 @@
1862 1862
 //#define EXTENSIBLE_UI
1863 1863
 
1864 1864
 //=============================================================================
1865
+//=============================== Graphical TFTs ==============================
1866
+//=============================================================================
1867
+
1868
+//
1869
+// MKS Robin 320x240 color display
1870
+//
1871
+//#define MKS_ROBIN_TFT
1872
+
1873
+//=============================================================================
1865 1874
 //============================  Other Controllers  ============================
1866 1875
 //=============================================================================
1867 1876
 

+ 9
- 0
Marlin/src/config/examples/Cartesio/Configuration.h View File

@@ -1873,6 +1873,15 @@
1873 1873
 //#define EXTENSIBLE_UI
1874 1874
 
1875 1875
 //=============================================================================
1876
+//=============================== Graphical TFTs ==============================
1877
+//=============================================================================
1878
+
1879
+//
1880
+// MKS Robin 320x240 color display
1881
+//
1882
+//#define MKS_ROBIN_TFT
1883
+
1884
+//=============================================================================
1876 1885
 //============================  Other Controllers  ============================
1877 1886
 //=============================================================================
1878 1887
 

+ 9
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration.h View File

@@ -1884,6 +1884,15 @@
1884 1884
 //#define EXTENSIBLE_UI
1885 1885
 
1886 1886
 //=============================================================================
1887
+//=============================== Graphical TFTs ==============================
1888
+//=============================================================================
1889
+
1890
+//
1891
+// MKS Robin 320x240 color display
1892
+//
1893
+//#define MKS_ROBIN_TFT
1894
+
1895
+//=============================================================================
1887 1896
 //============================  Other Controllers  ============================
1888 1897
 //=============================================================================
1889 1898
 

+ 9
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration.h View File

@@ -1875,6 +1875,15 @@
1875 1875
 //#define EXTENSIBLE_UI
1876 1876
 
1877 1877
 //=============================================================================
1878
+//=============================== Graphical TFTs ==============================
1879
+//=============================================================================
1880
+
1881
+//
1882
+// MKS Robin 320x240 color display
1883
+//
1884
+//#define MKS_ROBIN_TFT
1885
+
1886
+//=============================================================================
1878 1887
 //============================  Other Controllers  ============================
1879 1888
 //=============================================================================
1880 1889
 

+ 9
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration.h View File

@@ -1893,6 +1893,15 @@
1893 1893
 //#define EXTENSIBLE_UI
1894 1894
 
1895 1895
 //=============================================================================
1896
+//=============================== Graphical TFTs ==============================
1897
+//=============================================================================
1898
+
1899
+//
1900
+// MKS Robin 320x240 color display
1901
+//
1902
+//#define MKS_ROBIN_TFT
1903
+
1904
+//=============================================================================
1896 1905
 //============================  Other Controllers  ============================
1897 1906
 //=============================================================================
1898 1907
 

+ 9
- 0
Marlin/src/config/examples/Creality/CR-8/Configuration.h View File

@@ -1884,6 +1884,15 @@
1884 1884
 //#define EXTENSIBLE_UI
1885 1885
 
1886 1886
 //=============================================================================
1887
+//=============================== Graphical TFTs ==============================
1888
+//=============================================================================
1889
+
1890
+//
1891
+// MKS Robin 320x240 color display
1892
+//
1893
+//#define MKS_ROBIN_TFT
1894
+
1895
+//=============================================================================
1887 1896
 //============================  Other Controllers  ============================
1888 1897
 //=============================================================================
1889 1898
 

+ 9
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 9
- 0
Marlin/src/config/examples/Creality/Ender-3/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 9
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration.h View File

@@ -1884,6 +1884,15 @@
1884 1884
 //#define EXTENSIBLE_UI
1885 1885
 
1886 1886
 //=============================================================================
1887
+//=============================== Graphical TFTs ==============================
1888
+//=============================================================================
1889
+
1890
+//
1891
+// MKS Robin 320x240 color display
1892
+//
1893
+//#define MKS_ROBIN_TFT
1894
+
1895
+//=============================================================================
1887 1896
 //============================  Other Controllers  ============================
1888 1897
 //=============================================================================
1889 1898
 

+ 9
- 0
Marlin/src/config/examples/Einstart-S/Configuration.h View File

@@ -1880,6 +1880,15 @@
1880 1880
 #define U8GLIB_SH1106_EINSTART
1881 1881
 
1882 1882
 //=============================================================================
1883
+//=============================== Graphical TFTs ==============================
1884
+//=============================================================================
1885
+
1886
+//
1887
+// MKS Robin 320x240 color display
1888
+//
1889
+//#define MKS_ROBIN_TFT
1890
+
1891
+//=============================================================================
1883 1892
 //============================  Other Controllers  ============================
1884 1893
 //=============================================================================
1885 1894
 

+ 9
- 0
Marlin/src/config/examples/Felix/Configuration.h View File

@@ -1856,6 +1856,15 @@
1856 1856
 //#define EXTENSIBLE_UI
1857 1857
 
1858 1858
 //=============================================================================
1859
+//=============================== Graphical TFTs ==============================
1860
+//=============================================================================
1861
+
1862
+//
1863
+// MKS Robin 320x240 color display
1864
+//
1865
+//#define MKS_ROBIN_TFT
1866
+
1867
+//=============================================================================
1859 1868
 //============================  Other Controllers  ============================
1860 1869
 //=============================================================================
1861 1870
 

+ 9
- 0
Marlin/src/config/examples/Felix/DUAL/Configuration.h View File

@@ -1856,6 +1856,15 @@
1856 1856
 //#define EXTENSIBLE_UI
1857 1857
 
1858 1858
 //=============================================================================
1859
+//=============================== Graphical TFTs ==============================
1860
+//=============================================================================
1861
+
1862
+//
1863
+// MKS Robin 320x240 color display
1864
+//
1865
+//#define MKS_ROBIN_TFT
1866
+
1867
+//=============================================================================
1859 1868
 //============================  Other Controllers  ============================
1860 1869
 //=============================================================================
1861 1870
 

+ 9
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h View File

@@ -1880,6 +1880,15 @@
1880 1880
 //#define EXTENSIBLE_UI
1881 1881
 
1882 1882
 //=============================================================================
1883
+//=============================== Graphical TFTs ==============================
1884
+//=============================================================================
1885
+
1886
+//
1887
+// MKS Robin 320x240 color display
1888
+//
1889
+//#define MKS_ROBIN_TFT
1890
+
1891
+//=============================================================================
1883 1892
 //============================  Other Controllers  ============================
1884 1893
 //=============================================================================
1885 1894
 

+ 9
- 0
Marlin/src/config/examples/Formbot/Raptor/Configuration.h View File

@@ -1979,6 +1979,15 @@
1979 1979
 //#define EXTENSIBLE_UI
1980 1980
 
1981 1981
 //=============================================================================
1982
+//=============================== Graphical TFTs ==============================
1983
+//=============================================================================
1984
+
1985
+//
1986
+// MKS Robin 320x240 color display
1987
+//
1988
+//#define MKS_ROBIN_TFT
1989
+
1990
+//=============================================================================
1982 1991
 //============================  Other Controllers  ============================
1983 1992
 //=============================================================================
1984 1993
 

+ 9
- 0
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration.h View File

@@ -1909,6 +1909,15 @@
1909 1909
 //#define EXTENSIBLE_UI
1910 1910
 
1911 1911
 //=============================================================================
1912
+//=============================== Graphical TFTs ==============================
1913
+//=============================================================================
1914
+
1915
+//
1916
+// MKS Robin 320x240 color display
1917
+//
1918
+//#define MKS_ROBIN_TFT
1919
+
1920
+//=============================================================================
1912 1921
 //============================  Other Controllers  ============================
1913 1922
 //=============================================================================
1914 1923
 

+ 9
- 0
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h View File

@@ -1902,6 +1902,15 @@
1902 1902
 //#define EXTENSIBLE_UI
1903 1903
 
1904 1904
 //=============================================================================
1905
+//=============================== Graphical TFTs ==============================
1906
+//=============================================================================
1907
+
1908
+//
1909
+// MKS Robin 320x240 color display
1910
+//
1911
+//#define MKS_ROBIN_TFT
1912
+
1913
+//=============================================================================
1905 1914
 //============================  Other Controllers  ============================
1906 1915
 //=============================================================================
1907 1916
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h View File

@@ -1889,6 +1889,15 @@
1889 1889
 //#define EXTENSIBLE_UI
1890 1890
 
1891 1891
 //=============================================================================
1892
+//=============================== Graphical TFTs ==============================
1893
+//=============================================================================
1894
+
1895
+//
1896
+// MKS Robin 320x240 color display
1897
+//
1898
+//#define MKS_ROBIN_TFT
1899
+
1900
+//=============================================================================
1892 1901
 //============================  Other Controllers  ============================
1893 1902
 //=============================================================================
1894 1903
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration.h View File

@@ -1881,6 +1881,15 @@
1881 1881
 //#define EXTENSIBLE_UI
1882 1882
 
1883 1883
 //=============================================================================
1884
+//=============================== Graphical TFTs ==============================
1885
+//=============================================================================
1886
+
1887
+//
1888
+// MKS Robin 320x240 color display
1889
+//
1890
+//#define MKS_ROBIN_TFT
1891
+
1892
+//=============================================================================
1884 1893
 //============================  Other Controllers  ============================
1885 1894
 //=============================================================================
1886 1895
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h View File

@@ -1890,6 +1890,15 @@
1890 1890
 //#define EXTENSIBLE_UI
1891 1891
 
1892 1892
 //=============================================================================
1893
+//=============================== Graphical TFTs ==============================
1894
+//=============================================================================
1895
+
1896
+//
1897
+// MKS Robin 320x240 color display
1898
+//
1899
+//#define MKS_ROBIN_TFT
1900
+
1901
+//=============================================================================
1893 1902
 //============================  Other Controllers  ============================
1894 1903
 //=============================================================================
1895 1904
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h View File

@@ -1889,6 +1889,15 @@
1889 1889
 //#define EXTENSIBLE_UI
1890 1890
 
1891 1891
 //=============================================================================
1892
+//=============================== Graphical TFTs ==============================
1893
+//=============================================================================
1894
+
1895
+//
1896
+// MKS Robin 320x240 color display
1897
+//
1898
+//#define MKS_ROBIN_TFT
1899
+
1900
+//=============================================================================
1892 1901
 //============================  Other Controllers  ============================
1893 1902
 //=============================================================================
1894 1903
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 9
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration.h View File

@@ -1886,6 +1886,15 @@
1886 1886
 //#define EXTENSIBLE_UI
1887 1887
 
1888 1888
 //=============================================================================
1889
+//=============================== Graphical TFTs ==============================
1890
+//=============================================================================
1891
+
1892
+//
1893
+// MKS Robin 320x240 color display
1894
+//
1895
+//#define MKS_ROBIN_TFT
1896
+
1897
+//=============================================================================
1889 1898
 //============================  Other Controllers  ============================
1890 1899
 //=============================================================================
1891 1900
 

+ 9
- 0
Marlin/src/config/examples/MakerParts/Configuration.h View File

@@ -1894,6 +1894,15 @@
1894 1894
 //#define EXTENSIBLE_UI
1895 1895
 
1896 1896
 //=============================================================================
1897
+//=============================== Graphical TFTs ==============================
1898
+//=============================================================================
1899
+
1900
+//
1901
+// MKS Robin 320x240 color display
1902
+//
1903
+//#define MKS_ROBIN_TFT
1904
+
1905
+//=============================================================================
1897 1906
 //============================  Other Controllers  ============================
1898 1907
 //=============================================================================
1899 1908
 

+ 9
- 0
Marlin/src/config/examples/Malyan/M150/Configuration.h View File

@@ -1902,6 +1902,15 @@
1902 1902
 //#define EXTENSIBLE_UI
1903 1903
 
1904 1904
 //=============================================================================
1905
+//=============================== Graphical TFTs ==============================
1906
+//=============================================================================
1907
+
1908
+//
1909
+// MKS Robin 320x240 color display
1910
+//
1911
+//#define MKS_ROBIN_TFT
1912
+
1913
+//=============================================================================
1905 1914
 //============================  Other Controllers  ============================
1906 1915
 //=============================================================================
1907 1916
 

+ 9
- 0
Marlin/src/config/examples/Malyan/M200/Configuration.h View File

@@ -1873,6 +1873,15 @@
1873 1873
 //#define EXTENSIBLE_UI
1874 1874
 
1875 1875
 //=============================================================================
1876
+//=============================== Graphical TFTs ==============================
1877
+//=============================================================================
1878
+
1879
+//
1880
+// MKS Robin 320x240 color display
1881
+//
1882
+//#define MKS_ROBIN_TFT
1883
+
1884
+//=============================================================================
1876 1885
 //============================  Other Controllers  ============================
1877 1886
 //=============================================================================
1878 1887
 

+ 9
- 0
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 9
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 22
- 14
Marlin/src/config/examples/Mks/Robin/Configuration.h View File

@@ -104,7 +104,7 @@
104 104
  *
105 105
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
106 106
  */
107
-#define SERIAL_PORT 3
107
+#define SERIAL_PORT 0
108 108
 
109 109
 /**
110 110
  * Select a secondary serial port on the board to use for communication with the host.
@@ -113,8 +113,7 @@
113 113
  *
114 114
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
115 115
  */
116
-#define SERIAL_PORT_2 1
117
-#define NUM_SERIAL 2
116
+//#define SERIAL_PORT_2 -1
118 117
 
119 118
 /**
120 119
  * This setting determines the communication speed of the printer.
@@ -133,12 +132,12 @@
133 132
 // The following define selects which electronics board you have.
134 133
 // Please choose the name from boards.h that matches your setup
135 134
 #ifndef MOTHERBOARD
136
-  #define MOTHERBOARD BOARD_MKS_ROBIN
135
+  #define MOTHERBOARD BOARD_RAMPS_14_EFB
137 136
 #endif
138 137
 
139 138
 // Optional custom name for your RepStrap or other custom machine
140 139
 // Displayed in the LCD "Ready" message
141
-#define CUSTOM_MACHINE_NAME "MKS Robin"
140
+//#define CUSTOM_MACHINE_NAME "3D Printer"
142 141
 
143 142
 // Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
144 143
 // You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)
@@ -148,10 +147,10 @@
148 147
 
149 148
 // This defines the number of extruders
150 149
 // :[1, 2, 3, 4, 5, 6]
151
-#define EXTRUDERS 2
150
+#define EXTRUDERS 1
152 151
 
153 152
 // Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.
154
-#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75
153
+#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0
155 154
 
156 155
 // For Cyclops or any "multi-extruder" that shares a single nozzle.
157 156
 //#define SINGLENOZZLE
@@ -329,12 +328,12 @@
329 328
  * :{ '0': "Not used", '1':"100k / 4.7k - EPCOS", '2':"200k / 4.7k - ATC Semitec 204GT-2", '3':"Mendel-parts / 4.7k", '4':"10k !! do not use for a hotend. Bad resolution at high temp. !!", '5':"100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '501':"100K Zonestar (Tronxy X3A)", '6':"100k / 4.7k EPCOS - Not as accurate as Table 1", '7':"100k / 4.7k Honeywell 135-104LAG-J01", '8':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT", '9':"100k / 4.7k GE Sensing AL03006-58.2K-97-G1", '10':"100k / 4.7k RS 198-961", '11':"100k / 4.7k beta 3950 1%", '12':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed)", '13':"100k Hisens 3950  1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE'", '20':"PT100 (Ultimainboard V2.x)", '51':"100k / 1k - EPCOS", '52':"200k / 1k - ATC Semitec 204GT-2", '55':"100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '60':"100k Maker's Tool Works Kapton Bed Thermistor beta=3950", '61':"100k Formbot / Vivedino 3950 350C thermistor 4.7k pullup", '66':"Dyze Design 4.7M High Temperature thermistor", '70':"the 100K thermistor found in the bq Hephestos 2", '71':"100k / 4.7k Honeywell 135-104LAF-J01", '147':"Pt100 / 4.7k", '1047':"Pt1000 / 4.7k", '110':"Pt100 / 1k (non-standard)", '1010':"Pt1000 / 1k (non standard)", '-4':"Thermocouple + AD8495", '-3':"Thermocouple + MAX31855 (only for sensor 0)", '-2':"Thermocouple + MAX6675 (only for sensor 0)", '-1':"Thermocouple + AD595",'998':"Dummy 1", '999':"Dummy 2" }
330 329
  */
331 330
 #define TEMP_SENSOR_0 1
332
-#define TEMP_SENSOR_1 1
331
+#define TEMP_SENSOR_1 0
333 332
 #define TEMP_SENSOR_2 0
334 333
 #define TEMP_SENSOR_3 0
335 334
 #define TEMP_SENSOR_4 0
336 335
 #define TEMP_SENSOR_5 0
337
-#define TEMP_SENSOR_BED 1
336
+#define TEMP_SENSOR_BED 0
338 337
 #define TEMP_SENSOR_CHAMBER 0
339 338
 
340 339
 // Dummy thermistor constant temperature readings, for use with 998 and 999
@@ -434,7 +433,7 @@
434 433
  * heater. If your configuration is significantly different than this and you don't understand
435 434
  * the issues involved, don't use bed PID until someone else verifies that your hardware works.
436 435
  */
437
-#define PIDTEMPBED
436
+//#define PIDTEMPBED
438 437
 
439 438
 //#define BED_LIMIT_SWITCHING
440 439
 
@@ -531,9 +530,9 @@
531 530
 #define USE_XMIN_PLUG
532 531
 #define USE_YMIN_PLUG
533 532
 #define USE_ZMIN_PLUG
534
-#define USE_XMAX_PLUG
535
-#define USE_YMAX_PLUG
536
-#define USE_ZMAX_PLUG
533
+//#define USE_XMAX_PLUG
534
+//#define USE_YMAX_PLUG
535
+//#define USE_ZMAX_PLUG
537 536
 
538 537
 // Enable pullup for all endstops to prevent a floating state
539 538
 #define ENDSTOPPULLUPS
@@ -641,7 +640,7 @@
641 640
  * Override with M92
642 641
  *                                      X, Y, Z, E0 [, E1[, E2[, E3[, E4[, E5]]]]]
643 642
  */
644
-#define DEFAULT_AXIS_STEPS_PER_UNIT   { 800, 800, 4000, 500 }
643
+#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 4000, 500 }
645 644
 
646 645
 /**
647 646
  * Default Max Feed Rate (mm/s)
@@ -1875,6 +1874,15 @@
1875 1874
 //#define EXTENSIBLE_UI
1876 1875
 
1877 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1878 1886
 //============================  Other Controllers  ============================
1879 1887
 //=============================================================================
1880 1888
 

+ 1
- 1
Marlin/src/config/examples/Mks/Robin/Configuration_adv.h View File

@@ -841,7 +841,7 @@
841 841
   #define STATUS_HOTEND_ANIM          // Use a second bitmap to indicate hotend heating
842 842
   #define STATUS_BED_ANIM             // Use a second bitmap to indicate bed heating
843 843
   //#define STATUS_ALT_BED_BITMAP     // Use the alternative bed bitmap
844
-  //#define STATUS_ALT_FAN_BITMAP     // Use the alternate fan bitmap
844
+  //#define STATUS_ALT_FAN_BITMAP     // Use the alternative fan bitmap
845 845
   //#define STATUS_FAN_FRAMES 3       // :[0,1,2,3,4] Number of fan animation frames
846 846
   //#define STATUS_HEAT_PERCENT       // Show heating in a progress bar
847 847
 

+ 9
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h View File

@@ -1923,6 +1923,15 @@ Black rubber belt(MXL), 18 - tooth aluminium pulley : 87.489 step per mm (Huxley
1923 1923
 //#define EXTENSIBLE_UI
1924 1924
 
1925 1925
 //=============================================================================
1926
+//=============================== Graphical TFTs ==============================
1927
+//=============================================================================
1928
+
1929
+//
1930
+// MKS Robin 320x240 color display
1931
+//
1932
+//#define MKS_ROBIN_TFT
1933
+
1934
+//=============================================================================
1926 1935
 //============================  Other Controllers  ============================
1927 1936
 //=============================================================================
1928 1937
 

+ 9
- 0
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/RigidBot/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/SCARA/Configuration.h View File

@@ -1887,6 +1887,15 @@
1887 1887
 //#define EXTENSIBLE_UI
1888 1888
 
1889 1889
 //=============================================================================
1890
+//=============================== Graphical TFTs ==============================
1891
+//=============================================================================
1892
+
1893
+//
1894
+// MKS Robin 320x240 color display
1895
+//
1896
+//#define MKS_ROBIN_TFT
1897
+
1898
+//=============================================================================
1890 1899
 //============================  Other Controllers  ============================
1891 1900
 //=============================================================================
1892 1901
 

+ 9
- 0
Marlin/src/config/examples/STM32F10/Configuration.h View File

@@ -1876,6 +1876,15 @@
1876 1876
 //#define EXTENSIBLE_UI
1877 1877
 
1878 1878
 //=============================================================================
1879
+//=============================== Graphical TFTs ==============================
1880
+//=============================================================================
1881
+
1882
+//
1883
+// MKS Robin 320x240 color display
1884
+//
1885
+//#define MKS_ROBIN_TFT
1886
+
1887
+//=============================================================================
1879 1888
 //============================  Other Controllers  ============================
1880 1889
 //=============================================================================
1881 1890
 

+ 9
- 0
Marlin/src/config/examples/STM32F4/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Sanguinololu/Configuration.h View File

@@ -1905,6 +1905,15 @@
1905 1905
 //#define EXTENSIBLE_UI
1906 1906
 
1907 1907
 //=============================================================================
1908
+//=============================== Graphical TFTs ==============================
1909
+//=============================================================================
1910
+
1911
+//
1912
+// MKS Robin 320x240 color display
1913
+//
1914
+//#define MKS_ROBIN_TFT
1915
+
1916
+//=============================================================================
1908 1917
 //============================  Other Controllers  ============================
1909 1918
 //=============================================================================
1910 1919
 

+ 9
- 0
Marlin/src/config/examples/TheBorg/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/TinyBoy2/Configuration.h View File

@@ -1930,6 +1930,15 @@
1930 1930
 //#define EXTENSIBLE_UI
1931 1931
 
1932 1932
 //=============================================================================
1933
+//=============================== Graphical TFTs ==============================
1934
+//=============================================================================
1935
+
1936
+//
1937
+// MKS Robin 320x240 color display
1938
+//
1939
+//#define MKS_ROBIN_TFT
1940
+
1941
+//=============================================================================
1933 1942
 //============================  Other Controllers  ============================
1934 1943
 //=============================================================================
1935 1944
 

+ 9
- 0
Marlin/src/config/examples/Tronxy/X1/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Tronxy/X3A/Configuration.h View File

@@ -1878,6 +1878,15 @@
1878 1878
 //#define EXTENSIBLE_UI
1879 1879
 
1880 1880
 //=============================================================================
1881
+//=============================== Graphical TFTs ==============================
1882
+//=============================================================================
1883
+
1884
+//
1885
+// MKS Robin 320x240 color display
1886
+//
1887
+//#define MKS_ROBIN_TFT
1888
+
1889
+//=============================================================================
1881 1890
 //============================  Other Controllers  ============================
1882 1891
 //=============================================================================
1883 1892
 

+ 9
- 0
Marlin/src/config/examples/Tronxy/X5S/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Tronxy/XY100/Configuration.h View File

@@ -1885,6 +1885,15 @@
1885 1885
 //#define EXTENSIBLE_UI
1886 1886
 
1887 1887
 //=============================================================================
1888
+//=============================== Graphical TFTs ==============================
1889
+//=============================================================================
1890
+
1891
+//
1892
+// MKS Robin 320x240 color display
1893
+//
1894
+//#define MKS_ROBIN_TFT
1895
+
1896
+//=============================================================================
1888 1897
 //============================  Other Controllers  ============================
1889 1898
 //=============================================================================
1890 1899
 

+ 9
- 0
Marlin/src/config/examples/UltiMachine/Archim1/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/VORONDesign/Configuration.h View File

@@ -1883,6 +1883,15 @@
1883 1883
 //#define EXTENSIBLE_UI
1884 1884
 
1885 1885
 //=============================================================================
1886
+//=============================== Graphical TFTs ==============================
1887
+//=============================================================================
1888
+
1889
+//
1890
+// MKS Robin 320x240 color display
1891
+//
1892
+//#define MKS_ROBIN_TFT
1893
+
1894
+//=============================================================================
1886 1895
 //============================  Other Controllers  ============================
1887 1896
 //=============================================================================
1888 1897
 

+ 9
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration.h View File

@@ -1909,6 +1909,15 @@
1909 1909
 //#define EXTENSIBLE_UI
1910 1910
 
1911 1911
 //=============================================================================
1912
+//=============================== Graphical TFTs ==============================
1913
+//=============================================================================
1914
+
1915
+//
1916
+// MKS Robin 320x240 color display
1917
+//
1918
+//#define MKS_ROBIN_TFT
1919
+
1920
+//=============================================================================
1912 1921
 //============================  Other Controllers  ============================
1913 1922
 //=============================================================================
1914 1923
 

+ 9
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h View File

@@ -1887,6 +1887,15 @@
1887 1887
 //#define EXTENSIBLE_UI
1888 1888
 
1889 1889
 //=============================================================================
1890
+//=============================== Graphical TFTs ==============================
1891
+//=============================================================================
1892
+
1893
+//
1894
+// MKS Robin 320x240 color display
1895
+//
1896
+//#define MKS_ROBIN_TFT
1897
+
1898
+//=============================================================================
1890 1899
 //============================  Other Controllers  ============================
1891 1900
 //=============================================================================
1892 1901
 

+ 9
- 0
Marlin/src/config/examples/adafruit/ST7565/Configuration.h View File

@@ -1874,6 +1874,15 @@
1874 1874
 //#define EXTENSIBLE_UI
1875 1875
 
1876 1876
 //=============================================================================
1877
+//=============================== Graphical TFTs ==============================
1878
+//=============================================================================
1879
+
1880
+//
1881
+// MKS Robin 320x240 color display
1882
+//
1883
+//#define MKS_ROBIN_TFT
1884
+
1885
+//=============================================================================
1877 1886
 //============================  Other Controllers  ============================
1878 1887
 //=============================================================================
1879 1888
 

+ 9
- 0
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h View File

@@ -2064,6 +2064,15 @@
2064 2064
 //#define EXTENSIBLE_UI
2065 2065
 
2066 2066
 //=============================================================================
2067
+//=============================== Graphical TFTs ==============================
2068
+//=============================================================================
2069
+
2070
+//
2071
+// MKS Robin 320x240 color display
2072
+//
2073
+//#define MKS_ROBIN_TFT
2074
+
2075
+//=============================================================================
2067 2076
 //============================  Other Controllers  ============================
2068 2077
 //=============================================================================
2069 2078
 

+ 9
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h View File

@@ -2002,6 +2002,15 @@
2002 2002
 //#define EXTENSIBLE_UI
2003 2003
 
2004 2004
 //=============================================================================
2005
+//=============================== Graphical TFTs ==============================
2006
+//=============================================================================
2007
+
2008
+//
2009
+// MKS Robin 320x240 color display
2010
+//
2011
+//#define MKS_ROBIN_TFT
2012
+
2013
+//=============================================================================
2005 2014
 //============================  Other Controllers  ============================
2006 2015
 //=============================================================================
2007 2016
 

+ 9
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h View File

@@ -2001,6 +2001,15 @@
2001 2001
 //#define EXTENSIBLE_UI
2002 2002
 
2003 2003
 //=============================================================================
2004
+//=============================== Graphical TFTs ==============================
2005
+//=============================================================================
2006
+
2007
+//
2008
+// MKS Robin 320x240 color display
2009
+//
2010
+//#define MKS_ROBIN_TFT
2011
+
2012
+//=============================================================================
2004 2013
 //============================  Other Controllers  ============================
2005 2014
 //=============================================================================
2006 2015
 

+ 9
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h View File

@@ -2001,6 +2001,15 @@
2001 2001
 //#define EXTENSIBLE_UI
2002 2002
 
2003 2003
 //=============================================================================
2004
+//=============================== Graphical TFTs ==============================
2005
+//=============================================================================
2006
+
2007
+//
2008
+// MKS Robin 320x240 color display
2009
+//
2010
+//#define MKS_ROBIN_TFT
2011
+
2012
+//=============================================================================
2004 2013
 //============================  Other Controllers  ============================
2005 2014
 //=============================================================================
2006 2015
 

+ 9
- 0
Marlin/src/config/examples/delta/Geeetech/Rostock 301/Configuration.h View File

@@ -2003,6 +2003,15 @@
2003 2003
 //#define EXTENSIBLE_UI
2004 2004
 
2005 2005
 //=============================================================================
2006
+//=============================== Graphical TFTs ==============================
2007
+//=============================================================================
2008
+
2009
+//
2010
+// MKS Robin 320x240 color display
2011
+//
2012
+//#define MKS_ROBIN_TFT
2013
+
2014
+//=============================================================================
2006 2015
 //============================  Other Controllers  ============================
2007 2016
 //=============================================================================
2008 2017
 

+ 9
- 0
Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h View File

@@ -2004,6 +2004,15 @@
2004 2004
 //#define EXTENSIBLE_UI
2005 2005
 
2006 2006
 //=============================================================================
2007
+//=============================== Graphical TFTs ==============================
2008
+//=============================================================================
2009
+
2010
+//
2011
+// MKS Robin 320x240 color display
2012
+//
2013
+//#define MKS_ROBIN_TFT
2014
+
2015
+//=============================================================================
2007 2016
 //============================  Other Controllers  ============================
2008 2017
 //=============================================================================
2009 2018
 

+ 9
- 0
Marlin/src/config/examples/delta/MKS/SBASE/Configuration.h View File

@@ -1989,6 +1989,15 @@
1989 1989
 //#define EXTENSIBLE_UI
1990 1990
 
1991 1991
 //=============================================================================
1992
+//=============================== Graphical TFTs ==============================
1993
+//=============================================================================
1994
+
1995
+//
1996
+// MKS Robin 320x240 color display
1997
+//
1998
+//#define MKS_ROBIN_TFT
1999
+
2000
+//=============================================================================
1992 2001
 //============================  Other Controllers  ============================
1993 2002
 //=============================================================================
1994 2003
 

+ 9
- 0
Marlin/src/config/examples/delta/Tevo Little Monster/Configuration.h View File

@@ -1993,6 +1993,15 @@
1993 1993
 //#define EXTENSIBLE_UI
1994 1994
 
1995 1995
 //=============================================================================
1996
+//=============================== Graphical TFTs ==============================
1997
+//=============================================================================
1998
+
1999
+//
2000
+// MKS Robin 320x240 color display
2001
+//
2002
+//#define MKS_ROBIN_TFT
2003
+
2004
+//=============================================================================
1996 2005
 //============================  Other Controllers  ============================
1997 2006
 //=============================================================================
1998 2007
 

+ 9
- 0
Marlin/src/config/examples/delta/generic/Configuration.h View File

@@ -1989,6 +1989,15 @@
1989 1989
 //#define EXTENSIBLE_UI
1990 1990
 
1991 1991
 //=============================================================================
1992
+//=============================== Graphical TFTs ==============================
1993
+//=============================================================================
1994
+
1995
+//
1996
+// MKS Robin 320x240 color display
1997
+//
1998
+//#define MKS_ROBIN_TFT
1999
+
2000
+//=============================================================================
1992 2001
 //============================  Other Controllers  ============================
1993 2002
 //=============================================================================
1994 2003
 

+ 9
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration.h View File

@@ -1991,6 +1991,15 @@
1991 1991
 //#define EXTENSIBLE_UI
1992 1992
 
1993 1993
 //=============================================================================
1994
+//=============================== Graphical TFTs ==============================
1995
+//=============================================================================
1996
+
1997
+//
1998
+// MKS Robin 320x240 color display
1999
+//
2000
+//#define MKS_ROBIN_TFT
2001
+
2002
+//=============================================================================
1994 2003
 //============================  Other Controllers  ============================
1995 2004
 //=============================================================================
1996 2005
 

+ 9
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration.h View File

@@ -1992,6 +1992,15 @@
1992 1992
 //#define EXTENSIBLE_UI
1993 1993
 
1994 1994
 //=============================================================================
1995
+//=============================== Graphical TFTs ==============================
1996
+//=============================================================================
1997
+
1998
+//
1999
+// MKS Robin 320x240 color display
2000
+//
2001
+//#define MKS_ROBIN_TFT
2002
+
2003
+//=============================================================================
1995 2004
 //============================  Other Controllers  ============================
1996 2005
 //=============================================================================
1997 2006
 

+ 9
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration.h View File

@@ -1992,6 +1992,15 @@
1992 1992
 //#define EXTENSIBLE_UI
1993 1993
 
1994 1994
 //=============================================================================
1995
+//=============================== Graphical TFTs ==============================
1996
+//=============================================================================
1997
+
1998
+//
1999
+// MKS Robin 320x240 color display
2000
+//
2001
+//#define MKS_ROBIN_TFT
2002
+
2003
+//=============================================================================
1995 2004
 //============================  Other Controllers  ============================
1996 2005
 //=============================================================================
1997 2006
 

+ 9
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h View File

@@ -1888,6 +1888,15 @@
1888 1888
 //#define EXTENSIBLE_UI
1889 1889
 
1890 1890
 //=============================================================================
1891
+//=============================== Graphical TFTs ==============================
1892
+//=============================================================================
1893
+
1894
+//
1895
+// MKS Robin 320x240 color display
1896
+//
1897
+//#define MKS_ROBIN_TFT
1898
+
1899
+//=============================================================================
1891 1900
 //============================  Other Controllers  ============================
1892 1901
 //=============================================================================
1893 1902
 

+ 9
- 0
Marlin/src/config/examples/makibox/Configuration.h View File

@@ -1877,6 +1877,15 @@
1877 1877
 //#define EXTENSIBLE_UI
1878 1878
 
1879 1879
 //=============================================================================
1880
+//=============================== Graphical TFTs ==============================
1881
+//=============================================================================
1882
+
1883
+//
1884
+// MKS Robin 320x240 color display
1885
+//
1886
+//#define MKS_ROBIN_TFT
1887
+
1888
+//=============================================================================
1880 1889
 //============================  Other Controllers  ============================
1881 1890
 //=============================================================================
1882 1891
 

+ 9
- 0
Marlin/src/config/examples/stm32f103ret6/Configuration.h View File

@@ -1876,6 +1876,15 @@
1876 1876
 //#define EXTENSIBLE_UI
1877 1877
 
1878 1878
 //=============================================================================
1879
+//=============================== Graphical TFTs ==============================
1880
+//=============================================================================
1881
+
1882
+//
1883
+// MKS Robin 320x240 color display
1884
+//
1885
+//#define MKS_ROBIN_TFT
1886
+
1887
+//=============================================================================
1879 1888
 //============================  Other Controllers  ============================
1880 1889
 //=============================================================================
1881 1890
 

+ 9
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration.h View File

@@ -1869,6 +1869,15 @@
1869 1869
 //#define EXTENSIBLE_UI
1870 1870
 
1871 1871
 //=============================================================================
1872
+//=============================== Graphical TFTs ==============================
1873
+//=============================================================================
1874
+
1875
+//
1876
+// MKS Robin 320x240 color display
1877
+//
1878
+//#define MKS_ROBIN_TFT
1879
+
1880
+//=============================================================================
1872 1881
 //============================  Other Controllers  ============================
1873 1882
 //=============================================================================
1874 1883
 

+ 9
- 0
Marlin/src/config/examples/wt150/Configuration.h View File

@@ -1879,6 +1879,15 @@
1879 1879
 //#define EXTENSIBLE_UI
1880 1880
 
1881 1881
 //=============================================================================
1882
+//=============================== Graphical TFTs ==============================
1883
+//=============================================================================
1884
+
1885
+//
1886
+// MKS Robin 320x240 color display
1887
+//
1888
+//#define MKS_ROBIN_TFT
1889
+
1890
+//=============================================================================
1882 1891
 //============================  Other Controllers  ============================
1883 1892
 //=============================================================================
1884 1893
 

+ 9
- 0
Marlin/src/inc/Conditionals_LCD.h View File

@@ -209,6 +209,15 @@
209 209
    #define NEWPANEL
210 210
  #endif
211 211
 
212
+ /**
213
+  * FSMC/SPI TFT PANELS
214
+  */
215
+ #if ENABLED(MKS_ROBIN_TFT)
216
+   #define ULTRA_LCD
217
+   #define DOGLCD
218
+   #define ULTIPANEL
219
+ #endif
220
+
212 221
 /**
213 222
  * I2C PANELS
214 223
  */

+ 13
- 0
Marlin/src/lcd/dogm/HAL_LCD_class_defines.h View File

@@ -81,3 +81,16 @@ public:
81 81
   : U8GLIB(&u8g_dev_ssd1306_128x64_2x_i2c_2_wire, options)
82 82
   {  }
83 83
 };
84
+
85
+//
86
+// Very basic support for 320x240 TFT screen
87
+// Tested on MKS Robin TFT_V2.0 with ST7789V controller
88
+//
89
+extern u8g_dev_t u8g_dev_tft_320x240_upscale_from_128x64;
90
+
91
+class U8GLIB_TFT_320X240_UPSCALE_FROM_128X64 : public U8GLIB {
92
+public:
93
+  U8GLIB_TFT_320X240_UPSCALE_FROM_128X64(uint8_t cs, uint8_t rs, uint8_t reset = U8G_PIN_NONE)
94
+  : U8GLIB(&u8g_dev_tft_320x240_upscale_from_128x64, cs, rs, reset)
95
+  { }
96
+};

+ 9
- 0
Marlin/src/lcd/dogm/HAL_LCD_com_defines.h View File

@@ -47,6 +47,12 @@
47 47
   uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
48 48
   #define U8G_COM_SSD_I2C_HAL u8g_com_arduino_ssd_i2c_fn
49 49
 
50
+  #if defined(STM32F1) || defined(STM32F1xx)
51
+    uint8_t u8g_com_stm32duino_fsmc_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
52
+    #define U8G_COM_HAL_FSMC_FN u8g_com_stm32duino_fsmc_fn
53
+  #else
54
+    #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
55
+  #endif
50 56
 #elif TARGET_LPC1768
51 57
   uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
52 58
   #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_LPC1768_sw_spi_fn
@@ -63,6 +69,8 @@
63 69
   uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
64 70
   #define U8G_COM_SSD_I2C_HAL u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
65 71
 
72
+  #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
73
+
66 74
 #else  // need to give them some definition or else get compiler errors
67 75
   uint8_t u8g_com_null_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
68 76
   #define U8G_COM_HAL_SW_SPI_FN u8g_com_null_fn
@@ -70,4 +78,5 @@
70 78
   #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_null_fn
71 79
   #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_null_fn
72 80
   #define U8G_COM_SSD_I2C_HAL u8g_com_null_fn
81
+  #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
73 82
 #endif

+ 177
- 0
Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp View File

@@ -0,0 +1,177 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016, 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+/*
24
+
25
+  u8g_dev_tft_320x240_upscale_from_128x64.cpp
26
+
27
+  Universal 8bit Graphics Library
28
+
29
+  Copyright (c) 2011, olikraus@gmail.com
30
+  All rights reserved.
31
+
32
+  Redistribution and use in source and binary forms, with or without modification,
33
+  are permitted provided that the following conditions are met:
34
+
35
+  * Redistributions of source code must retain the above copyright notice, this list
36
+    of conditions and the following disclaimer.
37
+
38
+  * Redistributions in binary form must reproduce the above copyright notice, this
39
+    list of conditions and the following disclaimer in the documentation and/or other
40
+    materials provided with the distribution.
41
+
42
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
43
+  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
44
+  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
45
+  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
46
+  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
47
+  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48
+  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
49
+  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
50
+  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
51
+  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
52
+  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
54
+  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55
+
56
+*/
57
+
58
+#include "../../inc/MarlinConfig.h"
59
+
60
+#if HAS_GRAPHICAL_LCD
61
+
62
+#include "U8glib.h"
63
+#include "HAL_LCD_com_defines.h"
64
+#include "string.h"
65
+
66
+#define WIDTH 128
67
+#define HEIGHT 64
68
+#define PAGE_HEIGHT 8
69
+
70
+#define X_MIN 32
71
+#define Y_MIN 56
72
+#define X_MAX (X_MIN + 2 * WIDTH  - 1)
73
+#define Y_MAX (Y_MIN + 2 * HEIGHT - 1)
74
+
75
+#define LCD_COLUMN      0x2A   /* Colomn address register */
76
+#define LCD_ROW         0x2B   /* Row address register */
77
+#define LCD_WRITE_RAM   0x2C
78
+
79
+static uint32_t lcd_id = 0;
80
+
81
+#define U8G_ESC_DATA(x) (uint8_t)(x >> 8), (uint8_t)(x & 0xFF)
82
+
83
+static const uint8_t page_first_sequence[] = {
84
+  U8G_ESC_ADR(0), LCD_COLUMN, U8G_ESC_ADR(1), U8G_ESC_DATA(X_MIN), U8G_ESC_DATA(X_MAX),
85
+  U8G_ESC_ADR(0), LCD_ROW,    U8G_ESC_ADR(1), U8G_ESC_DATA(Y_MIN), U8G_ESC_DATA(Y_MAX),
86
+  U8G_ESC_ADR(0), LCD_WRITE_RAM, U8G_ESC_ADR(1),
87
+  U8G_ESC_END
88
+};
89
+
90
+static const uint8_t clear_screen_sequence[] = {
91
+  U8G_ESC_ADR(0), LCD_COLUMN, U8G_ESC_ADR(1), 0x00, 0x00, 0x01, 0x3F,
92
+  U8G_ESC_ADR(0), LCD_ROW,    U8G_ESC_ADR(1), 0x00, 0x00, 0x00, 0xEF,
93
+  U8G_ESC_ADR(0), LCD_WRITE_RAM, U8G_ESC_ADR(1),
94
+  U8G_ESC_END
95
+};
96
+
97
+static const uint8_t st7789v_init_sequence[] = { // 0x8552 - ST7789V
98
+  U8G_ESC_ADR(0),
99
+  0x10,
100
+  U8G_ESC_DLY(10),
101
+  0x01,
102
+  U8G_ESC_DLY(100), U8G_ESC_DLY(100),
103
+  0x11,
104
+  U8G_ESC_DLY(120),
105
+  0x36, U8G_ESC_ADR(1), 0xA0,
106
+  U8G_ESC_ADR(0), 0x3A, U8G_ESC_ADR(1), 0x05,
107
+  U8G_ESC_ADR(0), LCD_COLUMN, U8G_ESC_ADR(1), 0x00, 0x00, 0x01, 0x3F,
108
+  U8G_ESC_ADR(0), LCD_ROW,    U8G_ESC_ADR(1), 0x00, 0x00, 0x00, 0xEF,
109
+  U8G_ESC_ADR(0), 0xB2, U8G_ESC_ADR(1), 0x0C, 0x0C, 0x00, 0x33, 0x33,
110
+  U8G_ESC_ADR(0), 0xB7, U8G_ESC_ADR(1), 0x35,
111
+  U8G_ESC_ADR(0), 0xBB, U8G_ESC_ADR(1), 0x1F,
112
+  U8G_ESC_ADR(0), 0xC0, U8G_ESC_ADR(1), 0x2C,
113
+  U8G_ESC_ADR(0), 0xC2, U8G_ESC_ADR(1), 0x01, 0xC3,
114
+  U8G_ESC_ADR(0), 0xC4, U8G_ESC_ADR(1), 0x20,
115
+  U8G_ESC_ADR(0), 0xC6, U8G_ESC_ADR(1), 0x0F,
116
+  U8G_ESC_ADR(0), 0xD0, U8G_ESC_ADR(1), 0xA4, 0xA1,
117
+  U8G_ESC_ADR(0), 0xE0, U8G_ESC_ADR(1), 0xD0, 0x08, 0x11, 0x08, 0x0C, 0x15, 0x39, 0x33, 0x50, 0x36, 0x13, 0x14, 0x29, 0x2D,
118
+  U8G_ESC_ADR(0), 0xE1, U8G_ESC_ADR(1), 0xD0, 0x08, 0x10, 0x08, 0x06, 0x06, 0x39, 0x44, 0x51, 0x0B, 0x16, 0x14, 0x2F, 0x31,
119
+  U8G_ESC_ADR(0), 0x29, 0x11, 0x35, U8G_ESC_ADR(1), 0x00,
120
+  U8G_ESC_END
121
+};
122
+
123
+uint8_t u8g_dev_tft_320x240_upscale_from_128x64_fn(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, void *arg) {
124
+  u8g_pb_t *pb = (u8g_pb_t *)(dev->dev_mem);
125
+  uint16_t buffer[256];
126
+  uint32_t i, j, k;
127
+
128
+  switch(msg) {
129
+    case U8G_DEV_MSG_INIT:
130
+      dev->com_fn(u8g, U8G_COM_MSG_INIT, U8G_SPI_CLK_CYCLE_NONE, &lcd_id);
131
+      if (lcd_id == 0x040404) return 0; // No connected display on FSMC
132
+      if (lcd_id == 0xFFFFFF) return 0; // No connected display on SPI
133
+
134
+      memset(buffer, 0x00, sizeof(buffer));
135
+
136
+      if ((lcd_id & 0xFFFF) == 0x8552)  // ST7789V
137
+        u8g_WriteEscSeqP(u8g, dev, st7789v_init_sequence);
138
+
139
+      u8g_WriteEscSeqP(u8g, dev, clear_screen_sequence);
140
+      for (i = 0; i < 960; i++)
141
+        u8g_WriteSequence(u8g, dev, 160, (uint8_t *)buffer);
142
+      break;
143
+
144
+    case U8G_DEV_MSG_STOP:
145
+      break;
146
+
147
+    case U8G_DEV_MSG_PAGE_FIRST:
148
+      u8g_WriteEscSeqP(u8g, dev, page_first_sequence);
149
+      break;
150
+
151
+    case U8G_DEV_MSG_PAGE_NEXT:
152
+      for (j = 0; j < 8; j++) {
153
+        k = 0;
154
+        for (i = 0; i < (uint32_t)pb->width; i++) {
155
+          const uint8_t b = *(((uint8_t *)pb->buf) + i);
156
+          const uint16_t c = TEST(b, j) ? 0x7FFF : 0x0000;
157
+          buffer[k++] = c; buffer[k++] = c;
158
+        }
159
+        for (k = 0; k < 2; k++) {
160
+          u8g_WriteSequence(u8g, dev, 128, (uint8_t*)buffer);
161
+          u8g_WriteSequence(u8g, dev, 128, (uint8_t*)&(buffer[64]));
162
+          u8g_WriteSequence(u8g, dev, 128, (uint8_t*)&(buffer[128]));
163
+          u8g_WriteSequence(u8g, dev, 128, (uint8_t*)&(buffer[192]));
164
+        }
165
+      }
166
+      break;
167
+
168
+    case U8G_DEV_MSG_SLEEP_ON:
169
+    case U8G_DEV_MSG_SLEEP_OFF:
170
+      return 1;
171
+  }
172
+  return u8g_dev_pb8v1_base_fn(u8g, dev, msg, arg);
173
+}
174
+
175
+U8G_PB_DEV(u8g_dev_tft_320x240_upscale_from_128x64, WIDTH, HEIGHT, PAGE_HEIGHT, u8g_dev_tft_320x240_upscale_from_128x64_fn, U8G_COM_HAL_FSMC_FN);
176
+
177
+#endif // HAS_GRAPHICAL_LCD

+ 4
- 0
Marlin/src/lcd/dogm/ultralcd_DOGM.h View File

@@ -117,6 +117,10 @@
117 117
   // Connected via motherboard header
118 118
   #define U8G_CLASS U8GLIB_SH1106_128X64
119 119
   #define U8G_PARAM DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, LCD_PINS_DC, LCD_PINS_RS
120
+#elif ENABLED(MKS_ROBIN_TFT)
121
+  // Unspecified 320x240 TFT pre-initialized by built-in bootloader
122
+  #define U8G_CLASS U8GLIB_TFT_320X240_UPSCALE_FROM_128X64
123
+  #define U8G_PARAM FSMC_CS_PIN, FSMC_RS_PIN
120 124
 #else
121 125
   // for regular DOGM128 display with HW-SPI
122 126
   //#define U8G_CLASS U8GLIB_DOGM128

+ 22
- 7
Marlin/src/pins/pins_MKS_ROBIN.h View File

@@ -32,7 +32,7 @@
32 32
   #error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
33 33
 #endif
34 34
 
35
-#define BOARD_NAME "MKS Robin / STM32F103ZET6"
35
+#define BOARD_NAME "MKS Robin"
36 36
 
37 37
 //
38 38
 // Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
@@ -40,6 +40,14 @@
40 40
 #define DISABLE_DEBUG
41 41
 
42 42
 //
43
+// Servos
44
+//
45
+#define SERVO0_PIN         PC3   // XS1 - 5
46
+#define SERVO1_PIN         PA1   // XS1 - 6
47
+#define SERVO2_PIN         PF9   // XS2 - 5
48
+#define SERVO3_PIN         PF8   // XS2 - 6
49
+
50
+//
43 51
 // Limit Switches
44 52
 //
45 53
 #define X_MIN_PIN          PB12
@@ -88,13 +96,8 @@
88 96
 
89 97
 #define FAN_PIN            PA7   // FAN
90 98
 
91
-#define SERVO0_PIN         PC3  // XS1 - 5
92
-#define SERVO1_PIN         PA1  // XS1 - 6
93
-#define SERVO2_PIN         PF9  // XS2 - 5
94
-#define SERVO3_PIN         PF8  // XS2 - 6
95
-
96 99
 /**
97
- * Note: MKS Robin board is using SPI2 interface, make sure your stm32duino library is configured accordingly
100
+ * Note: MKS Robin board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
98 101
  */
99 102
 //#define MAX6675_SS_PIN     PE5  // TC1 - CS1
100 103
 //#define MAX6675_SS_PIN     PE6  // TC2 - CS2
@@ -106,4 +109,16 @@
106 109
 #define BEEPER_PIN         PC13
107 110
 #define LED_PIN            PB2
108 111
 
112
+/**
113
+ * Note: MKS Robin TFT screens may have different TFT controllers
114
+ * If the screen stays white, disable 'LCD_RESET_PIN' to rely on the bootloader to do screen initialization.
115
+ *
116
+ * Enabling 'LCD_RESET_PIN' causes flickering when entering the LCD menu due to LCD controller reset.
117
+ * Reset feature was designed to "revive the LCD if static electricity killed it."
118
+ */
119
+//#define LCD_RESET_PIN      PF6
120
+#define LCD_BACKLIGHT_PIN  PG11
121
+#define FSMC_CS_PIN        PG12  // NE4
122
+#define FSMC_RS_PIN        PF0   // A0
123
+
109 124
 #define SDSS               -1

Loading…
Cancel
Save