Przeglądaj źródła

✨ WYH L12864 LCD (Alfawise Ex8) (#22863)

VragVideo 2 lat temu
rodzic
commit
9bb562f40a
No account linked to committer's email address
56 zmienionych plików z 180 dodań i 100 usunięć
  1. 5
    0
      Marlin/Configuration.h
  2. 1
    1
      Marlin/Configuration_adv.h
  3. 2
    2
      Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_st7920_sw_spi.cpp
  4. 2
    2
      Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi.cpp
  5. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_sw_spi.cpp
  6. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_sw_spi.cpp
  7. 2
    2
      Marlin/src/HAL/NATIVE_SIM/u8g/u8g_com_st7920_sw_spi.cpp
  8. 2
    2
      Marlin/src/HAL/NATIVE_SIM/u8g/u8g_com_sw_spi.cpp
  9. 41
    38
      Marlin/src/inc/Conditionals_LCD.h
  10. 2
    0
      Marlin/src/inc/Conditionals_post.h
  11. 2
    1
      Marlin/src/inc/SanityCheck.h
  12. 3
    3
      Marlin/src/lcd/dogm/marlinui_DOGM.h
  13. 4
    1
      Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp
  14. 2
    2
      Marlin/src/lcd/dogm/ultralcd_st7920_u8glib_rrd_AVR.cpp
  15. 34
    1
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
  16. 1
    1
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
  17. 1
    1
      Marlin/src/pins/mega/pins_SILVER_GATE.h
  18. 1
    1
      Marlin/src/pins/pins.h
  19. 1
    1
      Marlin/src/pins/pins_postprocess.h
  20. 1
    1
      Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
  21. 1
    1
      Marlin/src/pins/rambo/pins_EINSY_RETRO.h
  22. 1
    1
      Marlin/src/pins/rambo/pins_MINIRAMBO.h
  23. 1
    1
      Marlin/src/pins/rambo/pins_RAMBO.h
  24. 1
    1
      Marlin/src/pins/ramps/pins_3DRAG.h
  25. 1
    1
      Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
  26. 1
    1
      Marlin/src/pins/ramps/pins_DAGOMA_F5.h
  27. 1
    1
      Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
  28. 1
    1
      Marlin/src/pins/sanguino/pins_MELZI.h
  29. 1
    1
      Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h
  30. 1
    1
      Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h
  31. 1
    1
      Marlin/src/pins/sanguino/pins_MELZI_V2.h
  32. 1
    1
      Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h
  33. 1
    1
      Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
  34. 1
    1
      Marlin/src/pins/stm32f1/pins_CCROBOT_MEEB_3DP.h
  35. 1
    1
      Marlin/src/pins/stm32f1/pins_FLY_MINI.h
  36. 1
    1
      Marlin/src/pins/stm32f1/pins_GTM32_MINI.h
  37. 1
    1
      Marlin/src/pins/stm32f1/pins_GTM32_MINI_A30.h
  38. 1
    1
      Marlin/src/pins/stm32f1/pins_GTM32_PRO_VB.h
  39. 1
    1
      Marlin/src/pins/stm32f1/pins_GTM32_REV_B.h
  40. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h
  41. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h
  42. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h
  43. 1
    1
      Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h
  44. 1
    1
      Marlin/src/pins/stm32f1/pins_ZM3E4_V1_0.h
  45. 1
    1
      Marlin/src/pins/stm32f1/pins_ZM3E4_V2_0.h
  46. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
  47. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_E3_RRF.h
  48. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
  49. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h
  50. 34
    1
      Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h
  51. 1
    1
      Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h
  52. 1
    1
      Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
  53. 1
    1
      Marlin/src/pins/stm32f4/pins_FYSETC_CHEETAH_V20.h
  54. 1
    1
      Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
  55. 1
    1
      Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
  56. 1
    1
      Marlin/src/pins/stm32f4/pins_VAKE403D.h

+ 5
- 0
Marlin/Configuration.h Wyświetl plik

@@ -2377,6 +2377,11 @@
2377 2377
 //#define miniVIKI
2378 2378
 
2379 2379
 //
2380
+// Alfawise Ex8 printer LCD marked as WYH L12864 COG
2381
+//
2382
+//#define WYH_L12864
2383
+
2384
+//
2380 2385
 // MakerLab Mini Panel with graphic
2381 2386
 // controller and SD support - https://reprap.org/wiki/Mini_panel
2382 2387
 //

+ 1
- 1
Marlin/Configuration_adv.h Wyświetl plik

@@ -1603,7 +1603,7 @@
1603 1603
    * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
1604 1604
    * This will prevent position updates from being displayed.
1605 1605
    */
1606
-  #if ENABLED(U8GLIB_ST7920)
1606
+  #if IS_U8GLIB_ST7920
1607 1607
     // Enable this option and reduce the value to optimize screen updates.
1608 1608
     // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
1609 1609
     //#define DOGM_SPI_DELAY_US 5

+ 2
- 2
Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_st7920_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfigPre.h"
59 59
 
60
-#if ENABLED(U8GLIB_ST7920)
60
+#if IS_U8GLIB_ST7920
61 61
 
62 62
 #include "../../../inc/MarlinConfig.h"
63 63
 #include "../../shared/Delay.h"
@@ -182,5 +182,5 @@ uint8_t u8g_com_HAL_DUE_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_va
182 182
   }
183 183
 #endif // LIGHTWEIGHT_UI
184 184
 
185
-#endif // U8GLIB_ST7920
185
+#endif // IS_U8GLIB_ST7920
186 186
 #endif // ARDUINO_ARCH_SAM

+ 2
- 2
Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfigPre.h"
59 59
 
60
-#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
60
+#if HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
61 61
 
62 62
 #include "u8g_com_HAL_DUE_sw_spi_shared.h"
63 63
 
@@ -141,5 +141,5 @@ uint8_t u8g_com_HAL_DUE_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void
141 141
   return 1;
142 142
 }
143 143
 
144
-#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
144
+#endif // HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
145 145
 #endif // ARDUINO_ARCH_SAM

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfigPre.h"
59 59
 
60
-#if ENABLED(U8GLIB_ST7920)
60
+#if IS_U8GLIB_ST7920
61 61
 
62 62
 #include <U8glib-HAL.h>
63 63
 #include <SoftwareSPI.h>
@@ -143,5 +143,5 @@ uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t ar
143 143
   return 1;
144 144
 }
145 145
 
146
-#endif // U8GLIB_ST7920
146
+#endif // IS_U8GLIB_ST7920
147 147
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfigPre.h"
59 59
 
60
-#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
60
+#if HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
61 61
 
62 62
 #include <SoftwareSPI.h>
63 63
 #include "../../shared/HAL_SPI.h"
@@ -205,5 +205,5 @@ uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val,
205 205
   return 1;
206 206
 }
207 207
 
208
-#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
208
+#endif // HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
209 209
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/NATIVE_SIM/u8g/u8g_com_st7920_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfig.h"
59 59
 
60
-#if ENABLED(U8GLIB_ST7920)
60
+#if IS_U8GLIB_ST7920
61 61
 
62 62
 #include <U8glib-HAL.h>
63 63
 #include "../../shared/Delay.h"
@@ -167,5 +167,5 @@ uint8_t u8g_com_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void
167 167
   }
168 168
 #endif
169 169
 
170
-#endif // U8GLIB_ST7920
170
+#endif // IS_U8GLIB_ST7920
171 171
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/NATIVE_SIM/u8g/u8g_com_sw_spi.cpp Wyświetl plik

@@ -57,7 +57,7 @@
57 57
 
58 58
 #include "../../../inc/MarlinConfig.h"
59 59
 
60
-#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
60
+#if HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
61 61
 
62 62
 #undef SPI_SPEED
63 63
 #define SPI_SPEED 2  // About 2 MHz
@@ -211,5 +211,5 @@ uint8_t u8g_com_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_pt
211 211
 #elif !ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI, HAS_MARLINUI_HD44780) && HAS_MARLINUI_U8GLIB
212 212
   #include <U8glib-HAL.h>
213 213
   uint8_t u8g_com_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr) {return 0;}
214
-#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
214
+#endif // HAS_MARLINUI_U8GLIB && !IS_U8GLIB_ST7920
215 215
 #endif // __PLAT_NATIVE_SIM__

+ 41
- 38
Marlin/src/inc/Conditionals_LCD.h Wyświetl plik

@@ -39,17 +39,17 @@
39 39
 /**
40 40
  * General Flags that may be set below by specific LCDs
41 41
  *
42
- *  DOGLCD                : Run a Graphical LCD through U8GLib (with MarlinUI)
43
- *  IS_ULTIPANEL          : Define LCD_PINS_D5/6/7 for direct-connected "Ultipanel" LCDs
44
- *  IS_ULTRA_LCD          : Ultra LCD, not necessarily Ultipanel.
45
- *  IS_RRD_SC             : Common RRD Smart Controller digital interface pins
46
- *  IS_RRD_FG_SC          : Common RRD Full Graphical Smart Controller digital interface pins
47
- *  U8GLIB_ST7920         : Most common DOGM display SPI interface, supporting a "lightweight" display mode.
48
- *  U8GLIB_SH1106         : SH1106 OLED with I2C interface via U8GLib
49
- *  IS_U8GLIB_SSD1306     : SSD1306 OLED with I2C interface via U8GLib
50
- *  U8GLIB_SSD1309        : SSD1309 OLED with I2C interface via U8GLib
51
- *  U8GLIB_ST7565_64128N  : ST7565 128x64 LCD with SPI interface via U8GLib
52
- *  U8GLIB_LM6059_AF      : LM6059 with Hardware SPI via U8GLib
42
+ *  DOGLCD                  : Run a Graphical LCD through U8GLib (with MarlinUI)
43
+ *  IS_ULTIPANEL            : Define LCD_PINS_D5/6/7 for direct-connected "Ultipanel" LCDs
44
+ *  IS_ULTRA_LCD            : Ultra LCD, not necessarily Ultipanel.
45
+ *  IS_RRD_SC               : Common RRD Smart Controller digital interface pins
46
+ *  IS_RRD_FG_SC            : Common RRD Full Graphical Smart Controller digital interface pins
47
+ *  IS_U8GLIB_ST7920        : Most common DOGM display SPI interface, supporting a "lightweight" display mode.
48
+ *  U8GLIB_SH1106           : SH1106 OLED with I2C interface via U8GLib
49
+ *  IS_U8GLIB_SSD1306       : SSD1306 OLED with I2C interface via U8GLib (U8GLIB_SSD1306)
50
+ *  U8GLIB_SSD1309          : SSD1309 OLED with I2C interface via U8GLib (HAS_U8GLIB_I2C_OLED, IS_ULTRA_LCD, DOGLCD)
51
+ *  IS_U8GLIB_ST7565_64128N : ST7565 128x64 LCD with SPI interface via U8GLib
52
+ *  IS_U8GLIB_LM6059_AF     : LM6059 with Hardware SPI via U8GLib
53 53
  */
54 54
 #if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
55 55
 
@@ -85,7 +85,7 @@
85 85
 #elif ENABLED(ZONESTAR_12864LCD)
86 86
   #define DOGLCD
87 87
   #define IS_RRD_SC 1
88
-  #define U8GLIB_ST7920
88
+  #define IS_U8GLIB_ST7920 1
89 89
 
90 90
 #elif ENABLED(ZONESTAR_12864OLED)
91 91
   #define IS_RRD_SC 1
@@ -99,19 +99,24 @@
99 99
   #define IS_ULTIPANEL 1
100 100
   #define ENCODER_PULSES_PER_STEP 2
101 101
 
102
-#elif ANY(miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864)
102
+#elif ANY(miniVIKI, VIKI2, WYH_L12864, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864)
103
+
104
+  #define IS_DOGM_12864 1
103 105
 
104 106
   #define DOGLCD
105 107
   #define IS_ULTIPANEL 1
106 108
 
107 109
   #if ENABLED(miniVIKI)
108
-    #define U8GLIB_ST7565_64128N
110
+    #define IS_U8GLIB_ST7565_64128N 1
109 111
   #elif ENABLED(VIKI2)
110
-    #define U8GLIB_ST7565_64128N
112
+    #define IS_U8GLIB_ST7565_64128N 1
113
+  #elif ENABLED(WYH_L12864)
114
+    #define IS_U8GLIB_ST7565_64128N 1
115
+    #define ST7565_XOFFSET 0x04
111 116
   #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
112
-    #define U8GLIB_LM6059_AF
117
+    #define IS_U8GLIB_LM6059_AF 1
113 118
   #elif ENABLED(AZSMZ_12864)
114
-    #define U8GLIB_ST7565_64128N
119
+    #define IS_U8GLIB_ST7565_64128N 1
115 120
   #endif
116 121
 
117 122
 #elif ENABLED(OLED_PANEL_TINYBOY2)
@@ -128,7 +133,7 @@
128 133
 #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
129 134
 
130 135
   #define DOGLCD
131
-  #define U8GLIB_ST7920
136
+  #define IS_U8GLIB_ST7920 1
132 137
   #define IS_ULTIPANEL 1
133 138
 
134 139
 #elif ENABLED(MKS_12864OLED)
@@ -144,7 +149,7 @@
144 149
 #elif ENABLED(SAV_3DGLCD)
145 150
 
146 151
   #ifdef U8GLIB_SSD1306
147
-    #define IS_U8GLIB_SSD1306
152
+    #define IS_U8GLIB_SSD1306 // Allow for U8GLIB_SSD1306 + SAV_3DGLCD
148 153
   #endif
149 154
   #define IS_NEWPANEL 1
150 155
 
@@ -266,7 +271,7 @@
266 271
 // ST7920-based graphical displays
267 272
 #if ANY(IS_RRD_FG_SC, LCD_FOR_MELZI, SILVER_GATE_GLCD_CONTROLLER)
268 273
   #define DOGLCD
269
-  #define U8GLIB_ST7920
274
+  #define IS_U8GLIB_ST7920 1
270 275
   #define IS_RRD_SC 1
271 276
 #endif
272 277
 
@@ -275,7 +280,7 @@
275 280
   #define IS_ULTIPANEL 1
276 281
   #define DOGLCD
277 282
   #if ENABLED(MAKRPANEL)
278
-    #define U8GLIB_ST7565_64128N
283
+    #define IS_U8GLIB_ST7565_64128N 1
279 284
   #endif
280 285
 #endif
281 286
 
@@ -373,24 +378,27 @@
373 378
  * I2C Panels
374 379
  */
375 380
 
376
-#if EITHER(LCD_SAINSMART_I2C_1602, LCD_SAINSMART_I2C_2004)
381
+#if ANY(IS_RRD_SC, IS_DOGM_12864, OLED_PANEL_TINYBOY2, LCD_I2C_PANELOLU2)
377 382
 
378
-  #define LCD_I2C_TYPE_PCF8575
379
-  #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
383
+  #define STD_ENCODER_PULSES_PER_STEP 4
384
+  #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
380 385
 
381
-  #if ENABLED(LCD_SAINSMART_I2C_2004)
382
-    #define LCD_WIDTH 20
383
-    #define LCD_HEIGHT 4
386
+  #if ENABLED(LCD_I2C_PANELOLU2)  // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
387
+    #define LCD_I2C_TYPE_MCP23017 // I2C Character-based 12864 display
388
+    #define LCD_I2C_ADDRESS 0x20  // I2C Address of the port expander
389
+    #define LCD_USE_I2C_BUZZER    // Enable buzzer on LCD (optional)
390
+    #define IS_ULTIPANEL 1
384 391
   #endif
385 392
 
386
-#elif ENABLED(LCD_I2C_PANELOLU2)
393
+#elif EITHER(LCD_SAINSMART_I2C_1602, LCD_SAINSMART_I2C_2004)
387 394
 
388
-  // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
395
+  #define LCD_I2C_TYPE_PCF8575    // I2C Character-based 12864 display
396
+  #define LCD_I2C_ADDRESS 0x27    // I2C Address of the port expander
389 397
 
390
-  #define LCD_I2C_TYPE_MCP23017
391
-  #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
392
-  #define LCD_USE_I2C_BUZZER   // Enable buzzer on LCD (optional)
393
-  #define IS_ULTIPANEL 1
398
+  #if ENABLED(LCD_SAINSMART_I2C_2004)
399
+    #define LCD_WIDTH 20
400
+    #define LCD_HEIGHT 4
401
+  #endif
394 402
 
395 403
 #elif ENABLED(LCD_I2C_VIKI)
396 404
 
@@ -417,11 +425,6 @@
417 425
   #define STD_ENCODER_PULSES_PER_STEP 2
418 426
   #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
419 427
 
420
-#elif ANY(IS_RRD_SC, miniVIKI, VIKI2, ELB_FULL_GRAPHIC_CONTROLLER, AZSMZ_12864, OLED_PANEL_TINYBOY2, BQ_LCD_SMART_CONTROLLER, LCD_I2C_PANELOLU2)
421
-
422
-  #define STD_ENCODER_PULSES_PER_STEP 4
423
-  #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
424
-
425 428
 #endif
426 429
 
427 430
 #if EITHER(LCD_I2C_TYPE_MCP23017, LCD_I2C_TYPE_MCP23008) && DISABLED(NO_LCD_DETECT)

+ 2
- 0
Marlin/src/inc/Conditionals_post.h Wyświetl plik

@@ -358,6 +358,8 @@
358 358
   #define _LCD_CONTRAST_MAX  115
359 359
 #elif ENABLED(VIKI2)
360 360
   #define _LCD_CONTRAST_INIT 140
361
+#elif ENABLED(WYH_L12864)
362
+  #define _LCD_CONTRAST_INIT 190
361 363
 #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
362 364
   #define _LCD_CONTRAST_MIN   90
363 365
   #define _LCD_CONTRAST_INIT 110

+ 2
- 1
Marlin/src/inc/SanityCheck.h Wyświetl plik

@@ -833,7 +833,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
833 833
 /**
834 834
  * LCD Lightweight Screen Style
835 835
  */
836
-#if ENABLED(LIGHTWEIGHT_UI) && DISABLED(U8GLIB_ST7920)
836
+#if ENABLED(LIGHTWEIGHT_UI) && !IS_U8GLIB_ST7920
837 837
   #error "LIGHTWEIGHT_UI requires a U8GLIB_ST7920-based display."
838 838
 #endif
839 839
 
@@ -2672,6 +2672,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
2672 2672
   + COUNT_ENABLED(MKS_TS35_V2_0, MKS_ROBIN_TFT24, MKS_ROBIN_TFT28, MKS_ROBIN_TFT32, MKS_ROBIN_TFT35, MKS_ROBIN_TFT43, MKS_ROBIN_TFT_V1_1R, ANET_ET4_TFT28, ANET_ET5_TFT35) \
2673 2673
   + COUNT_ENABLED(TFTGLCD_PANEL_SPI, TFTGLCD_PANEL_I2C) \
2674 2674
   + COUNT_ENABLED(VIKI2, miniVIKI) \
2675
+  + ENABLED(WYH_L12864) \
2675 2676
   + COUNT_ENABLED(ZONESTAR_12864LCD, ZONESTAR_12864OLED, ZONESTAR_12864OLED_SSD1306) \
2676 2677
   + COUNT_ENABLED(ANET_FULL_GRAPHICS_LCD, ANET_FULL_GRAPHICS_LCD_ALT_WIRING) \
2677 2678
   + ENABLED(AZSMZ_12864) \

+ 3
- 3
Marlin/src/lcd/dogm/marlinui_DOGM.h Wyświetl plik

@@ -43,7 +43,7 @@
43 43
     #define U8G_PARAM LCD_PINS_D4, LCD_PINS_ENABLE, LCD_PINS_RS
44 44
   #endif
45 45
 
46
-#elif ENABLED(U8GLIB_ST7920)
46
+#elif IS_U8GLIB_ST7920
47 47
 
48 48
   // RepRap Discount Full Graphics Smart Controller
49 49
   // and other variant LCDs using ST7920
@@ -72,7 +72,7 @@
72 72
     #define U8G_CLASS U8GLIB_DOGM128_2X                         // 4 stripes (HW-SPI)
73 73
   #endif
74 74
 
75
-#elif ENABLED(U8GLIB_LM6059_AF)
75
+#elif IS_U8GLIB_LM6059_AF
76 76
 
77 77
   // Based on the Adafruit ST7565 (https://www.adafruit.com/products/250)
78 78
 
@@ -82,7 +82,7 @@
82 82
     #define U8G_CLASS U8GLIB_LM6059_2X                          // 4 stripes (HW-SPI)
83 83
   #endif
84 84
 
85
-#elif ENABLED(U8GLIB_ST7565_64128N)
85
+#elif IS_U8GLIB_ST7565_64128N
86 86
 
87 87
   // MaKrPanel, Mini Viki, Viki 2.0, AZSMZ 12864 ST7565 controller
88 88
 

+ 4
- 1
Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp Wyświetl plik

@@ -63,6 +63,9 @@
63 63
 #define WIDTH 128
64 64
 #define HEIGHT 64
65 65
 #define PAGE_HEIGHT 8
66
+#ifndef ST7565_XOFFSET
67
+  #define ST7565_XOFFSET 0x00
68
+#endif
66 69
 
67 70
 #define ST7565_ADC_REVERSE(N)    ((N) ? 0xA1 : 0xA0)
68 71
 #define ST7565_BIAS_MODE(N)      ((N) ? 0xA3 : 0xA2)
@@ -123,7 +126,7 @@ static const uint8_t u8g_dev_st7565_64128n_HAL_init_seq[] PROGMEM = {
123 126
 static const uint8_t u8g_dev_st7565_64128n_HAL_data_start[] PROGMEM = {
124 127
   U8G_ESC_ADR(0),             // instruction mode
125 128
   U8G_ESC_CS(1),              // enable chip
126
-  ST7565_COLUMN_ADR(0x00),    // high 4 bits to 0, low 4 bits to 0. Changed for DisplayTech 64128N
129
+  ST7565_COLUMN_ADR(ST7565_XOFFSET), // high 4 bits to 0, low 4 bits to 0. Changed for DisplayTech 64128N
127 130
   U8G_ESC_END                 // end of sequence
128 131
 };
129 132
 

+ 2
- 2
Marlin/src/lcd/dogm/ultralcd_st7920_u8glib_rrd_AVR.cpp Wyświetl plik

@@ -29,7 +29,7 @@
29 29
 
30 30
 #include "../../inc/MarlinConfig.h"
31 31
 
32
-#if ENABLED(U8GLIB_ST7920)
32
+#if IS_U8GLIB_ST7920
33 33
 
34 34
 #include "ultralcd_st7920_u8glib_rrd_AVR.h"
35 35
 
@@ -192,5 +192,5 @@ u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = { u8g_dev_rrd_st7920_128x64_fn, &u8
192 192
   void ST7920_write_byte(const uint8_t val) { ST7920_WRITE_BYTE(val); }
193 193
 #endif
194 194
 
195
-#endif // U8GLIB_ST7920
195
+#endif // IS_U8GLIB_ST7920
196 196
 #endif // !U8G_HAL_LINKS && (__AVR__ || ARDUINO_ARCH_STM32 || ARDUINO_ARCH_ESP32)

+ 34
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h Wyświetl plik

@@ -220,12 +220,13 @@
220 220
     #error "ANET_FULL_GRAPHICS_LCD_ALT_WIRING only applies to the ANET 1.0 board."
221 221
 
222 222
   #elif ENABLED(ANET_FULL_GRAPHICS_LCD)
223
+
223 224
     #error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. Comment out this line to continue."
224 225
 
225 226
    /**
226 227
     * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
227 228
     * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
228
-    * 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
229
+    * 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because it is open drain.)
229 230
     * 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
230 231
     *
231 232
     * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
@@ -252,6 +253,38 @@
252 253
     #define LCD_PINS_ENABLE          EXP1_05_PIN
253 254
     #define LCD_PINS_D4              EXP1_07_PIN
254 255
 
256
+  #elif ENABLED(WYH_L12864)
257
+
258
+    #error "CAUTION! WYH_L12864 requires wiring modifications. Comment out this line to continue."
259
+
260
+    /**
261
+     * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
262
+     * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
263
+     * 3. Swap the LCD's MOSI (Pin9) and empty (Pin10) wires because Pin9 is open drain.
264
+     *
265
+     * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
266
+     *
267
+     * The WYH_L12864 connector plug:
268
+     *
269
+     *                  BEFORE                      AFTER
270
+     *                  ______                     ______
271
+     *             GND | 1  2 | 5V             5V | 1  2 | GND
272
+     *              CS | 3  4 | BTN_EN2        CS | 3  4 | BTN_EN2
273
+     *             SID | 5  6   BTN_EN1       SID | 5  6   BTN_EN1
274
+     *             SCK | 7  8 | BTN_ENC       SCK | 7  8 | BTN_ENC
275
+     *            MOSI | 9 10 |              open | 9 10 | MOSI
276
+     *                  ------                     ------
277
+     *                   LCD                        LCD
278
+     */
279
+    #define BTN_EN1                  EXP1_06_PIN
280
+    #define BTN_EN2                  EXP1_04_PIN
281
+    #define BTN_ENC                  EXP1_08_PIN
282
+    #define DOGLCD_CS                EXP1_03_PIN
283
+    #define DOGLCD_A0                EXP1_05_PIN
284
+    #define DOGLCD_SCK               EXP1_07_PIN
285
+    #define DOGLCD_MOSI              EXP1_10_PIN
286
+    #define LCD_BACKLIGHT_PIN            -1
287
+
255 288
   #elif ENABLED(CR10_STOCKDISPLAY)
256 289
 
257 290
     #define LCD_PINS_RS              EXP1_04_PIN

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h Wyświetl plik

@@ -321,7 +321,7 @@
321 321
    /**
322 322
     * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
323 323
     * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
324
-    * 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
324
+    * 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because it is open drain.)
325 325
     * 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
326 326
     *
327 327
     * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!

+ 1
- 1
Marlin/src/pins/mega/pins_SILVER_GATE.h Wyświetl plik

@@ -73,7 +73,7 @@
73 73
 #define TEMP_BED_PIN                           6
74 74
 
75 75
 #if HAS_WIRED_LCD
76
-  #if ENABLED(U8GLIB_ST7920)                      // SPI GLCD 12864 ST7920
76
+  #if IS_U8GLIB_ST7920                      // SPI GLCD 12864 ST7920
77 77
     #define LCD_PINS_RS                       30
78 78
     #define LCD_PINS_ENABLE                   20
79 79
     #define LCD_PINS_D4                       25

+ 1
- 1
Marlin/src/pins/pins.h Wyświetl plik

@@ -49,7 +49,7 @@
49 49
   #define IS_RAMPS_SF
50 50
 #endif
51 51
 
52
-#if !(BOTH(IS_ULTRA_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
52
+#if !(BOTH(IS_ULTRA_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, WYH_L12864, MINIPANEL, REPRAPWORLD_KEYPAD))
53 53
   #define HAS_FREE_AUX2_PINS 1
54 54
 #endif
55 55
 

+ 1
- 1
Marlin/src/pins/pins_postprocess.h Wyświetl plik

@@ -1366,7 +1366,7 @@
1366 1366
 //
1367 1367
 // Default DOGLCD SPI delays
1368 1368
 //
1369
-#if DISABLED(U8GLIB_ST7920)
1369
+#if !IS_U8GLIB_ST7920
1370 1370
   #undef ST7920_DELAY_1
1371 1371
   #undef ST7920_DELAY_2
1372 1372
   #undef ST7920_DELAY_3

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h Wyświetl plik

@@ -205,7 +205,7 @@
205 205
   #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
206 206
 #endif // HAS_WIRED_LCD
207 207
 
208
-#if ENABLED(U8GLIB_ST7920)
208
+#if IS_U8GLIB_ST7920
209 209
   #define BOARD_ST7920_DELAY_1                 0
210 210
   #define BOARD_ST7920_DELAY_2               250
211 211
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/rambo/pins_EINSY_RETRO.h Wyświetl plik

@@ -201,7 +201,7 @@
201 201
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
202 202
 
203 203
 // Alter timing for graphical display
204
-#if ENABLED(U8GLIB_ST7920)
204
+#if IS_U8GLIB_ST7920
205 205
   #define BOARD_ST7920_DELAY_1                 0
206 206
   #define BOARD_ST7920_DELAY_2               250
207 207
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/rambo/pins_MINIRAMBO.h Wyświetl plik

@@ -193,7 +193,7 @@
193 193
 
194 194
 #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
195 195
 
196
-#if ENABLED(U8GLIB_ST7920)
196
+#if IS_U8GLIB_ST7920
197 197
   #define BOARD_ST7920_DELAY_1                 0
198 198
   #define BOARD_ST7920_DELAY_2               250
199 199
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/rambo/pins_RAMBO.h Wyświetl plik

@@ -270,7 +270,7 @@
270 270
 #endif // HAS_WIRED_LCD
271 271
 
272 272
 // Alter timing for graphical display
273
-#if ENABLED(U8GLIB_ST7920)
273
+#if IS_U8GLIB_ST7920
274 274
   #define BOARD_ST7920_DELAY_1                 0
275 275
   #define BOARD_ST7920_DELAY_2                 0
276 276
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/ramps/pins_3DRAG.h Wyświetl plik

@@ -166,7 +166,7 @@
166 166
 
167 167
 #endif // IS_ULTRA_LCD && IS_NEWPANEL
168 168
 
169
-#if ENABLED(U8GLIB_ST7920)
169
+#if IS_U8GLIB_ST7920
170 170
   #define BOARD_ST7920_DELAY_1                 0
171 171
   #define BOARD_ST7920_DELAY_2               188
172 172
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h Wyświetl plik

@@ -106,7 +106,7 @@
106 106
 #endif
107 107
 
108 108
 // Alter timing for graphical display
109
-#if ENABLED(U8GLIB_ST7920)
109
+#if IS_U8GLIB_ST7920
110 110
   #define BOARD_ST7920_DELAY_1                 0
111 111
   #define BOARD_ST7920_DELAY_2                 0
112 112
   #define BOARD_ST7920_DELAY_3               189

+ 1
- 1
Marlin/src/pins/ramps/pins_DAGOMA_F5.h Wyświetl plik

@@ -40,7 +40,7 @@
40 40
 #endif
41 41
 
42 42
 // Alter timing for graphical display
43
-#if ENABLED(U8GLIB_ST7920)
43
+#if IS_U8GLIB_ST7920
44 44
   #define BOARD_ST7920_DELAY_1                 0
45 45
   #define BOARD_ST7920_DELAY_2               250
46 46
   #define BOARD_ST7920_DELAY_3               250

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h Wyświetl plik

@@ -199,7 +199,7 @@
199 199
 #endif
200 200
 
201 201
 // Alter timing for graphical display
202
-#if ENABLED(U8GLIB_ST7920)
202
+#if IS_U8GLIB_ST7920
203 203
   #define BOARD_ST7920_DELAY_1               200
204 204
   #define BOARD_ST7920_DELAY_2               200
205 205
   #define BOARD_ST7920_DELAY_3               200

+ 1
- 1
Marlin/src/pins/sanguino/pins_MELZI.h Wyświetl plik

@@ -32,7 +32,7 @@
32 32
 #define IS_MELZI 1
33 33
 
34 34
 // Alter timing for graphical display
35
-#if ENABLED(U8GLIB_ST7920)
35
+#if IS_U8GLIB_ST7920
36 36
   #ifndef BOARD_ST7920_DELAY_1
37 37
     #define BOARD_ST7920_DELAY_1               0
38 38
   #endif

+ 1
- 1
Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h Wyświetl plik

@@ -36,7 +36,7 @@
36 36
 #define BOARD_INFO_NAME "Melzi (Creality)"
37 37
 
38 38
 // Alter timing for graphical display
39
-#if ENABLED(U8GLIB_ST7920)
39
+#if IS_U8GLIB_ST7920
40 40
   #define BOARD_ST7920_DELAY_1               125
41 41
   #define BOARD_ST7920_DELAY_2               125
42 42
   #define BOARD_ST7920_DELAY_3               125

+ 1
- 1
Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h Wyświetl plik

@@ -28,7 +28,7 @@
28 28
 #define BOARD_INFO_NAME "Melzi (Tronxy)"
29 29
 
30 30
 // Alter timing for graphical display
31
-#if ENABLED(U8GLIB_ST7920)
31
+#if IS_U8GLIB_ST7920
32 32
   #define BOARD_ST7920_DELAY_1                 0
33 33
   #define BOARD_ST7920_DELAY_2               125
34 34
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/sanguino/pins_MELZI_V2.h Wyświetl plik

@@ -28,7 +28,7 @@
28 28
 #define BOARD_INFO_NAME "Melzi V2"
29 29
 
30 30
 // Alter timing for graphical display
31
-#if ENABLED(U8GLIB_ST7920)
31
+#if IS_U8GLIB_ST7920
32 32
   #define BOARD_ST7920_DELAY_1                 0
33 33
   #define BOARD_ST7920_DELAY_2               400
34 34
   #define BOARD_ST7920_DELAY_3                 0

+ 1
- 1
Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h Wyświetl plik

@@ -165,7 +165,7 @@
165 165
       #define KILL_PIN                        10
166 166
       #define BEEPER_PIN                      27
167 167
 
168
-    #elif ENABLED(U8GLIB_ST7920)                  // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
168
+    #elif IS_U8GLIB_ST7920                  // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
169 169
 
170 170
       #if IS_MELZI
171 171
         #define LCD_PINS_RS                   30  // CS chip select /SS chip slave select

+ 1
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h Wyświetl plik

@@ -202,7 +202,7 @@
202 202
     #endif // !FYSETC_MINI_12864
203 203
 
204 204
     // Alter timing for graphical display
205
-    #if ENABLED(U8GLIB_ST7920)
205
+    #if IS_U8GLIB_ST7920
206 206
       #define BOARD_ST7920_DELAY_1           125
207 207
       #define BOARD_ST7920_DELAY_2           125
208 208
       #define BOARD_ST7920_DELAY_3           125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_CCROBOT_MEEB_3DP.h Wyświetl plik

@@ -155,7 +155,7 @@
155 155
 #endif
156 156
 
157 157
 // Alter timing for graphical display
158
-#if ENABLED(U8GLIB_ST7920)
158
+#if IS_U8GLIB_ST7920
159 159
   #define BOARD_ST7920_DELAY_1               125
160 160
   #define BOARD_ST7920_DELAY_2               125
161 161
   #define BOARD_ST7920_DELAY_3               125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_FLY_MINI.h Wyświetl plik

@@ -179,7 +179,7 @@
179 179
   #endif
180 180
 
181 181
   // Alter timing for graphical display
182
-  #if ENABLED(U8GLIB_ST7920)
182
+  #if IS_U8GLIB_ST7920
183 183
     #define BOARD_ST7920_DELAY_1              96
184 184
     #define BOARD_ST7920_DELAY_2              48
185 185
     #define BOARD_ST7920_DELAY_3             715

+ 1
- 1
Marlin/src/pins/stm32f1/pins_GTM32_MINI.h Wyświetl plik

@@ -158,7 +158,7 @@
158 158
   #endif
159 159
 
160 160
   // Alter timing for graphical display
161
-  #if ENABLED(U8GLIB_ST7920)
161
+  #if IS_U8GLIB_ST7920
162 162
     #define BOARD_ST7920_DELAY_1              96
163 163
     #define BOARD_ST7920_DELAY_2              48
164 164
     #define BOARD_ST7920_DELAY_3             715

+ 1
- 1
Marlin/src/pins/stm32f1/pins_GTM32_MINI_A30.h Wyświetl plik

@@ -166,7 +166,7 @@
166 166
   #endif
167 167
 
168 168
   // Alter timing for graphical display
169
-  #if ENABLED(U8GLIB_ST7920)
169
+  #if IS_U8GLIB_ST7920
170 170
     #define BOARD_ST7920_DELAY_1              96
171 171
     #define BOARD_ST7920_DELAY_2              48
172 172
     #define BOARD_ST7920_DELAY_3             715

+ 1
- 1
Marlin/src/pins/stm32f1/pins_GTM32_PRO_VB.h Wyświetl plik

@@ -163,7 +163,7 @@
163 163
   #endif
164 164
 
165 165
   // Alter timing for graphical display
166
-  #if ENABLED(U8GLIB_ST7920)
166
+  #if IS_U8GLIB_ST7920
167 167
     #define BOARD_ST7920_DELAY_1              96
168 168
     #define BOARD_ST7920_DELAY_2              48
169 169
     #define BOARD_ST7920_DELAY_3             715

+ 1
- 1
Marlin/src/pins/stm32f1/pins_GTM32_REV_B.h Wyświetl plik

@@ -168,7 +168,7 @@
168 168
   #endif
169 169
 
170 170
   // Alter timing for graphical display
171
-  #if ENABLED(U8GLIB_ST7920)
171
+  #if IS_U8GLIB_ST7920
172 172
     #define BOARD_ST7920_DELAY_1              96
173 173
     #define BOARD_ST7920_DELAY_2              48
174 174
     #define BOARD_ST7920_DELAY_3             715

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h Wyświetl plik

@@ -221,7 +221,7 @@
221 221
 #endif // HAS_WIRED_LCD
222 222
 
223 223
 // Alter timing for graphical display
224
-#if ENABLED(U8GLIB_ST7920)
224
+#if IS_U8GLIB_ST7920
225 225
   #ifndef BOARD_ST7920_DELAY_1
226 226
     #define BOARD_ST7920_DELAY_1             125
227 227
   #endif

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h Wyświetl plik

@@ -113,7 +113,7 @@
113 113
   #endif // !MKS_MINI_12864
114 114
 
115 115
   // Alter timing for graphical display
116
-  #if ENABLED(U8GLIB_ST7920)
116
+  #if IS_U8GLIB_ST7920
117 117
     #define BOARD_ST7920_DELAY_1             125
118 118
     #define BOARD_ST7920_DELAY_2             125
119 119
     #define BOARD_ST7920_DELAY_3             125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO_V2.h Wyświetl plik

@@ -365,7 +365,7 @@
365 365
 
366 366
     #endif
367 367
 
368
-    #if ENABLED(U8GLIB_ST7920)
368
+    #if IS_U8GLIB_ST7920
369 369
       #define BOARD_ST7920_DELAY_1           125
370 370
       #define BOARD_ST7920_DELAY_2           125
371 371
       #define BOARD_ST7920_DELAY_3           125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h Wyświetl plik

@@ -300,7 +300,7 @@
300 300
 #endif
301 301
 
302 302
 // Alter timing for graphical display
303
-#if ENABLED(U8GLIB_ST7920)
303
+#if IS_U8GLIB_ST7920
304 304
   #define BOARD_ST7920_DELAY_1               125
305 305
   #define BOARD_ST7920_DELAY_2               125
306 306
   #define BOARD_ST7920_DELAY_3               125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_ZM3E4_V1_0.h Wyświetl plik

@@ -332,7 +332,7 @@
332 332
 #endif
333 333
 
334 334
 // Alter timing for graphical display
335
-#if ENABLED(U8GLIB_ST7920)
335
+#if IS_U8GLIB_ST7920
336 336
   #define BOARD_ST7920_DELAY_1               125
337 337
   #define BOARD_ST7920_DELAY_2               250
338 338
   #define BOARD_ST7920_DELAY_3               125

+ 1
- 1
Marlin/src/pins/stm32f1/pins_ZM3E4_V2_0.h Wyświetl plik

@@ -305,7 +305,7 @@
305 305
 #endif
306 306
 
307 307
 // Alter timing for graphical display
308
-#if ENABLED(U8GLIB_ST7920)
308
+#if IS_U8GLIB_ST7920
309 309
   #define BOARD_ST7920_DELAY_1               200  // Tclk_fall <200ns
310 310
   #define BOARD_ST7920_DELAY_2               250  // Tdata_width >200ns
311 311
   #define BOARD_ST7920_DELAY_3               200  // Tclk_rise <200ns

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h Wyświetl plik

@@ -285,7 +285,7 @@
285 285
   #endif
286 286
 
287 287
   // Alter timing for graphical display
288
-  #if ENABLED(U8GLIB_ST7920)
288
+  #if IS_U8GLIB_ST7920
289 289
     #define BOARD_ST7920_DELAY_1              96
290 290
     #define BOARD_ST7920_DELAY_2              48
291 291
     #define BOARD_ST7920_DELAY_3             600

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_E3_RRF.h Wyświetl plik

@@ -277,7 +277,7 @@
277 277
   #endif
278 278
 
279 279
   // Alter timing for graphical display
280
-  #if ENABLED(U8GLIB_ST7920)
280
+  #if IS_U8GLIB_ST7920
281 281
     #define BOARD_ST7920_DELAY_1              96
282 282
     #define BOARD_ST7920_DELAY_2              48
283 283
     #define BOARD_ST7920_DELAY_3             600

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h Wyświetl plik

@@ -483,7 +483,7 @@
483 483
   #endif
484 484
 
485 485
   // Alter timing for graphical display
486
-  #if ENABLED(U8GLIB_ST7920)
486
+  #if IS_U8GLIB_ST7920
487 487
     #define BOARD_ST7920_DELAY_1              96
488 488
     #define BOARD_ST7920_DELAY_2              48
489 489
     #define BOARD_ST7920_DELAY_3             600

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h Wyświetl plik

@@ -478,7 +478,7 @@
478 478
 #endif  // HAS_WIRED_LCD
479 479
 
480 480
 // Alter timing for graphical display
481
-#if ENABLED(U8GLIB_ST7920)
481
+#if IS_U8GLIB_ST7920
482 482
   #define BOARD_ST7920_DELAY_1               120
483 483
   #define BOARD_ST7920_DELAY_2                80
484 484
   #define BOARD_ST7920_DELAY_3               580

+ 34
- 1
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h Wyświetl plik

@@ -453,6 +453,39 @@
453 453
     #define BTN_EN1                  EXP2_08_PIN
454 454
     #define BTN_EN2                  EXP2_06_PIN
455 455
 
456
+  #elif ENABLED(WYH_L12864)
457
+
458
+    #error "CAUTION! WYH_L12864 requires wiring modifications. Comment out this line to continue."
459
+
460
+    /**
461
+     * 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
462
+     * 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires.
463
+     *
464
+     * !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
465
+     *
466
+     * The WYH_L12864 connector plug:
467
+     *
468
+     *                  BEFORE                      AFTER
469
+     *                  ______                     ______
470
+     *             GND | 1  2 | 5V             5V | 1  2 | GND
471
+     *              CS | 3  4 | BTN_EN2        CS | 3  4 | BTN_EN2
472
+     *             SID | 5  6   BTN_EN1       SID | 5  6   BTN_EN1
473
+     *             SCK | 7  8 | BTN_ENC       SCK | 7  8 | BTN_ENC
474
+     *            MOSI | 9 10 |              MOSI | 9 10 |
475
+     *                  ------                     ------
476
+     *                   LCD                        LCD
477
+     */
478
+    #undef BEEPER_PIN
479
+    #undef BTN_ENC
480
+    #define BTN_EN1                  EXP1_06_PIN
481
+    #define BTN_EN2                  EXP1_04_PIN
482
+    #define BTN_ENC                  EXP1_08_PIN
483
+    #define DOGLCD_CS                EXP1_03_PIN
484
+    #define DOGLCD_A0                EXP1_05_PIN
485
+    #define DOGLCD_SCK               EXP1_07_PIN
486
+    #define DOGLCD_MOSI              EXP1_09_PIN
487
+    #define LCD_BACKLIGHT_PIN            -1
488
+
456 489
   #else
457 490
 
458 491
     #define LCD_PINS_RS              EXP1_07_PIN
@@ -499,7 +532,7 @@
499 532
 #endif // HAS_WIRED_LCD
500 533
 
501 534
 // Alter timing for graphical display
502
-#if ENABLED(U8GLIB_ST7920)
535
+#if IS_U8GLIB_ST7920
503 536
   #ifndef BOARD_ST7920_DELAY_1
504 537
     #define BOARD_ST7920_DELAY_1             125
505 538
   #endif

+ 1
- 1
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h Wyświetl plik

@@ -483,7 +483,7 @@
483 483
 #endif // HAS_WIRED_LCD
484 484
 
485 485
 // Alter timing for graphical display
486
-#if ENABLED(U8GLIB_ST7920)
486
+#if IS_U8GLIB_ST7920
487 487
   #ifndef BOARD_ST7920_DELAY_1
488 488
     #define BOARD_ST7920_DELAY_1             120
489 489
   #endif

+ 1
- 1
Marlin/src/pins/stm32f4/pins_FLYF407ZG.h Wyświetl plik

@@ -305,7 +305,7 @@
305 305
 #define FIL_RUNOUT_PIN                      PA3
306 306
 
307 307
 // Alter timing for graphical display
308
-#if ENABLED(U8GLIB_ST7920)
308
+#if IS_U8GLIB_ST7920
309 309
   #define BOARD_ST7920_DELAY_1                96
310 310
   #define BOARD_ST7920_DELAY_2                48
311 311
   #define BOARD_ST7920_DELAY_3               715

+ 1
- 1
Marlin/src/pins/stm32f4/pins_FYSETC_CHEETAH_V20.h Wyświetl plik

@@ -245,7 +245,7 @@
245 245
 #endif // HAS_WIRED_LCD
246 246
 
247 247
 // Alter timing for graphical display
248
-#if ENABLED(U8GLIB_ST7920)
248
+#if IS_U8GLIB_ST7920
249 249
   #define BOARD_ST7920_DELAY_1                96
250 250
   #define BOARD_ST7920_DELAY_2                48
251 251
   #define BOARD_ST7920_DELAY_3               600

+ 1
- 1
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h Wyświetl plik

@@ -314,7 +314,7 @@
314 314
 #endif // HAS_WIRED_LCD
315 315
 
316 316
 // Alter timing for graphical display
317
-#if ENABLED(U8GLIB_ST7920)
317
+#if IS_U8GLIB_ST7920
318 318
   #define BOARD_ST7920_DELAY_1                96
319 319
   #define BOARD_ST7920_DELAY_2                48
320 320
   #define BOARD_ST7920_DELAY_3               640

+ 1
- 1
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h Wyświetl plik

@@ -172,7 +172,7 @@
172 172
 #endif // HAS_WIRED_LCD
173 173
 
174 174
 // Alter timing for graphical display
175
-#if ENABLED(U8GLIB_ST7920)
175
+#if IS_U8GLIB_ST7920
176 176
   #define BOARD_ST7920_DELAY_1                96
177 177
   #define BOARD_ST7920_DELAY_2                48
178 178
   #define BOARD_ST7920_DELAY_3               640

+ 1
- 1
Marlin/src/pins/stm32f4/pins_VAKE403D.h Wyświetl plik

@@ -183,7 +183,7 @@
183 183
 #endif
184 184
 
185 185
 // Alter timing for graphical display
186
-#if ENABLED(U8GLIB_ST7920)
186
+#if IS_U8GLIB_ST7920
187 187
   #define BOARD_ST7920_DELAY_1                96
188 188
   #define BOARD_ST7920_DELAY_2                48
189 189
   #define BOARD_ST7920_DELAY_3               715

Ładowanie…
Anuluj
Zapisz