瀏覽代碼

Rename LCD conditionals (#19533)

Scott Lahteine 4 年之前
父節點
當前提交
c2c6a679ea
No account linked to committer's email address
共有 100 個文件被更改,包括 233 次插入226 次删除
  1. 5
    5
      Marlin/Configuration_adv.h
  2. 2
    2
      Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp
  3. 2
    2
      Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp
  4. 2
    2
      Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi.cpp
  5. 2
    2
      Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi_shared.cpp
  6. 1
    1
      Marlin/src/HAL/LINUX/spi_pins.h
  7. 1
    1
      Marlin/src/HAL/LPC1768/inc/SanityCheck.h
  8. 1
    1
      Marlin/src/HAL/LPC1768/spi_pins.h
  9. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_hw_spi.cpp
  10. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp
  11. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_hw_spi.cpp
  12. 2
    2
      Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_sw_spi.cpp
  13. 2
    2
      Marlin/src/HAL/STM32F1/dogm/u8g_com_stm32duino_swspi.cpp
  14. 1
    1
      Marlin/src/HAL/shared/HAL_ST7920.h
  15. 1
    1
      Marlin/src/MarlinCore.cpp
  16. 1
    1
      Marlin/src/core/language.h
  17. 2
    2
      Marlin/src/feature/power_monitor.cpp
  18. 2
    2
      Marlin/src/feature/power_monitor.h
  19. 4
    4
      Marlin/src/gcode/bedlevel/G26.cpp
  20. 2
    2
      Marlin/src/gcode/calibrate/M48.cpp
  21. 1
    1
      Marlin/src/gcode/feature/power_monitor/M430.cpp
  22. 4
    4
      Marlin/src/inc/Conditionals_LCD.h
  23. 6
    6
      Marlin/src/inc/Conditionals_post.h
  24. 10
    10
      Marlin/src/inc/SanityCheck.h
  25. 2
    2
      Marlin/src/lcd/HD44780/lcdprint_hd44780.cpp
  26. 2
    2
      Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp
  27. 2
    2
      Marlin/src/lcd/dogm/lcdprint_u8g.cpp
  28. 2
    2
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp
  29. 2
    2
      Marlin/src/lcd/dogm/u8g_dev_ssd1306_sh1106_128x64_I2C.cpp
  30. 2
    2
      Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp
  31. 2
    2
      Marlin/src/lcd/dogm/u8g_dev_st7920_128x64_HAL.cpp
  32. 2
    2
      Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp
  33. 2
    2
      Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
  34. 2
    2
      Marlin/src/lcd/dogm/u8g_fontutf8.cpp
  35. 2
    2
      Marlin/src/lcd/dogm/ultralcd_DOGM.cpp
  36. 1
    1
      Marlin/src/lcd/fontutils.cpp
  37. 2
    2
      Marlin/src/lcd/lcdprint.cpp
  38. 1
    1
      Marlin/src/lcd/lcdprint.h
  39. 2
    2
      Marlin/src/lcd/menu/menu.cpp
  40. 2
    2
      Marlin/src/lcd/menu/menu.h
  41. 6
    2
      Marlin/src/lcd/menu/menu_configuration.cpp
  42. 2
    2
      Marlin/src/lcd/menu/menu_media.cpp
  43. 1
    1
      Marlin/src/lcd/menu/menu_motion.cpp
  44. 4
    4
      Marlin/src/lcd/menu/menu_tune.cpp
  45. 1
    1
      Marlin/src/lcd/touch/touch_buttons.cpp
  46. 14
    14
      Marlin/src/lcd/ultralcd.cpp
  47. 11
    11
      Marlin/src/lcd/ultralcd.h
  48. 2
    2
      Marlin/src/module/endstops.cpp
  49. 8
    8
      Marlin/src/module/planner.cpp
  50. 3
    3
      Marlin/src/module/planner.h
  51. 2
    2
      Marlin/src/pins/esp32/pins_MRR_ESPE.h
  52. 2
    2
      Marlin/src/pins/linux/pins_RAMPS_LINUX.h
  53. 3
    3
      Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
  54. 3
    3
      Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
  55. 1
    1
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
  56. 2
    2
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
  57. 3
    3
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
  58. 1
    1
      Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
  59. 1
    1
      Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
  60. 3
    2
      Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
  61. 5
    4
      Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
  62. 2
    2
      Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
  63. 2
    2
      Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h
  64. 2
    2
      Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
  65. 2
    2
      Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
  66. 3
    2
      Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
  67. 1
    1
      Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
  68. 1
    1
      Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
  69. 2
    2
      Marlin/src/pins/mega/pins_GT2560_REV_A.h
  70. 2
    2
      Marlin/src/pins/mega/pins_HJC2560C_REV2.h
  71. 1
    1
      Marlin/src/pins/mega/pins_INTAMSYS40.h
  72. 2
    2
      Marlin/src/pins/mega/pins_MEGATRONICS_2.h
  73. 2
    2
      Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
  74. 1
    1
      Marlin/src/pins/mega/pins_OVERLORD.h
  75. 1
    1
      Marlin/src/pins/mega/pins_PICA.h
  76. 1
    1
      Marlin/src/pins/mega/pins_SILVER_GATE.h
  77. 2
    2
      Marlin/src/pins/pins.h
  78. 2
    2
      Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
  79. 2
    2
      Marlin/src/pins/rambo/pins_EINSY_RETRO.h
  80. 2
    2
      Marlin/src/pins/rambo/pins_MINIRAMBO.h
  81. 2
    2
      Marlin/src/pins/rambo/pins_RAMBO.h
  82. 1
    1
      Marlin/src/pins/ramps/pins_3DRAG.h
  83. 1
    1
      Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
  84. 1
    1
      Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
  85. 1
    1
      Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
  86. 2
    2
      Marlin/src/pins/ramps/pins_K8800.h
  87. 2
    2
      Marlin/src/pins/ramps/pins_RAMPS.h
  88. 2
    2
      Marlin/src/pins/ramps/pins_TRIGORILLA_14.h
  89. 1
    1
      Marlin/src/pins/ramps/pins_TT_OSCAR.h
  90. 2
    2
      Marlin/src/pins/ramps/pins_ULTIMAKER.h
  91. 2
    2
      Marlin/src/pins/sam/pins_ARCHIM1.h
  92. 1
    1
      Marlin/src/pins/sam/pins_ARCHIM2.h
  93. 2
    2
      Marlin/src/pins/sam/pins_DUE3DOM.h
  94. 2
    2
      Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
  95. 2
    2
      Marlin/src/pins/sam/pins_RADDS.h
  96. 2
    2
      Marlin/src/pins/sam/pins_RAMPS_DUO.h
  97. 2
    2
      Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
  98. 2
    2
      Marlin/src/pins/sam/pins_RURAMPS4D_11.h
  99. 2
    2
      Marlin/src/pins/sam/pins_RURAMPS4D_13.h
  100. 0
    0
      Marlin/src/pins/samd/pins_RAMPS_144.h

+ 5
- 5
Marlin/Configuration_adv.h 查看文件

1106
   #define BOOTSCREEN_TIMEOUT 4000        // (ms) Total Duration to display the boot screen(s)
1106
   #define BOOTSCREEN_TIMEOUT 4000        // (ms) Total Duration to display the boot screen(s)
1107
 #endif
1107
 #endif
1108
 
1108
 
1109
-#if EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY) && (HAS_GRAPHICAL_LCD || HAS_CHARACTER_LCD)
1109
+#if EITHER(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY) && (HAS_MARLINUI_U8GLIB || HAS_MARLINUI_HD44780)
1110
   //#define SHOW_REMAINING_TIME       // Display estimated time to completion
1110
   //#define SHOW_REMAINING_TIME       // Display estimated time to completion
1111
   #if ENABLED(SHOW_REMAINING_TIME)
1111
   #if ENABLED(SHOW_REMAINING_TIME)
1112
     //#define USE_M73_REMAINING_TIME  // Use remaining time from M73 command instead of estimation
1112
     //#define USE_M73_REMAINING_TIME  // Use remaining time from M73 command instead of estimation
1113
     //#define ROTATE_PROGRESS_DISPLAY // Display (P)rogress, (E)lapsed, and (R)emaining time
1113
     //#define ROTATE_PROGRESS_DISPLAY // Display (P)rogress, (E)lapsed, and (R)emaining time
1114
   #endif
1114
   #endif
1115
 
1115
 
1116
-  #if HAS_GRAPHICAL_LCD
1116
+  #if HAS_MARLINUI_U8GLIB
1117
     //#define PRINT_PROGRESS_SHOW_DECIMALS // Show progress with decimal digits
1117
     //#define PRINT_PROGRESS_SHOW_DECIMALS // Show progress with decimal digits
1118
   #endif
1118
   #endif
1119
 
1119
 
1120
-  #if HAS_CHARACTER_LCD
1120
+  #if HAS_MARLINUI_HD44780
1121
     //#define LCD_PROGRESS_BAR            // Show a progress bar on HD44780 LCDs for SD printing
1121
     //#define LCD_PROGRESS_BAR            // Show a progress bar on HD44780 LCDs for SD printing
1122
     #if ENABLED(LCD_PROGRESS_BAR)
1122
     #if ENABLED(LCD_PROGRESS_BAR)
1123
       #define PROGRESS_BAR_BAR_TIME 2000  // (ms) Amount of time to show the bar
1123
       #define PROGRESS_BAR_BAR_TIME 2000  // (ms) Amount of time to show the bar
1328
  * controller events, as there is a trade-off between reliable
1328
  * controller events, as there is a trade-off between reliable
1329
  * printing performance versus fast display updates.
1329
  * printing performance versus fast display updates.
1330
  */
1330
  */
1331
-#if HAS_GRAPHICAL_LCD
1331
+#if HAS_MARLINUI_U8GLIB
1332
   // Show SD percentage next to the progress bar
1332
   // Show SD percentage next to the progress bar
1333
   //#define DOGM_SD_PERCENT
1333
   //#define DOGM_SD_PERCENT
1334
 
1334
 
1398
   //#define MARLIN_SNAKE
1398
   //#define MARLIN_SNAKE
1399
   //#define GAMES_EASTER_EGG          // Add extra blank lines above the "Games" sub-menu
1399
   //#define GAMES_EASTER_EGG          // Add extra blank lines above the "Games" sub-menu
1400
 
1400
 
1401
-#endif // HAS_GRAPHICAL_LCD
1401
+#endif // HAS_MARLINUI_U8GLIB
1402
 
1402
 
1403
 //
1403
 //
1404
 // Additional options for DGUS / DWIN displays
1404
 // Additional options for DGUS / DWIN displays

+ 2
- 2
Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp 查看文件

57
 
57
 
58
 #include "../../inc/MarlinConfigPre.h"
58
 #include "../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD
60
+#if HAS_MARLINUI_U8GLIB
61
 
61
 
62
 #include "../shared/Marduino.h"
62
 #include "../shared/Marduino.h"
63
 #include "../shared/Delay.h"
63
 #include "../shared/Delay.h"
189
   return 1;
189
   return 1;
190
 }
190
 }
191
 
191
 
192
-#endif // HAS_GRAPHICAL_LCD
192
+#endif // HAS_MARLINUI_U8GLIB
193
 #endif // ARDUINO_ARCH_SAM
193
 #endif // ARDUINO_ARCH_SAM

+ 2
- 2
Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_shared_hw_spi.cpp 查看文件

59
 
59
 
60
 #include "../../../inc/MarlinConfigPre.h"
60
 #include "../../../inc/MarlinConfigPre.h"
61
 
61
 
62
-#if HAS_GRAPHICAL_LCD
62
+#if HAS_MARLINUI_U8GLIB
63
 
63
 
64
 #include <U8glib.h>
64
 #include <U8glib.h>
65
 
65
 
145
   return 1;
145
   return 1;
146
 }
146
 }
147
 
147
 
148
-#endif // HAS_GRAPHICAL_LCD
148
+#endif // HAS_MARLINUI_U8GLIB
149
 
149
 
150
 #endif // __SAM3X8E__
150
 #endif // __SAM3X8E__

+ 2
- 2
Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi.cpp 查看文件

57
 
57
 
58
 #include "../../../inc/MarlinConfigPre.h"
58
 #include "../../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD && DISABLED(U8GLIB_ST7920)
60
+#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
61
 
61
 
62
 #undef SPI_SPEED
62
 #undef SPI_SPEED
63
 #define SPI_SPEED 2  // About 2 MHz
63
 #define SPI_SPEED 2  // About 2 MHz
144
   return 1;
144
   return 1;
145
 }
145
 }
146
 
146
 
147
-#endif // HAS_GRAPHICAL_LCD && !U8GLIB_ST7920
147
+#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
148
 #endif // ARDUINO_ARCH_SAM
148
 #endif // ARDUINO_ARCH_SAM

+ 2
- 2
Marlin/src/HAL/DUE/dogm/u8g_com_HAL_DUE_sw_spi_shared.cpp 查看文件

57
 
57
 
58
 #include "../../../inc/MarlinConfigPre.h"
58
 #include "../../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD
60
+#if HAS_MARLINUI_U8GLIB
61
 
61
 
62
 #include "../../shared/Delay.h"
62
 #include "../../shared/Delay.h"
63
 
63
 
108
   }
108
   }
109
 }
109
 }
110
 
110
 
111
-#endif // HAS_GRAPHICAL_LCD
111
+#endif // HAS_MARLINUI_U8GLIB
112
 #endif // ARDUINO_ARCH_SAM
112
 #endif // ARDUINO_ARCH_SAM

+ 1
- 1
Marlin/src/HAL/LINUX/spi_pins.h 查看文件

24
 #include "../../core/macros.h"
24
 #include "../../core/macros.h"
25
 #include "../../inc/MarlinConfigPre.h"
25
 #include "../../inc/MarlinConfigPre.h"
26
 
26
 
27
-#if BOTH(HAS_GRAPHICAL_LCD, SDSUPPORT) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN)
27
+#if BOTH(HAS_MARLINUI_U8GLIB, SDSUPPORT) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN)
28
   #define LPC_SOFTWARE_SPI  // If the SD card and LCD adapter share the same SPI pins, then software SPI is currently
28
   #define LPC_SOFTWARE_SPI  // If the SD card and LCD adapter share the same SPI pins, then software SPI is currently
29
                             // needed due to the speed and mode required for communicating with each device being different.
29
                             // needed due to the speed and mode required for communicating with each device being different.
30
                             // This requirement can be removed if the SPI access to these devices is updated to use
30
                             // This requirement can be removed if the SPI access to these devices is updated to use

+ 1
- 1
Marlin/src/HAL/LPC1768/inc/SanityCheck.h 查看文件

113
   #define _IS_RX1_1 IS_RX1
113
   #define _IS_RX1_1 IS_RX1
114
   #if IS_TX1(TMC_SW_SCK)
114
   #if IS_TX1(TMC_SW_SCK)
115
     #error "Serial port pins (1) conflict with other pins!"
115
     #error "Serial port pins (1) conflict with other pins!"
116
-  #elif HAS_SPI_LCD
116
+  #elif HAS_WIRED_LCD
117
     #if IS_TX1(BTN_EN2) || IS_RX1(BTN_EN1)
117
     #if IS_TX1(BTN_EN2) || IS_RX1(BTN_EN1)
118
       #error "Serial port pins (1) conflict with Encoder Buttons!"
118
       #error "Serial port pins (1) conflict with Encoder Buttons!"
119
     #elif ANY_TX(1, SCK_PIN, LCD_PINS_D4, DOGLCD_SCK, LCD_RESET_PIN, LCD_PINS_RS, SHIFT_CLK) \
119
     #elif ANY_TX(1, SCK_PIN, LCD_PINS_D4, DOGLCD_SCK, LCD_RESET_PIN, LCD_PINS_RS, SHIFT_CLK) \

+ 1
- 1
Marlin/src/HAL/LPC1768/spi_pins.h 查看文件

23
 
23
 
24
 #include "../../core/macros.h"
24
 #include "../../core/macros.h"
25
 
25
 
26
-#if BOTH(SDSUPPORT, HAS_GRAPHICAL_LCD) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN)
26
+#if BOTH(SDSUPPORT, HAS_MARLINUI_U8GLIB) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN)
27
   #define LPC_SOFTWARE_SPI  // If the SD card and LCD adapter share the same SPI pins, then software SPI is currently
27
   #define LPC_SOFTWARE_SPI  // If the SD card and LCD adapter share the same SPI pins, then software SPI is currently
28
                             // needed due to the speed and mode required for communicating with each device being different.
28
                             // needed due to the speed and mode required for communicating with each device being different.
29
                             // This requirement can be removed if the SPI access to these devices is updated to use
29
                             // This requirement can be removed if the SPI access to these devices is updated to use

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_hw_spi.cpp 查看文件

57
 
57
 
58
 #include "../../../inc/MarlinConfigPre.h"
58
 #include "../../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD
60
+#if HAS_MARLINUI_U8GLIB
61
 
61
 
62
 #include <U8glib.h>
62
 #include <U8glib.h>
63
 #include "../../shared/HAL_SPI.h"
63
 #include "../../shared/HAL_SPI.h"
124
   return 1;
124
   return 1;
125
 }
125
 }
126
 
126
 
127
-#endif // HAS_GRAPHICAL_LCD
127
+#endif // HAS_MARLINUI_U8GLIB
128
 
128
 
129
 #endif // TARGET_LPC1768
129
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_ssd_hw_i2c.cpp 查看文件

77
 
77
 
78
 #include "../../../inc/MarlinConfigPre.h"
78
 #include "../../../inc/MarlinConfigPre.h"
79
 
79
 
80
-#if HAS_GRAPHICAL_LCD
80
+#if HAS_MARLINUI_U8GLIB
81
 
81
 
82
 #include <U8glib.h>
82
 #include <U8glib.h>
83
 
83
 
193
   return 1;
193
   return 1;
194
 }
194
 }
195
 
195
 
196
-#endif // HAS_GRAPHICAL_LCD
196
+#endif // HAS_MARLINUI_U8GLIB
197
 
197
 
198
 #endif // TARGET_LPC1768
198
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_st7920_hw_spi.cpp 查看文件

57
 
57
 
58
 #include "../../../inc/MarlinConfigPre.h"
58
 #include "../../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD
60
+#if HAS_MARLINUI_U8GLIB
61
 
61
 
62
 #include <U8glib.h>
62
 #include <U8glib.h>
63
 #include "../../shared/HAL_SPI.h"
63
 #include "../../shared/HAL_SPI.h"
133
   return 1;
133
   return 1;
134
 }
134
 }
135
 
135
 
136
-#endif // HAS_GRAPHICAL_LCD
136
+#endif // HAS_MARLINUI_U8GLIB
137
 
137
 
138
 #endif // TARGET_LPC1768
138
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/LPC1768/u8g/u8g_com_HAL_LPC1768_sw_spi.cpp 查看文件

57
 
57
 
58
 #include "../../../inc/MarlinConfigPre.h"
58
 #include "../../../inc/MarlinConfigPre.h"
59
 
59
 
60
-#if HAS_GRAPHICAL_LCD && DISABLED(U8GLIB_ST7920)
60
+#if HAS_MARLINUI_U8GLIB && DISABLED(U8GLIB_ST7920)
61
 
61
 
62
 #include <SoftwareSPI.h>
62
 #include <SoftwareSPI.h>
63
 
63
 
203
   return 1;
203
   return 1;
204
 }
204
 }
205
 
205
 
206
-#endif // HAS_GRAPHICAL_LCD && !U8GLIB_ST7920
206
+#endif // HAS_MARLINUI_U8GLIB && !U8GLIB_ST7920
207
 #endif // TARGET_LPC1768
207
 #endif // TARGET_LPC1768

+ 2
- 2
Marlin/src/HAL/STM32F1/dogm/u8g_com_stm32duino_swspi.cpp 查看文件

20
 
20
 
21
 #include "../../../inc/MarlinConfig.h"
21
 #include "../../../inc/MarlinConfig.h"
22
 
22
 
23
-#if BOTH(HAS_GRAPHICAL_LCD, FORCE_SOFT_SPI)
23
+#if BOTH(HAS_MARLINUI_U8GLIB, FORCE_SOFT_SPI)
24
 
24
 
25
 #include "../HAL.h"
25
 #include "../HAL.h"
26
 #include <U8glib.h>
26
 #include <U8glib.h>
161
   return 1;
161
   return 1;
162
 }
162
 }
163
 
163
 
164
-#endif // HAS_GRAPHICAL_LCD
164
+#endif // HAS_MARLINUI_U8GLIB
165
 #endif // STM32F1
165
 #endif // STM32F1

+ 1
- 1
Marlin/src/HAL/shared/HAL_ST7920.h 查看文件

27
  * (bypassing U8G), it will allow the LIGHTWEIGHT_UI to operate.
27
  * (bypassing U8G), it will allow the LIGHTWEIGHT_UI to operate.
28
  */
28
  */
29
 
29
 
30
-#if BOTH(HAS_GRAPHICAL_LCD, LIGHTWEIGHT_UI)
30
+#if BOTH(HAS_MARLINUI_U8GLIB, LIGHTWEIGHT_UI)
31
   void ST7920_cs();
31
   void ST7920_cs();
32
   void ST7920_ncs();
32
   void ST7920_ncs();
33
   void ST7920_set_cmd();
33
   void ST7920_set_cmd();

+ 1
- 1
Marlin/src/MarlinCore.cpp 查看文件

1072
     DWIN_UpdateLCD();     // Show bootscreen (first image)
1072
     DWIN_UpdateLCD();     // Show bootscreen (first image)
1073
   #else
1073
   #else
1074
     SETUP_RUN(ui.init());
1074
     SETUP_RUN(ui.init());
1075
-    #if HAS_SPI_LCD && ENABLED(SHOW_BOOTSCREEN)
1075
+    #if HAS_WIRED_LCD && ENABLED(SHOW_BOOTSCREEN)
1076
       SETUP_RUN(ui.show_bootscreen());
1076
       SETUP_RUN(ui.show_bootscreen());
1077
     #endif
1077
     #endif
1078
     SETUP_RUN(ui.reset_status());     // Load welcome message early. (Retained if no errors exist.)
1078
     SETUP_RUN(ui.reset_status());     // Load welcome message early. (Retained if no errors exist.)

+ 1
- 1
Marlin/src/core/language.h 查看文件

303
 #define LCD_STR_C STR_C
303
 #define LCD_STR_C STR_C
304
 #define LCD_STR_E STR_E
304
 #define LCD_STR_E STR_E
305
 
305
 
306
-#if HAS_CHARACTER_LCD
306
+#if HAS_MARLINUI_HD44780
307
 
307
 
308
   // Custom characters defined in the first 8 characters of the LCD
308
   // Custom characters defined in the first 8 characters of the LCD
309
   #define LCD_STR_BEDTEMP     "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!
309
   #define LCD_STR_BEDTEMP     "\x00" // Print only as a char. This will have 'unexpected' results when used in a string!

+ 2
- 2
Marlin/src/feature/power_monitor.cpp 查看文件

44
 
44
 
45
 PowerMonitor power_monitor; // Single instance - this calls the constructor
45
 PowerMonitor power_monitor; // Single instance - this calls the constructor
46
 
46
 
47
-#if HAS_GRAPHICAL_LCD
47
+#if HAS_MARLINUI_U8GLIB
48
 
48
 
49
   #if ENABLED(POWER_MONITOR_CURRENT)
49
   #if ENABLED(POWER_MONITOR_CURRENT)
50
     void PowerMonitor::draw_current() {
50
     void PowerMonitor::draw_current() {
70
     }
70
     }
71
   #endif
71
   #endif
72
 
72
 
73
-#endif // HAS_GRAPHICAL_LCD
73
+#endif // HAS_MARLINUI_U8GLIB
74
 
74
 
75
 #endif // HAS_POWER_MONITOR
75
 #endif // HAS_POWER_MONITOR

+ 2
- 2
Marlin/src/feature/power_monitor.h 查看文件

88
     FORCE_INLINE static float getPower() { return getAmps() * getVolts(); }
88
     FORCE_INLINE static float getPower() { return getAmps() * getVolts(); }
89
   #endif
89
   #endif
90
 
90
 
91
-  #if HAS_SPI_LCD
92
-    #if HAS_GRAPHICAL_LCD && DISABLED(LIGHTWEIGHT_UI)
91
+  #if HAS_WIRED_LCD
92
+    #if HAS_MARLINUI_U8GLIB && DISABLED(LIGHTWEIGHT_UI)
93
       FORCE_INLINE static bool display_enabled() { return flags != 0x00; }
93
       FORCE_INLINE static bool display_enabled() { return flags != 0x00; }
94
     #endif
94
     #endif
95
     #if ENABLED(POWER_MONITOR_CURRENT)
95
     #if ENABLED(POWER_MONITOR_CURRENT)

+ 4
- 4
Marlin/src/gcode/bedlevel/G26.cpp 查看文件

359
   #if HAS_HEATED_BED
359
   #if HAS_HEATED_BED
360
 
360
 
361
     if (g26_bed_temp > 25) {
361
     if (g26_bed_temp > 25) {
362
-      #if HAS_SPI_LCD
362
+      #if HAS_WIRED_LCD
363
         ui.set_status_P(GET_TEXT(MSG_G26_HEATING_BED), 99);
363
         ui.set_status_P(GET_TEXT(MSG_G26_HEATING_BED), 99);
364
         ui.quick_feedback();
364
         ui.quick_feedback();
365
         TERN_(HAS_LCD_MENU, ui.capture());
365
         TERN_(HAS_LCD_MENU, ui.capture());
378
   #endif // HAS_HEATED_BED
378
   #endif // HAS_HEATED_BED
379
 
379
 
380
   // Start heating the active nozzle
380
   // Start heating the active nozzle
381
-  #if HAS_SPI_LCD
381
+  #if HAS_WIRED_LCD
382
     ui.set_status_P(GET_TEXT(MSG_G26_HEATING_NOZZLE), 99);
382
     ui.set_status_P(GET_TEXT(MSG_G26_HEATING_NOZZLE), 99);
383
     ui.quick_feedback();
383
     ui.quick_feedback();
384
   #endif
384
   #endif
391
     #endif
391
     #endif
392
   )) return G26_ERR;
392
   )) return G26_ERR;
393
 
393
 
394
-  #if HAS_SPI_LCD
394
+  #if HAS_WIRED_LCD
395
     ui.reset_status();
395
     ui.reset_status();
396
     ui.quick_feedback();
396
     ui.quick_feedback();
397
   #endif
397
   #endif
446
     else
446
     else
447
   #endif
447
   #endif
448
   {
448
   {
449
-    #if HAS_SPI_LCD
449
+    #if HAS_WIRED_LCD
450
       ui.set_status_P(GET_TEXT(MSG_G26_FIXED_LENGTH), 99);
450
       ui.set_status_P(GET_TEXT(MSG_G26_FIXED_LENGTH), 99);
451
       ui.quick_feedback();
451
       ui.quick_feedback();
452
     #endif
452
     #endif

+ 2
- 2
Marlin/src/gcode/calibrate/M48.cpp 查看文件

144
     float sample_sum = 0.0;
144
     float sample_sum = 0.0;
145
 
145
 
146
     LOOP_L_N(n, n_samples) {
146
     LOOP_L_N(n, n_samples) {
147
-      #if HAS_SPI_LCD
147
+      #if HAS_WIRED_LCD
148
         // Display M48 progress in the status bar
148
         // Display M48 progress in the status bar
149
         ui.status_printf_P(0, PSTR(S_FMT ": %d/%d"), GET_TEXT(MSG_M48_POINT), int(n + 1), int(n_samples));
149
         ui.status_printf_P(0, PSTR(S_FMT ": %d/%d"), GET_TEXT(MSG_M48_POINT), int(n + 1), int(n_samples));
150
       #endif
150
       #endif
258
     SERIAL_ECHOLNPGM("Finished!");
258
     SERIAL_ECHOLNPGM("Finished!");
259
     dev_report(verbose_level > 0, mean, sigma, min, max, true);
259
     dev_report(verbose_level > 0, mean, sigma, min, max, true);
260
 
260
 
261
-    #if HAS_SPI_LCD
261
+    #if HAS_WIRED_LCD
262
       // Display M48 results in the status bar
262
       // Display M48 results in the status bar
263
       char sigma_str[8];
263
       char sigma_str[8];
264
       ui.status_printf_P(0, PSTR(S_FMT ": %s"), GET_TEXT(MSG_M48_DEVIATION), dtostrf(sigma, 2, 6, sigma_str));
264
       ui.status_printf_P(0, PSTR(S_FMT ": %s"), GET_TEXT(MSG_M48_DEVIATION), dtostrf(sigma, 2, 6, sigma_str));

+ 1
- 1
Marlin/src/gcode/feature/power_monitor/M430.cpp 查看文件

38
  */
38
  */
39
 void GcodeSuite::M430() {
39
 void GcodeSuite::M430() {
40
   bool do_report = true;
40
   bool do_report = true;
41
-  #if HAS_SPI_LCD
41
+  #if HAS_WIRED_LCD
42
     #if ENABLED(POWER_MONITOR_CURRENT)
42
     #if ENABLED(POWER_MONITOR_CURRENT)
43
       if (parser.seen('I')) { power_monitor.set_current_display(parser.value_bool()); do_report = false; }
43
       if (parser.seen('I')) { power_monitor.set_current_display(parser.value_bool()); do_report = false; }
44
     #endif
44
     #endif

+ 4
- 4
Marlin/src/inc/Conditionals_LCD.h 查看文件

456
 #endif
456
 #endif
457
 
457
 
458
 #if ENABLED(ULTRA_LCD)
458
 #if ENABLED(ULTRA_LCD)
459
-  #define HAS_SPI_LCD 1
459
+  #define HAS_WIRED_LCD 1
460
   #if ENABLED(DOGLCD)
460
   #if ENABLED(DOGLCD)
461
-    #define HAS_GRAPHICAL_LCD 1
461
+    #define HAS_MARLINUI_U8GLIB 1
462
   #elif DISABLED(HAS_GRAPHICAL_TFT)
462
   #elif DISABLED(HAS_GRAPHICAL_TFT)
463
-    #define HAS_CHARACTER_LCD 1
463
+    #define HAS_MARLINUI_HD44780 1
464
   #endif
464
   #endif
465
 #endif
465
 #endif
466
 
466
 
471
   #define HAS_ADC_BUTTONS 1
471
   #define HAS_ADC_BUTTONS 1
472
 #endif
472
 #endif
473
 
473
 
474
-#if HAS_GRAPHICAL_LCD
474
+#if HAS_MARLINUI_U8GLIB
475
   #ifndef LCD_PIXEL_WIDTH
475
   #ifndef LCD_PIXEL_WIDTH
476
     #define LCD_PIXEL_WIDTH 128
476
     #define LCD_PIXEL_WIDTH 128
477
   #endif
477
   #endif

+ 6
- 6
Marlin/src/inc/Conditionals_post.h 查看文件

313
 #elif ENABLED(MAKRPANEL)
313
 #elif ENABLED(MAKRPANEL)
314
   #define _LCD_CONTRAST_INIT  17
314
   #define _LCD_CONTRAST_INIT  17
315
 #elif ENABLED(MINIPANEL)
315
 #elif ENABLED(MINIPANEL)
316
-  #define _LCD_CONTRAST_INIT  150
316
+  #define _LCD_CONTRAST_INIT 150
317
 #elif ENABLED(ZONESTAR_12864OLED)
317
 #elif ENABLED(ZONESTAR_12864OLED)
318
   #define _LCD_CONTRAST_MIN   64
318
   #define _LCD_CONTRAST_MIN   64
319
   #define _LCD_CONTRAST_INIT 128
319
   #define _LCD_CONTRAST_INIT 128
2455
  */
2455
  */
2456
 #if PIN_EXISTS(BEEPER) || EITHER(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
2456
 #if PIN_EXISTS(BEEPER) || EITHER(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
2457
   #define HAS_BUZZER 1
2457
   #define HAS_BUZZER 1
2458
-  #if NONE(LCD_USE_I2C_BUZZER, PCA9632_BUZZER)
2458
+  #if PIN_EXISTS(BEEPER)
2459
     #define USE_BEEPER 1
2459
     #define USE_BEEPER 1
2460
   #endif
2460
   #endif
2461
 #endif
2461
 #endif
2483
 /**
2483
 /**
2484
  * Make sure DOGLCD_SCK and DOGLCD_MOSI are defined.
2484
  * Make sure DOGLCD_SCK and DOGLCD_MOSI are defined.
2485
  */
2485
  */
2486
-#if HAS_GRAPHICAL_LCD
2486
+#if HAS_MARLINUI_U8GLIB
2487
   #ifndef DOGLCD_SCK
2487
   #ifndef DOGLCD_SCK
2488
     #define DOGLCD_SCK  SCK_PIN
2488
     #define DOGLCD_SCK  SCK_PIN
2489
   #endif
2489
   #endif
2604
   #define HAS_FOLDER_SORTING 1
2604
   #define HAS_FOLDER_SORTING 1
2605
 #endif
2605
 #endif
2606
 
2606
 
2607
-#if HAS_SPI_LCD
2607
+#if HAS_WIRED_LCD
2608
   // Get LCD character width/height, which may be overridden by pins, configs, etc.
2608
   // Get LCD character width/height, which may be overridden by pins, configs, etc.
2609
   #ifndef LCD_WIDTH
2609
   #ifndef LCD_WIDTH
2610
-    #if HAS_GRAPHICAL_LCD
2610
+    #if HAS_MARLINUI_U8GLIB
2611
       #define LCD_WIDTH 21
2611
       #define LCD_WIDTH 21
2612
     #else
2612
     #else
2613
       #define LCD_WIDTH TERN(ULTIPANEL, 20, 16)
2613
       #define LCD_WIDTH TERN(ULTIPANEL, 20, 16)
2614
     #endif
2614
     #endif
2615
   #endif
2615
   #endif
2616
   #ifndef LCD_HEIGHT
2616
   #ifndef LCD_HEIGHT
2617
-    #if HAS_GRAPHICAL_LCD
2617
+    #if HAS_MARLINUI_U8GLIB
2618
       #define LCD_HEIGHT 5
2618
       #define LCD_HEIGHT 5
2619
     #else
2619
     #else
2620
       #define LCD_HEIGHT TERN(ULTIPANEL, 4, 2)
2620
       #define LCD_HEIGHT TERN(ULTIPANEL, 4, 2)

+ 10
- 10
Marlin/src/inc/SanityCheck.h 查看文件

680
  * LCD Info Screen Style
680
  * LCD Info Screen Style
681
  */
681
  */
682
 #if LCD_INFO_SCREEN_STYLE > 0
682
 #if LCD_INFO_SCREEN_STYLE > 0
683
-  #if HAS_GRAPHICAL_LCD || LCD_WIDTH < 20 || LCD_HEIGHT < 4
683
+  #if HAS_MARLINUI_U8GLIB || LCD_WIDTH < 20 || LCD_HEIGHT < 4
684
     #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
684
     #error "Alternative LCD_INFO_SCREEN_STYLE requires 20x4 Character LCD."
685
   #elif LCD_INFO_SCREEN_STYLE > 1
685
   #elif LCD_INFO_SCREEN_STYLE > 1
686
     #error "LCD_INFO_SCREEN_STYLE only has options 0 and 1 at this time."
686
     #error "LCD_INFO_SCREEN_STYLE only has options 0 and 1 at this time."
693
 #if ENABLED(LCD_PROGRESS_BAR)
693
 #if ENABLED(LCD_PROGRESS_BAR)
694
   #if NONE(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
694
   #if NONE(SDSUPPORT, LCD_SET_PROGRESS_MANUALLY)
695
     #error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
695
     #error "LCD_PROGRESS_BAR requires SDSUPPORT or LCD_SET_PROGRESS_MANUALLY."
696
-  #elif !HAS_CHARACTER_LCD
696
+  #elif !HAS_MARLINUI_HD44780
697
     #error "LCD_PROGRESS_BAR requires a character LCD."
697
     #error "LCD_PROGRESS_BAR requires a character LCD."
698
-  #elif HAS_GRAPHICAL_LCD
698
+  #elif HAS_MARLINUI_U8GLIB
699
     #error "LCD_PROGRESS_BAR does not apply to graphical displays."
699
     #error "LCD_PROGRESS_BAR does not apply to graphical displays."
700
   #elif ENABLED(FILAMENT_LCD_DISPLAY)
700
   #elif ENABLED(FILAMENT_LCD_DISPLAY)
701
     #error "LCD_PROGRESS_BAR and FILAMENT_LCD_DISPLAY are not fully compatible. Comment out this line to use both."
701
     #error "LCD_PROGRESS_BAR and FILAMENT_LCD_DISPLAY are not fully compatible. Comment out this line to use both."
702
   #elif PROGRESS_MSG_EXPIRE < 0
702
   #elif PROGRESS_MSG_EXPIRE < 0
703
     #error "PROGRESS_MSG_EXPIRE must be greater than or equal to 0."
703
     #error "PROGRESS_MSG_EXPIRE must be greater than or equal to 0."
704
   #endif
704
   #endif
705
-#elif ENABLED(LCD_SET_PROGRESS_MANUALLY) && NONE(HAS_GRAPHICAL_LCD, HAS_GRAPHICAL_TFT, HAS_CHARACTER_LCD, EXTENSIBLE_UI)
705
+#elif ENABLED(LCD_SET_PROGRESS_MANUALLY) && NONE(HAS_MARLINUI_U8GLIB, HAS_GRAPHICAL_TFT, HAS_MARLINUI_HD44780, EXTENSIBLE_UI)
706
   #error "LCD_SET_PROGRESS_MANUALLY requires LCD_PROGRESS_BAR, Character LCD, Graphical LCD, TFT, or EXTENSIBLE_UI."
706
   #error "LCD_SET_PROGRESS_MANUALLY requires LCD_PROGRESS_BAR, Character LCD, Graphical LCD, TFT, or EXTENSIBLE_UI."
707
 #endif
707
 #endif
708
 
708
 
713
 /**
713
 /**
714
  * Custom Boot and Status screens
714
  * Custom Boot and Status screens
715
  */
715
  */
716
-#if ENABLED(SHOW_CUSTOM_BOOTSCREEN) && NONE(HAS_GRAPHICAL_LCD, TOUCH_UI_FTDI_EVE)
716
+#if ENABLED(SHOW_CUSTOM_BOOTSCREEN) && NONE(HAS_MARLINUI_U8GLIB, TOUCH_UI_FTDI_EVE)
717
   #error "SHOW_CUSTOM_BOOTSCREEN requires Graphical LCD or TOUCH_UI_FTDI_EVE."
717
   #error "SHOW_CUSTOM_BOOTSCREEN requires Graphical LCD or TOUCH_UI_FTDI_EVE."
718
-#elif ENABLED(CUSTOM_STATUS_SCREEN_IMAGE) && !HAS_GRAPHICAL_LCD
718
+#elif ENABLED(CUSTOM_STATUS_SCREEN_IMAGE) && !HAS_MARLINUI_U8GLIB
719
   #error "CUSTOM_STATUS_SCREEN_IMAGE requires a Graphical LCD."
719
   #error "CUSTOM_STATUS_SCREEN_IMAGE requires a Graphical LCD."
720
 #endif
720
 #endif
721
 
721
 
782
     #error "MESH_BED_LEVELING and BABYSTEP_ZPROBE_OFFSET is not a valid combination"
782
     #error "MESH_BED_LEVELING and BABYSTEP_ZPROBE_OFFSET is not a valid combination"
783
   #elif ENABLED(BABYSTEP_ZPROBE_OFFSET) && !HAS_BED_PROBE
783
   #elif ENABLED(BABYSTEP_ZPROBE_OFFSET) && !HAS_BED_PROBE
784
     #error "BABYSTEP_ZPROBE_OFFSET requires a probe."
784
     #error "BABYSTEP_ZPROBE_OFFSET requires a probe."
785
-  #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && !HAS_GRAPHICAL_LCD
785
+  #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && !HAS_MARLINUI_U8GLIB
786
     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a Graphical LCD."
786
     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a Graphical LCD."
787
   #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && DISABLED(BABYSTEP_ZPROBE_OFFSET)
787
   #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && DISABLED(BABYSTEP_ZPROBE_OFFSET)
788
     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a BABYSTEP_ZPROBE_OFFSET."
788
     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a BABYSTEP_ZPROBE_OFFSET."
1143
 /**
1143
 /**
1144
  * Required LCD language
1144
  * Required LCD language
1145
  */
1145
  */
1146
-#if HAS_CHARACTER_LCD && !defined(DISPLAY_CHARSET_HD44780)
1146
+#if HAS_MARLINUI_HD44780 && !defined(DISPLAY_CHARSET_HD44780)
1147
   #error "You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller."
1147
   #error "You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller."
1148
 #endif
1148
 #endif
1149
 
1149
 
1465
   #endif
1465
   #endif
1466
 #endif
1466
 #endif
1467
 
1467
 
1468
-#if ENABLED(MESH_EDIT_GFX_OVERLAY) && !BOTH(AUTO_BED_LEVELING_UBL, HAS_GRAPHICAL_LCD)
1468
+#if ENABLED(MESH_EDIT_GFX_OVERLAY) && !BOTH(AUTO_BED_LEVELING_UBL, HAS_MARLINUI_U8GLIB)
1469
   #error "MESH_EDIT_GFX_OVERLAY requires AUTO_BED_LEVELING_UBL and a Graphical LCD."
1469
   #error "MESH_EDIT_GFX_OVERLAY requires AUTO_BED_LEVELING_UBL and a Graphical LCD."
1470
 #endif
1470
 #endif
1471
 
1471
 
3081
   #undef _PIN_CONFLICT
3081
   #undef _PIN_CONFLICT
3082
 #endif
3082
 #endif
3083
 
3083
 
3084
-#if !HAS_GRAPHICAL_LCD
3084
+#if !HAS_MARLINUI_U8GLIB
3085
   #if ENABLED(PRINT_PROGRESS_SHOW_DECIMALS)
3085
   #if ENABLED(PRINT_PROGRESS_SHOW_DECIMALS)
3086
     #error "PRINT_PROGRESS_SHOW_DECIMALS currently requires a Graphical LCD."
3086
     #error "PRINT_PROGRESS_SHOW_DECIMALS currently requires a Graphical LCD."
3087
   #endif
3087
   #endif

+ 2
- 2
Marlin/src/lcd/HD44780/lcdprint_hd44780.cpp 查看文件

14
 
14
 
15
 #include "../../inc/MarlinConfigPre.h"
15
 #include "../../inc/MarlinConfigPre.h"
16
 
16
 
17
-#if HAS_CHARACTER_LCD
17
+#if HAS_MARLINUI_HD44780
18
 
18
 
19
 #include "../ultralcd.h"
19
 #include "../ultralcd.h"
20
 #include "../../MarlinCore.h"
20
 #include "../../MarlinCore.h"
1119
 
1119
 
1120
 #endif // DEBUG_LCDPRINT
1120
 #endif // DEBUG_LCDPRINT
1121
 
1121
 
1122
-#endif // HAS_CHARACTER_LCD
1122
+#endif // HAS_MARLINUI_HD44780

+ 2
- 2
Marlin/src/lcd/HD44780/ultralcd_HD44780.cpp 查看文件

22
 
22
 
23
 #include "../../inc/MarlinConfigPre.h"
23
 #include "../../inc/MarlinConfigPre.h"
24
 
24
 
25
-#if HAS_CHARACTER_LCD
25
+#if HAS_MARLINUI_HD44780
26
 
26
 
27
 /**
27
 /**
28
  * ultralcd_HD44780.cpp
28
  * ultralcd_HD44780.cpp
1517
 
1517
 
1518
 #endif // HAS_LCD_MENU
1518
 #endif // HAS_LCD_MENU
1519
 
1519
 
1520
-#endif // HAS_CHARACTER_LCD
1520
+#endif // HAS_MARLINUI_HD44780

+ 2
- 2
Marlin/src/lcd/dogm/lcdprint_u8g.cpp 查看文件

9
 
9
 
10
 #include "../../inc/MarlinConfigPre.h"
10
 #include "../../inc/MarlinConfigPre.h"
11
 
11
 
12
-#if HAS_GRAPHICAL_LCD
12
+#if HAS_MARLINUI_U8GLIB
13
 
13
 
14
 #include "ultralcd_DOGM.h"
14
 #include "ultralcd_DOGM.h"
15
 
15
 
53
   return ret;
53
   return ret;
54
 }
54
 }
55
 
55
 
56
-#endif // HAS_GRAPHICAL_LCD
56
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/status_screen_DOGM.cpp 查看文件

27
 
27
 
28
 #include "../../inc/MarlinConfigPre.h"
28
 #include "../../inc/MarlinConfigPre.h"
29
 
29
 
30
-#if HAS_GRAPHICAL_LCD && DISABLED(LIGHTWEIGHT_UI)
30
+#if HAS_MARLINUI_U8GLIB && DISABLED(LIGHTWEIGHT_UI)
31
 
31
 
32
 #include "dogm_Statusscreen.h"
32
 #include "dogm_Statusscreen.h"
33
 #include "ultralcd_DOGM.h"
33
 #include "ultralcd_DOGM.h"
913
   #endif
913
   #endif
914
 }
914
 }
915
 
915
 
916
-#endif // HAS_GRAPHICAL_LCD && !LIGHTWEIGHT_UI
916
+#endif // HAS_MARLINUI_U8GLIB && !LIGHTWEIGHT_UI

+ 2
- 2
Marlin/src/lcd/dogm/u8g_dev_ssd1306_sh1106_128x64_I2C.cpp 查看文件

67
 
67
 
68
 #include "../../inc/MarlinConfigPre.h"
68
 #include "../../inc/MarlinConfigPre.h"
69
 
69
 
70
-#if HAS_GRAPHICAL_LCD
70
+#if HAS_MARLINUI_U8GLIB
71
 
71
 
72
 #include "HAL_LCD_com_defines.h"
72
 #include "HAL_LCD_com_defines.h"
73
 
73
 
300
   return 1;
300
   return 1;
301
 }
301
 }
302
 
302
 
303
-#endif // HAS_GRAPHICAL_LCD
303
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/u8g_dev_st7565_64128n_HAL.cpp 查看文件

55
 
55
 
56
 #include "../../inc/MarlinConfig.h"
56
 #include "../../inc/MarlinConfig.h"
57
 
57
 
58
-#if HAS_GRAPHICAL_LCD
58
+#if HAS_MARLINUI_U8GLIB
59
 
59
 
60
 #include <U8glib.h>
60
 #include <U8glib.h>
61
 #include "HAL_LCD_com_defines.h"
61
 #include "HAL_LCD_com_defines.h"
233
 U8G_PB_DEV(u8g_dev_st7565_64128n_HAL_hw_spi, WIDTH, HEIGHT, PAGE_HEIGHT, u8g_dev_st7565_64128n_HAL_fn, U8G_COM_HAL_HW_SPI_FN);
233
 U8G_PB_DEV(u8g_dev_st7565_64128n_HAL_hw_spi, WIDTH, HEIGHT, PAGE_HEIGHT, u8g_dev_st7565_64128n_HAL_fn, U8G_COM_HAL_HW_SPI_FN);
234
 u8g_dev_t u8g_dev_st7565_64128n_HAL_2x_hw_spi = { u8g_dev_st7565_64128n_HAL_2x_fn, &u8g_dev_st7565_64128n_HAL_2x_pb, U8G_COM_HAL_HW_SPI_FN };
234
 u8g_dev_t u8g_dev_st7565_64128n_HAL_2x_hw_spi = { u8g_dev_st7565_64128n_HAL_2x_fn, &u8g_dev_st7565_64128n_HAL_2x_pb, U8G_COM_HAL_HW_SPI_FN };
235
 
235
 
236
-#endif // HAS_GRAPHICAL_LCD
236
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/u8g_dev_st7920_128x64_HAL.cpp 查看文件

55
 
55
 
56
 #include "../../inc/MarlinConfigPre.h"
56
 #include "../../inc/MarlinConfigPre.h"
57
 
57
 
58
-#if HAS_GRAPHICAL_LCD
58
+#if HAS_MARLINUI_U8GLIB
59
 
59
 
60
 #include "HAL_LCD_com_defines.h"
60
 #include "HAL_LCD_com_defines.h"
61
 
61
 
205
   u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_SW_SPI };
205
   u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_SW_SPI };
206
 #endif
206
 #endif
207
 
207
 
208
-#endif // HAS_GRAPHICAL_LCD
208
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/u8g_dev_tft_320x240_upscale_from_128x64.cpp 查看文件

56
 
56
 
57
 #include "../../inc/MarlinConfig.h"
57
 #include "../../inc/MarlinConfig.h"
58
 
58
 
59
-#if HAS_GRAPHICAL_LCD && (PIN_EXISTS(FSMC_CS) || ENABLED(SPI_GRAPHICAL_TFT))
59
+#if HAS_MARLINUI_U8GLIB && (PIN_EXISTS(FSMC_CS) || ENABLED(SPI_GRAPHICAL_TFT))
60
 
60
 
61
 #include "HAL_LCD_com_defines.h"
61
 #include "HAL_LCD_com_defines.h"
62
 #include "ultralcd_DOGM.h"
62
 #include "ultralcd_DOGM.h"
813
 
813
 
814
 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_TFT_FN);
814
 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_TFT_FN);
815
 
815
 
816
-#endif // HAS_GRAPHICAL_LCD && FSMC_CS
816
+#endif // HAS_MARLINUI_U8GLIB && FSMC_CS

+ 2
- 2
Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp 查看文件

55
 
55
 
56
 #include "../../inc/MarlinConfigPre.h"
56
 #include "../../inc/MarlinConfigPre.h"
57
 
57
 
58
-#if HAS_GRAPHICAL_LCD
58
+#if HAS_MARLINUI_U8GLIB
59
 
59
 
60
 #include "HAL_LCD_com_defines.h"
60
 #include "HAL_LCD_com_defines.h"
61
 
61
 
210
 u8g_dev_t u8g_dev_uc1701_mini12864_HAL_2x_sw_spi = { u8g_dev_uc1701_mini12864_HAL_2x_fn, &u8g_dev_uc1701_mini12864_HAL_2x_pb, U8G_COM_HAL_SW_SPI_FN };
210
 u8g_dev_t u8g_dev_uc1701_mini12864_HAL_2x_sw_spi = { u8g_dev_uc1701_mini12864_HAL_2x_fn, &u8g_dev_uc1701_mini12864_HAL_2x_pb, U8G_COM_HAL_SW_SPI_FN };
211
 u8g_dev_t u8g_dev_uc1701_mini12864_HAL_2x_hw_spi = { u8g_dev_uc1701_mini12864_HAL_2x_fn, &u8g_dev_uc1701_mini12864_HAL_2x_pb, U8G_COM_HAL_HW_SPI_FN };
211
 u8g_dev_t u8g_dev_uc1701_mini12864_HAL_2x_hw_spi = { u8g_dev_uc1701_mini12864_HAL_2x_fn, &u8g_dev_uc1701_mini12864_HAL_2x_pb, U8G_COM_HAL_HW_SPI_FN };
212
 
212
 
213
-#endif // HAS_GRAPHICAL_LCD
213
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/u8g_fontutf8.cpp 查看文件

9
 
9
 
10
 #include "../../inc/MarlinConfigPre.h"
10
 #include "../../inc/MarlinConfigPre.h"
11
 
11
 
12
-#if HAS_GRAPHICAL_LCD
12
+#if HAS_MARLINUI_U8GLIB
13
 
13
 
14
 #include <string.h>
14
 #include <string.h>
15
 #include "../fontutils.h"
15
 #include "../fontutils.h"
312
   return data.adv;
312
   return data.adv;
313
 }
313
 }
314
 
314
 
315
-#endif // HAS_GRAPHICAL_LCD
315
+#endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/dogm/ultralcd_DOGM.cpp 查看文件

37
 
37
 
38
 #include "../../inc/MarlinConfigPre.h"
38
 #include "../../inc/MarlinConfigPre.h"
39
 
39
 
40
-#if HAS_GRAPHICAL_LCD
40
+#if HAS_MARLINUI_U8GLIB
41
 
41
 
42
 #include "ultralcd_DOGM.h"
42
 #include "ultralcd_DOGM.h"
43
 #include "u8g_fontutf8.h"
43
 #include "u8g_fontutf8.h"
687
 
687
 
688
 #endif // HAS_LCD_MENU
688
 #endif // HAS_LCD_MENU
689
 
689
 
690
-#endif // HAS_GRAPHICAL_LCD
690
+#endif // HAS_MARLINUI_U8GLIB

+ 1
- 1
Marlin/src/lcd/fontutils.cpp 查看文件

9
 
9
 
10
 #include "../inc/MarlinConfig.h"
10
 #include "../inc/MarlinConfig.h"
11
 
11
 
12
-#if HAS_SPI_LCD
12
+#if HAS_WIRED_LCD
13
   #include "ultralcd.h"
13
   #include "ultralcd.h"
14
   #include "../MarlinCore.h"
14
   #include "../MarlinCore.h"
15
 #endif
15
 #endif

+ 2
- 2
Marlin/src/lcd/lcdprint.cpp 查看文件

26
 
26
 
27
 #include "../inc/MarlinConfigPre.h"
27
 #include "../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_SPI_LCD
29
+#if HAS_WIRED_LCD
30
 
30
 
31
 #include "lcdprint.h"
31
 #include "lcdprint.h"
32
 
32
 
73
   return n;
73
   return n;
74
 }
74
 }
75
 
75
 
76
-#endif // HAS_SPI_LCD
76
+#endif // HAS_WIRED_LCD

+ 1
- 1
Marlin/src/lcd/lcdprint.h 查看文件

34
 
34
 
35
 #include "../inc/MarlinConfig.h"
35
 #include "../inc/MarlinConfig.h"
36
 
36
 
37
-#if HAS_GRAPHICAL_LCD
37
+#if HAS_MARLINUI_U8GLIB
38
 
38
 
39
   #include "dogm/u8g_fontutf8.h"
39
   #include "dogm/u8g_fontutf8.h"
40
   typedef u8g_uint_t lcd_uint_t;
40
   typedef u8g_uint_t lcd_uint_t;

+ 2
- 2
Marlin/src/lcd/menu/menu.cpp 查看文件

213
     clear_lcd();
213
     clear_lcd();
214
 
214
 
215
     // Re-initialize custom characters that may be re-used
215
     // Re-initialize custom characters that may be re-used
216
-    #if HAS_CHARACTER_LCD
216
+    #if HAS_MARLINUI_HD44780
217
       if (TERN1(AUTO_BED_LEVELING_UBL, !ubl.lcd_map_control))
217
       if (TERN1(AUTO_BED_LEVELING_UBL, !ubl.lcd_map_control))
218
         set_custom_characters(on_status_screen() ? CHARSET_INFO : CHARSET_MENU);
218
         set_custom_characters(on_status_screen() ? CHARSET_INFO : CHARSET_MENU);
219
     #endif
219
     #endif
220
 
220
 
221
     refresh(LCDVIEW_CALL_REDRAW_NEXT);
221
     refresh(LCDVIEW_CALL_REDRAW_NEXT);
222
     screen_changed = true;
222
     screen_changed = true;
223
-    TERN_(HAS_GRAPHICAL_LCD, drawing_screen = false);
223
+    TERN_(HAS_MARLINUI_U8GLIB, drawing_screen = false);
224
 
224
 
225
     TERN_(HAS_LCD_MENU, encoder_direction_normal());
225
     TERN_(HAS_LCD_MENU, encoder_direction_normal());
226
 
226
 

+ 2
- 2
Marlin/src/lcd/menu/menu.h 查看文件

39
 #define SS_INVERT  0x02
39
 #define SS_INVERT  0x02
40
 #define SS_DEFAULT SS_CENTER
40
 #define SS_DEFAULT SS_CENTER
41
 
41
 
42
-#if HAS_GRAPHICAL_LCD && EITHER(BABYSTEP_ZPROBE_GFX_OVERLAY, MESH_EDIT_GFX_OVERLAY)
42
+#if HAS_MARLINUI_U8GLIB && EITHER(BABYSTEP_ZPROBE_GFX_OVERLAY, MESH_EDIT_GFX_OVERLAY)
43
   void _lcd_zoffset_overlay_gfx(const float zvalue);
43
   void _lcd_zoffset_overlay_gfx(const float zvalue);
44
 #endif
44
 #endif
45
 
45
 
215
   void line_to_z(const float &z);
215
   void line_to_z(const float &z);
216
 #endif
216
 #endif
217
 
217
 
218
-#if HAS_GRAPHICAL_LCD && EITHER(BABYSTEP_ZPROBE_GFX_OVERLAY, MESH_EDIT_GFX_OVERLAY)
218
+#if HAS_MARLINUI_U8GLIB && EITHER(BABYSTEP_ZPROBE_GFX_OVERLAY, MESH_EDIT_GFX_OVERLAY)
219
   void _lcd_zoffset_overlay_gfx(const float zvalue);
219
   void _lcd_zoffset_overlay_gfx(const float zvalue);
220
 #endif
220
 #endif
221
 
221
 

+ 6
- 2
Marlin/src/lcd/menu/menu_configuration.cpp 查看文件

60
     static int8_t bar_percent = 0;
60
     static int8_t bar_percent = 0;
61
     if (ui.use_click()) {
61
     if (ui.use_click()) {
62
       ui.goto_previous_screen();
62
       ui.goto_previous_screen();
63
-      ui.set_custom_characters(CHARSET_MENU);
63
+      #if HAS_MARLINUI_HD44780
64
+        ui.set_custom_characters(CHARSET_MENU);
65
+      #endif
64
       return;
66
       return;
65
     }
67
     }
66
     bar_percent += (int8_t)ui.encoderPosition;
68
     bar_percent += (int8_t)ui.encoderPosition;
73
 
75
 
74
   void _progress_bar_test() {
76
   void _progress_bar_test() {
75
     ui.goto_screen(progress_bar_test);
77
     ui.goto_screen(progress_bar_test);
76
-    ui.set_custom_characters(CHARSET_INFO);
78
+    #if HAS_MARLINUI_HD44780
79
+      ui.set_custom_characters(CHARSET_INFO);
80
+    #endif
77
   }
81
   }
78
 
82
 
79
 #endif // LCD_PROGRESS_BAR_TEST
83
 #endif // LCD_PROGRESS_BAR_TEST

+ 2
- 2
Marlin/src/lcd/menu/menu_media.cpp 查看文件

99
       encoderTopLine = 0;
99
       encoderTopLine = 0;
100
       ui.encoderPosition = 2 * (ENCODER_STEPS_PER_MENU_ITEM);
100
       ui.encoderPosition = 2 * (ENCODER_STEPS_PER_MENU_ITEM);
101
       ui.screen_changed = true;
101
       ui.screen_changed = true;
102
-      TERN_(HAS_GRAPHICAL_LCD, ui.drawing_screen = false);
102
+      TERN_(HAS_MARLINUI_U8GLIB, ui.drawing_screen = false);
103
       ui.refresh();
103
       ui.refresh();
104
     }
104
     }
105
 };
105
 };
107
 void menu_media() {
107
 void menu_media() {
108
   ui.encoder_direction_menus();
108
   ui.encoder_direction_menus();
109
 
109
 
110
-  #if HAS_GRAPHICAL_LCD
110
+  #if HAS_MARLINUI_U8GLIB
111
     static uint16_t fileCnt;
111
     static uint16_t fileCnt;
112
     if (ui.first_page) fileCnt = card.get_num_Files();
112
     if (ui.first_page) fileCnt = card.get_num_Files();
113
   #else
113
   #else

+ 1
- 1
Marlin/src/lcd/menu/menu_motion.cpp 查看文件

205
       #if DISABLED(HAS_GRAPHICAL_TFT)
205
       #if DISABLED(HAS_GRAPHICAL_TFT)
206
         extern const char NUL_STR[];
206
         extern const char NUL_STR[];
207
         SUBMENU_P(NUL_STR, []{ _goto_manual_move(float(SHORT_MANUAL_Z_MOVE)); });
207
         SUBMENU_P(NUL_STR, []{ _goto_manual_move(float(SHORT_MANUAL_Z_MOVE)); });
208
-        MENU_ITEM_ADDON_START(0 + ENABLED(HAS_CHARACTER_LCD));
208
+        MENU_ITEM_ADDON_START(0 + ENABLED(HAS_MARLINUI_HD44780));
209
         lcd_put_u8str(tmp);
209
         lcd_put_u8str(tmp);
210
         MENU_ITEM_ADDON_END();
210
         MENU_ITEM_ADDON_END();
211
       #else
211
       #else

+ 4
- 4
Marlin/src/lcd/menu/menu_tune.cpp 查看文件

46
 
46
 
47
   #include "../../feature/babystep.h"
47
   #include "../../feature/babystep.h"
48
   #include "../lcdprint.h"
48
   #include "../lcdprint.h"
49
-  #if HAS_GRAPHICAL_LCD
49
+  #if HAS_MARLINUI_U8GLIB
50
     #include "../dogm/ultralcd_DOGM.h"
50
     #include "../dogm/ultralcd_DOGM.h"
51
   #endif
51
   #endif
52
 
52
 
68
       const float spm = planner.steps_to_mm[axis];
68
       const float spm = planner.steps_to_mm[axis];
69
       MenuEditItemBase::draw_edit_screen(msg, BABYSTEP_TO_STR(spm * babystep.accum));
69
       MenuEditItemBase::draw_edit_screen(msg, BABYSTEP_TO_STR(spm * babystep.accum));
70
       #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
70
       #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
71
-        const bool in_view = TERN1(HAS_GRAPHICAL_LCD, PAGE_CONTAINS(LCD_PIXEL_HEIGHT - MENU_FONT_HEIGHT, LCD_PIXEL_HEIGHT - 1));
71
+        const bool in_view = TERN1(HAS_MARLINUI_U8GLIB, PAGE_CONTAINS(LCD_PIXEL_HEIGHT - MENU_FONT_HEIGHT, LCD_PIXEL_HEIGHT - 1));
72
         if (in_view) {
72
         if (in_view) {
73
-          TERN_(HAS_GRAPHICAL_LCD, ui.set_font(FONT_MENU));
74
-          lcd_moveto(0, TERN(HAS_GRAPHICAL_LCD, LCD_PIXEL_HEIGHT - MENU_FONT_DESCENT, LCD_HEIGHT - 1));
73
+          TERN_(HAS_MARLINUI_U8GLIB, ui.set_font(FONT_MENU));
74
+          lcd_moveto(0, TERN(HAS_MARLINUI_U8GLIB, LCD_PIXEL_HEIGHT - MENU_FONT_DESCENT, LCD_HEIGHT - 1));
75
           lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
75
           lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
76
           lcd_put_wchar(':');
76
           lcd_put_wchar(':');
77
           lcd_put_u8str(BABYSTEP_TO_STR(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));
77
           lcd_put_u8str(BABYSTEP_TO_STR(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));

+ 1
- 1
Marlin/src/lcd/touch/touch_buttons.cpp 查看文件

74
 void TouchButtons::init() { touchIO.Init(); }
74
 void TouchButtons::init() { touchIO.Init(); }
75
 
75
 
76
 uint8_t TouchButtons::read_buttons() {
76
 uint8_t TouchButtons::read_buttons() {
77
-  #ifdef HAS_SPI_LCD
77
+  #ifdef HAS_WIRED_LCD
78
     int16_t x, y;
78
     int16_t x, y;
79
 
79
 
80
     if (!touchIO.getRawPoint(&x, &y)) return 0;
80
     if (!touchIO.getRawPoint(&x, &y)) return 0;

+ 14
- 14
Marlin/src/lcd/ultralcd.cpp 查看文件

51
 
51
 
52
 constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
52
 constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
53
 
53
 
54
-#if HAS_SPI_LCD
54
+#if HAS_WIRED_LCD
55
   #if ENABLED(STATUS_MESSAGE_SCROLLING)
55
   #if ENABLED(STATUS_MESSAGE_SCROLLING)
56
     uint8_t MarlinUI::status_scroll_offset; // = 0
56
     uint8_t MarlinUI::status_scroll_offset; // = 0
57
     constexpr uint8_t MAX_MESSAGE_LENGTH = _MAX(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE * 2 * (LCD_WIDTH));
57
     constexpr uint8_t MAX_MESSAGE_LENGTH = _MAX(LONG_FILENAME_LENGTH, MAX_LANG_CHARSIZE * 2 * (LCD_WIDTH));
62
   constexpr uint8_t MAX_MESSAGE_LENGTH = 63;
62
   constexpr uint8_t MAX_MESSAGE_LENGTH = 63;
63
 #endif
63
 #endif
64
 
64
 
65
-#if EITHER(HAS_SPI_LCD, EXTENSIBLE_UI)
65
+#if EITHER(HAS_WIRED_LCD, EXTENSIBLE_UI)
66
   uint8_t MarlinUI::alert_level; // = 0
66
   uint8_t MarlinUI::alert_level; // = 0
67
   char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1];
67
   char MarlinUI::status_message[MAX_MESSAGE_LENGTH + 1];
68
 #endif
68
 #endif
114
   }
114
   }
115
 #endif
115
 #endif
116
 
116
 
117
-#if HAS_SPI_LCD
117
+#if HAS_WIRED_LCD
118
 
118
 
119
-#if HAS_GRAPHICAL_LCD
119
+#if HAS_MARLINUI_U8GLIB
120
   #include "dogm/ultralcd_DOGM.h"
120
   #include "dogm/ultralcd_DOGM.h"
121
 #endif
121
 #endif
122
 
122
 
167
 
167
 
168
 millis_t MarlinUI::next_button_update_ms; // = 0
168
 millis_t MarlinUI::next_button_update_ms; // = 0
169
 
169
 
170
-#if HAS_GRAPHICAL_LCD
170
+#if HAS_MARLINUI_U8GLIB
171
   bool MarlinUI::drawing_screen, MarlinUI::first_page; // = false
171
   bool MarlinUI::drawing_screen, MarlinUI::first_page; // = false
172
 #endif
172
 #endif
173
 
173
 
372
 
372
 
373
   #endif // HAS_SHIFT_ENCODER
373
   #endif // HAS_SHIFT_ENCODER
374
 
374
 
375
-  #if HAS_ENCODER_ACTION && HAS_SLOW_BUTTONS
375
+  #if BOTH(HAS_ENCODER_ACTION, HAS_SLOW_BUTTONS)
376
     slow_buttons = 0;
376
     slow_buttons = 0;
377
   #endif
377
   #endif
378
 
378
 
873
 
873
 
874
   #endif // HAS_LCD_MENU
874
   #endif // HAS_LCD_MENU
875
 
875
 
876
-  if (ELAPSED(ms, next_lcd_update_ms) || TERN0(HAS_GRAPHICAL_LCD, drawing_screen)) {
876
+  if (ELAPSED(ms, next_lcd_update_ms) || TERN0(HAS_MARLINUI_U8GLIB, drawing_screen)) {
877
 
877
 
878
     next_lcd_update_ms = ms + LCD_UPDATE_INTERVAL;
878
     next_lcd_update_ms = ms + LCD_UPDATE_INTERVAL;
879
 
879
 
971
     // This runs every ~100ms when idling often enough.
971
     // This runs every ~100ms when idling often enough.
972
     // Instead of tracking changes just redraw the Status Screen once per second.
972
     // Instead of tracking changes just redraw the Status Screen once per second.
973
     if (on_status_screen() && !lcd_status_update_delay--) {
973
     if (on_status_screen() && !lcd_status_update_delay--) {
974
-      lcd_status_update_delay = TERN(HAS_GRAPHICAL_LCD, 12, 9);
974
+      lcd_status_update_delay = TERN(HAS_MARLINUI_U8GLIB, 12, 9);
975
       if (max_display_update_time) max_display_update_time--;  // Be sure never go to a very big number
975
       if (max_display_update_time) max_display_update_time--;  // Be sure never go to a very big number
976
       refresh(LCDVIEW_REDRAW_NOW);
976
       refresh(LCDVIEW_REDRAW_NOW);
977
     }
977
     }
1010
 
1010
 
1011
       TERN_(HAS_ADC_BUTTONS, keypad_buttons = 0);
1011
       TERN_(HAS_ADC_BUTTONS, keypad_buttons = 0);
1012
 
1012
 
1013
-      #if HAS_GRAPHICAL_LCD
1013
+      #if HAS_MARLINUI_U8GLIB
1014
 
1014
 
1015
         #if ENABLED(LIGHTWEIGHT_UI)
1015
         #if ENABLED(LIGHTWEIGHT_UI)
1016
           const bool in_status = on_status_screen(),
1016
           const bool in_status = on_status_screen(),
1294
 
1294
 
1295
 #endif // HAS_ENCODER_ACTION
1295
 #endif // HAS_ENCODER_ACTION
1296
 
1296
 
1297
-#endif // HAS_SPI_LCD
1297
+#endif // HAS_WIRED_LCD
1298
 
1298
 
1299
 #if HAS_DISPLAY
1299
 #if HAS_DISPLAY
1300
 
1300
 
1342
       next_filament_display = ms + 5000UL; // Show status message for 5s
1342
       next_filament_display = ms + 5000UL; // Show status message for 5s
1343
     #endif
1343
     #endif
1344
 
1344
 
1345
-    #if BOTH(HAS_SPI_LCD, STATUS_MESSAGE_SCROLLING)
1345
+    #if BOTH(HAS_WIRED_LCD, STATUS_MESSAGE_SCROLLING)
1346
       status_scroll_offset = 0;
1346
       status_scroll_offset = 0;
1347
     #endif
1347
     #endif
1348
 
1348
 
1501
     set_status_P(print_paused);
1501
     set_status_P(print_paused);
1502
 
1502
 
1503
     #if ENABLED(PARK_HEAD_ON_PAUSE)
1503
     #if ENABLED(PARK_HEAD_ON_PAUSE)
1504
-      TERN_(HAS_SPI_LCD, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT)); // Show message immediately to let user know about pause in progress
1504
+      TERN_(HAS_WIRED_LCD, lcd_pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT)); // Show message immediately to let user know about pause in progress
1505
       queue.inject_P(PSTR("M25 P\nM24"));
1505
       queue.inject_P(PSTR("M25 P\nM24"));
1506
     #elif ENABLED(SDSUPPORT)
1506
     #elif ENABLED(SDSUPPORT)
1507
       queue.inject_P(PSTR("M25"));
1507
       queue.inject_P(PSTR("M25"));
1610
 
1610
 
1611
     refresh();
1611
     refresh();
1612
 
1612
 
1613
-    #if HAS_SPI_LCD || defined(LED_BACKLIGHT_TIMEOUT)
1613
+    #if HAS_WIRED_LCD || defined(LED_BACKLIGHT_TIMEOUT)
1614
       const millis_t ms = millis();
1614
       const millis_t ms = millis();
1615
     #endif
1615
     #endif
1616
 
1616
 
1617
-    TERN_(HAS_SPI_LCD, next_lcd_update_ms = ms + LCD_UPDATE_INTERVAL); // Delay LCD update for SD activity
1617
+    TERN_(HAS_WIRED_LCD, next_lcd_update_ms = ms + LCD_UPDATE_INTERVAL); // Delay LCD update for SD activity
1618
 
1618
 
1619
     #ifdef LED_BACKLIGHT_TIMEOUT
1619
     #ifdef LED_BACKLIGHT_TIMEOUT
1620
       leds.reset_timeout(ms);
1620
       leds.reset_timeout(ms);

+ 11
- 11
Marlin/src/lcd/ultralcd.h 查看文件

40
 #if HAS_ENCODER_WHEEL || ANY_BUTTON(ENC, BACK, UP, DWN, LFT, RT)
40
 #if HAS_ENCODER_WHEEL || ANY_BUTTON(ENC, BACK, UP, DWN, LFT, RT)
41
   #define HAS_DIGITAL_BUTTONS 1
41
   #define HAS_DIGITAL_BUTTONS 1
42
 #endif
42
 #endif
43
-#if !HAS_ADC_BUTTONS && (ENABLED(REPRAPWORLD_KEYPAD) || (HAS_SPI_LCD && DISABLED(NEWPANEL)))
43
+#if !HAS_ADC_BUTTONS && (ENABLED(REPRAPWORLD_KEYPAD) || (HAS_WIRED_LCD && DISABLED(NEWPANEL)))
44
   #define HAS_SHIFT_ENCODER 1
44
   #define HAS_SHIFT_ENCODER 1
45
 #endif
45
 #endif
46
 
46
 
53
   #define MULTI_MANUAL 1
53
   #define MULTI_MANUAL 1
54
 #endif
54
 #endif
55
 
55
 
56
-#if HAS_SPI_LCD
56
+#if HAS_WIRED_LCD
57
 
57
 
58
   #include "../MarlinCore.h"
58
   #include "../MarlinCore.h"
59
 
59
 
104
 
104
 
105
   #endif // HAS_LCD_MENU
105
   #endif // HAS_LCD_MENU
106
 
106
 
107
-#endif // HAS_SPI_LCD
107
+#endif // HAS_WIRED_LCD
108
 
108
 
109
 // REPRAPWORLD_KEYPAD (and ADC_KEYPAD)
109
 // REPRAPWORLD_KEYPAD (and ADC_KEYPAD)
110
 #if ENABLED(REPRAPWORLD_KEYPAD)
110
 #if ENABLED(REPRAPWORLD_KEYPAD)
231
   #endif
231
   #endif
232
 #endif
232
 #endif
233
 
233
 
234
-#if HAS_GRAPHICAL_LCD
234
+#if HAS_MARLINUI_U8GLIB
235
   enum MarlinFont : uint8_t {
235
   enum MarlinFont : uint8_t {
236
     FONT_STATUSMENU = 1,
236
     FONT_STATUSMENU = 1,
237
     FONT_EDIT,
237
     FONT_EDIT,
316
     static void refresh();
316
     static void refresh();
317
   #else
317
   #else
318
     FORCE_INLINE static void refresh() {
318
     FORCE_INLINE static void refresh() {
319
-      TERN_(HAS_SPI_LCD, refresh(LCDVIEW_CLEAR_CALL_REDRAW));
319
+      TERN_(HAS_WIRED_LCD, refresh(LCDVIEW_CLEAR_CALL_REDRAW));
320
     }
320
     }
321
   #endif
321
   #endif
322
 
322
 
323
-  #if HAS_SPI_LCD
323
+  #if HAS_WIRED_LCD
324
     static bool detected();
324
     static bool detected();
325
     static void init_lcd();
325
     static void init_lcd();
326
   #else
326
   #else
381
     static void pause_print();
381
     static void pause_print();
382
     static void resume_print();
382
     static void resume_print();
383
 
383
 
384
-    #if HAS_SPI_LCD
384
+    #if HAS_WIRED_LCD
385
 
385
 
386
       static millis_t next_button_update_ms;
386
       static millis_t next_button_update_ms;
387
 
387
 
403
         static void show_bootscreen();
403
         static void show_bootscreen();
404
       #endif
404
       #endif
405
 
405
 
406
-      #if HAS_GRAPHICAL_LCD
406
+      #if HAS_MARLINUI_U8GLIB
407
 
407
 
408
         static void set_font(const MarlinFont font_nr);
408
         static void set_font(const MarlinFont font_nr);
409
 
409
 
458
 
458
 
459
     #endif
459
     #endif
460
 
460
 
461
-    #if HAS_GRAPHICAL_LCD
461
+    #if HAS_MARLINUI_U8GLIB
462
       static bool drawing_screen, first_page;
462
       static bool drawing_screen, first_page;
463
     #else
463
     #else
464
       static constexpr bool drawing_screen = false, first_page = true;
464
       static constexpr bool drawing_screen = false, first_page = true;
577
 
577
 
578
     static void draw_select_screen_prompt(PGM_P const pref, const char * const string=nullptr, PGM_P const suff=nullptr);
578
     static void draw_select_screen_prompt(PGM_P const pref, const char * const string=nullptr, PGM_P const suff=nullptr);
579
 
579
 
580
-  #elif HAS_SPI_LCD
580
+  #elif HAS_WIRED_LCD
581
 
581
 
582
     static constexpr bool lcd_clicked = false;
582
     static constexpr bool lcd_clicked = false;
583
     static constexpr bool on_status_screen() { return true; }
583
     static constexpr bool on_status_screen() { return true; }
692
     static void finish_status(const bool persist);
692
     static void finish_status(const bool persist);
693
   #endif
693
   #endif
694
 
694
 
695
-  #if HAS_SPI_LCD
695
+  #if HAS_WIRED_LCD
696
     #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS > 0
696
     #if HAS_LCD_MENU && LCD_TIMEOUT_TO_STATUS > 0
697
       static bool defer_return_to_status;
697
       static bool defer_return_to_status;
698
     #else
698
     #else

+ 2
- 2
Marlin/src/module/endstops.cpp 查看文件

351
   if (hit_state == prev_hit_state) return;
351
   if (hit_state == prev_hit_state) return;
352
   prev_hit_state = hit_state;
352
   prev_hit_state = hit_state;
353
   if (hit_state) {
353
   if (hit_state) {
354
-    #if HAS_SPI_LCD
354
+    #if HAS_WIRED_LCD
355
       char chrX = ' ', chrY = ' ', chrZ = ' ', chrP = ' ';
355
       char chrX = ' ', chrY = ' ', chrZ = ' ', chrP = ' ';
356
       #define _SET_STOP_CHAR(A,C) (chr## A = C)
356
       #define _SET_STOP_CHAR(A,C) (chr## A = C)
357
     #else
357
     #else
382
     #endif
382
     #endif
383
     SERIAL_EOL();
383
     SERIAL_EOL();
384
 
384
 
385
-    TERN_(HAS_SPI_LCD, ui.status_printf_P(0, PSTR(S_FMT " %c %c %c %c"), GET_TEXT(MSG_LCD_ENDSTOPS), chrX, chrY, chrZ, chrP));
385
+    TERN_(HAS_WIRED_LCD, ui.status_printf_P(0, PSTR(S_FMT " %c %c %c %c"), GET_TEXT(MSG_LCD_ENDSTOPS), chrX, chrY, chrZ, chrP));
386
 
386
 
387
     #if BOTH(SD_ABORT_ON_ENDSTOP_HIT, SDSUPPORT)
387
     #if BOTH(SD_ABORT_ON_ENDSTOP_HIT, SDSUPPORT)
388
       if (planner.abort_on_endstop_hit) {
388
       if (planner.abort_on_endstop_hit) {

+ 8
- 8
Marlin/src/module/planner.cpp 查看文件

234
   xyze_pos_t Planner::position_cart;
234
   xyze_pos_t Planner::position_cart;
235
 #endif
235
 #endif
236
 
236
 
237
-#if HAS_SPI_LCD
237
+#if HAS_WIRED_LCD
238
   volatile uint32_t Planner::block_buffer_runtime_us = 0;
238
   volatile uint32_t Planner::block_buffer_runtime_us = 0;
239
 #endif
239
 #endif
240
 
240
 
747
     if (TEST(block->flag, BLOCK_BIT_RECALCULATE)) return nullptr;
747
     if (TEST(block->flag, BLOCK_BIT_RECALCULATE)) return nullptr;
748
 
748
 
749
     // We can't be sure how long an active block will take, so don't count it.
749
     // We can't be sure how long an active block will take, so don't count it.
750
-    TERN_(HAS_SPI_LCD, block_buffer_runtime_us -= block->segment_time_us);
750
+    TERN_(HAS_WIRED_LCD, block_buffer_runtime_us -= block->segment_time_us);
751
 
751
 
752
     // As this block is busy, advance the nonbusy block pointer
752
     // As this block is busy, advance the nonbusy block pointer
753
     block_buffer_nonbusy = next_block_index(block_buffer_tail);
753
     block_buffer_nonbusy = next_block_index(block_buffer_tail);
761
   }
761
   }
762
 
762
 
763
   // The queue became empty
763
   // The queue became empty
764
-  TERN_(HAS_SPI_LCD, clear_block_buffer_runtime()); // paranoia. Buffer is empty now - so reset accumulated time to zero.
764
+  TERN_(HAS_WIRED_LCD, clear_block_buffer_runtime()); // paranoia. Buffer is empty now - so reset accumulated time to zero.
765
 
765
 
766
   return nullptr;
766
   return nullptr;
767
 }
767
 }
1578
   // forced to empty, there's no risk the ISR will touch this.
1578
   // forced to empty, there's no risk the ISR will touch this.
1579
   delay_before_delivering = BLOCK_DELAY_FOR_1ST_MOVE;
1579
   delay_before_delivering = BLOCK_DELAY_FOR_1ST_MOVE;
1580
 
1580
 
1581
-  #if HAS_SPI_LCD
1581
+  #if HAS_WIRED_LCD
1582
     // Clear the accumulated runtime
1582
     // Clear the accumulated runtime
1583
     clear_block_buffer_runtime();
1583
     clear_block_buffer_runtime();
1584
   #endif
1584
   #endif
2081
   const uint8_t moves_queued = nonbusy_movesplanned();
2081
   const uint8_t moves_queued = nonbusy_movesplanned();
2082
 
2082
 
2083
   // Slow down when the buffer starts to empty, rather than wait at the corner for a buffer refill
2083
   // Slow down when the buffer starts to empty, rather than wait at the corner for a buffer refill
2084
-  #if EITHER(SLOWDOWN, HAS_SPI_LCD) || defined(XY_FREQUENCY_LIMIT)
2084
+  #if EITHER(SLOWDOWN, HAS_WIRED_LCD) || defined(XY_FREQUENCY_LIMIT)
2085
     // Segment time im micro seconds
2085
     // Segment time im micro seconds
2086
     int32_t segment_time_us = LROUND(1000000.0f / inverse_secs);
2086
     int32_t segment_time_us = LROUND(1000000.0f / inverse_secs);
2087
   #endif
2087
   #endif
2096
         // Buffer is draining so add extra time. The amount of time added increases if the buffer is still emptied more.
2096
         // Buffer is draining so add extra time. The amount of time added increases if the buffer is still emptied more.
2097
         const int32_t nst = segment_time_us + LROUND(2 * time_diff / moves_queued);
2097
         const int32_t nst = segment_time_us + LROUND(2 * time_diff / moves_queued);
2098
         inverse_secs = 1000000.0f / nst;
2098
         inverse_secs = 1000000.0f / nst;
2099
-        #if defined(XY_FREQUENCY_LIMIT) || HAS_SPI_LCD
2099
+        #if defined(XY_FREQUENCY_LIMIT) || HAS_WIRED_LCD
2100
           segment_time_us = nst;
2100
           segment_time_us = nst;
2101
         #endif
2101
         #endif
2102
       }
2102
       }
2103
     }
2103
     }
2104
   #endif
2104
   #endif
2105
 
2105
 
2106
-  #if HAS_SPI_LCD
2106
+  #if HAS_WIRED_LCD
2107
     // Protect the access to the position.
2107
     // Protect the access to the position.
2108
     const bool was_enabled = stepper.suspend();
2108
     const bool was_enabled = stepper.suspend();
2109
 
2109
 
3029
   #endif
3029
   #endif
3030
 }
3030
 }
3031
 
3031
 
3032
-#if HAS_SPI_LCD
3032
+#if HAS_WIRED_LCD
3033
 
3033
 
3034
   uint16_t Planner::block_buffer_runtime() {
3034
   uint16_t Planner::block_buffer_runtime() {
3035
     #ifdef __AVR__
3035
     #ifdef __AVR__

+ 3
- 3
Marlin/src/module/planner.h 查看文件

218
     uint8_t valve_pressure, e_to_p_pressure;
218
     uint8_t valve_pressure, e_to_p_pressure;
219
   #endif
219
   #endif
220
 
220
 
221
-  #if HAS_SPI_LCD
221
+  #if HAS_WIRED_LCD
222
     uint32_t segment_time_us;
222
     uint32_t segment_time_us;
223
   #endif
223
   #endif
224
 
224
 
438
       static uint8_t g_uc_extruder_last_move[EXTRUDERS];
438
       static uint8_t g_uc_extruder_last_move[EXTRUDERS];
439
     #endif
439
     #endif
440
 
440
 
441
-    #if HAS_SPI_LCD
441
+    #if HAS_WIRED_LCD
442
       volatile static uint32_t block_buffer_runtime_us; // Theoretical block buffer runtime in µs
442
       volatile static uint32_t block_buffer_runtime_us; // Theoretical block buffer runtime in µs
443
     #endif
443
     #endif
444
 
444
 
871
         block_buffer_tail = next_block_index(block_buffer_tail);
871
         block_buffer_tail = next_block_index(block_buffer_tail);
872
     }
872
     }
873
 
873
 
874
-    #if HAS_SPI_LCD
874
+    #if HAS_WIRED_LCD
875
       static uint16_t block_buffer_runtime();
875
       static uint16_t block_buffer_runtime();
876
       static void clear_block_buffer_runtime();
876
       static void clear_block_buffer_runtime();
877
     #endif
877
     #endif

+ 2
- 2
Marlin/src/pins/esp32/pins_MRR_ESPE.h 查看文件

124
 // LCDs and Controllers //
124
 // LCDs and Controllers //
125
 //////////////////////////
125
 //////////////////////////
126
 
126
 
127
-#if HAS_GRAPHICAL_LCD
127
+#if HAS_MARLINUI_U8GLIB
128
 
128
 
129
   #define LCD_PINS_RS                         13
129
   #define LCD_PINS_RS                         13
130
   #define LCD_PINS_ENABLE                     17
130
   #define LCD_PINS_ENABLE                     17
152
   #define BTN_EN2                             12
152
   #define BTN_EN2                             12
153
   #define BTN_ENC                             14
153
   #define BTN_ENC                             14
154
 
154
 
155
-#endif // HAS_GRAPHICAL_LCD
155
+#endif // HAS_MARLINUI_U8GLIB
156
 
156
 
157
 // Hardware serial pins
157
 // Hardware serial pins
158
 // Add the following to Configuration.h or Configuration_adv.h to assign
158
 // Add the following to Configuration.h or Configuration_adv.h to assign

+ 2
- 2
Marlin/src/pins/linux/pins_RAMPS_LINUX.h 查看文件

389
 // LCDs and Controllers //
389
 // LCDs and Controllers //
390
 //////////////////////////
390
 //////////////////////////
391
 
391
 
392
-#if HAS_SPI_LCD
392
+#if HAS_WIRED_LCD
393
 
393
 
394
   //
394
   //
395
   // LCD Display output pins
395
   // LCD Display output pins
632
     #endif
632
     #endif
633
   #endif // NEWPANEL
633
   #endif // NEWPANEL
634
 
634
 
635
-#endif // HAS_SPI_LCD
635
+#endif // HAS_WIRED_LCD

+ 3
- 3
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h 查看文件

126
  * for the onboard SD card, and a chip select signal is not provided for the remote
126
  * for the onboard SD card, and a chip select signal is not provided for the remote
127
  * SD card.
127
  * SD card.
128
  */
128
  */
129
-#if HAS_SPI_LCD
129
+#if HAS_WIRED_LCD
130
 
130
 
131
   #define BEEPER_PIN                       P1_31  // EXP1-1
131
   #define BEEPER_PIN                       P1_31  // EXP1-1
132
 
132
 
139
   #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
139
   #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
140
   #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
140
   #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
141
 
141
 
142
-  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
142
+  #if BOTH(HAS_MARLINUI_HD44780, REPRAP_DISCOUNT_SMART_CONTROLLER)
143
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
143
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
144
   #endif
144
   #endif
145
 
145
 
147
     #error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
147
     #error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
148
   #endif
148
   #endif
149
 
149
 
150
-#endif // HAS_SPI_LCD
150
+#endif // HAS_WIRED_LCD
151
 
151
 
152
 /**
152
 /**
153
  * SD Card Reader
153
  * SD Card Reader

+ 3
- 3
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h 查看文件

97
  * for the onboard SD card, and a chip select signal is not provided for the remote
97
  * for the onboard SD card, and a chip select signal is not provided for the remote
98
  * SD card.
98
  * SD card.
99
  */
99
  */
100
-#if HAS_SPI_LCD
100
+#if HAS_WIRED_LCD
101
 
101
 
102
   #define BEEPER_PIN                       P1_31  // EXP1-1
102
   #define BEEPER_PIN                       P1_31  // EXP1-1
103
 
103
 
110
   #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
110
   #define LCD_PINS_ENABLE                  P0_18  // (MOSI) EXP1-3
111
   #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
111
   #define LCD_PINS_D4                      P0_15  // (SCK)  EXP1-5
112
 
112
 
113
-  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
113
+  #if BOTH(HAS_MARLINUI_HD44780, REPRAP_DISCOUNT_SMART_CONTROLLER)
114
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
114
     #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
115
   #endif
115
   #endif
116
 
116
 
118
     #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
118
     #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
119
   #endif
119
   #endif
120
 
120
 
121
-#endif // HAS_SPI_LCD
121
+#endif // HAS_WIRED_LCD
122
 
122
 
123
 /**
123
 /**
124
  * SD Card Reader
124
  * SD Card Reader

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h 查看文件

65
  * by redrawing the screen after SD card accesses.
65
  * by redrawing the screen after SD card accesses.
66
  */
66
  */
67
 
67
 
68
-#if HAS_SPI_LCD
68
+#if HAS_WIRED_LCD
69
   #define BTN_EN1                          P3_26
69
   #define BTN_EN1                          P3_26
70
   #define BTN_EN2                          P3_25
70
   #define BTN_EN2                          P3_25
71
   #define BTN_ENC                          P2_11
71
   #define BTN_ENC                          P2_11

+ 2
- 2
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h 查看文件

214
 #define EXPA2_09_PIN                       P0_15
214
 #define EXPA2_09_PIN                       P0_15
215
 #define EXPA2_10_PIN                       P0_17
215
 #define EXPA2_10_PIN                       P0_17
216
 
216
 
217
-#if HAS_SPI_LCD
217
+#if HAS_WIRED_LCD
218
 
218
 
219
   #if ENABLED(ANET_FULL_GRAPHICS_LCD)
219
   #if ENABLED(ANET_FULL_GRAPHICS_LCD)
220
 
220
 
350
 
350
 
351
   #endif // !CR10_STOCKDISPLAY
351
   #endif // !CR10_STOCKDISPLAY
352
 
352
 
353
-#endif // HAS_SPI_LCD
353
+#endif // HAS_WIRED_LCD
354
 
354
 
355
 //
355
 //
356
 // SD Support
356
 // SD Support

+ 3
- 3
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h 查看文件

232
  *              -----                                             -----
232
  *              -----                                             -----
233
  *              EXP2                                              EXP1
233
  *              EXP2                                              EXP1
234
  */
234
  */
235
-#if HAS_SPI_LCD
235
+#if HAS_WIRED_LCD
236
   #if ENABLED(ANET_FULL_GRAPHICS_LCD)
236
   #if ENABLED(ANET_FULL_GRAPHICS_LCD)
237
 
237
 
238
     #define LCD_PINS_RS                    P1_23
238
     #define LCD_PINS_RS                    P1_23
371
 
371
 
372
     #endif // !FYSETC_MINI_12864
372
     #endif // !FYSETC_MINI_12864
373
 
373
 
374
-  #endif // HAS_GRAPHICAL_LCD
374
+  #endif // HAS_MARLINUI_U8GLIB
375
 
375
 
376
-#endif // HAS_SPI_LCD
376
+#endif // HAS_WIRED_LCD
377
 
377
 
378
 #if HAS_ADC_BUTTONS
378
 #if HAS_ADC_BUTTONS
379
   #error "ADC BUTTONS do not work unmodifed on SKR 1.4, The ADC ports cannot take more than 3.3v."
379
   #error "ADC BUTTONS do not work unmodifed on SKR 1.4, The ADC ports cannot take more than 3.3v."

+ 1
- 1
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h 查看文件

92
 //
92
 //
93
 // LCD / Controller
93
 // LCD / Controller
94
 //
94
 //
95
-#if HAS_SPI_LCD
95
+#if HAS_WIRED_LCD
96
   #define BEEPER_PIN                       P1_30  // (37) not 5V tolerant
96
   #define BEEPER_PIN                       P1_30  // (37) not 5V tolerant
97
 #endif
97
 #endif
98
 
98
 

+ 1
- 1
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h 查看文件

217
  * that the garbage/lines are erased immediately after the SD card accesses are completed.
217
  * that the garbage/lines are erased immediately after the SD card accesses are completed.
218
  */
218
  */
219
 
219
 
220
-#if HAS_SPI_LCD
220
+#if HAS_WIRED_LCD
221
   #define BEEPER_PIN                       P1_31  // EXP1.1
221
   #define BEEPER_PIN                       P1_31  // EXP1.1
222
   #define BTN_ENC                          P1_30  // EXP1.2
222
   #define BTN_ENC                          P1_30  // EXP1.2
223
   #define BTN_EN1                          P3_26  // EXP2.5
223
   #define BTN_EN1                          P3_26  // EXP2.5

+ 3
- 2
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h 查看文件

235
  *                -----                                            -----
235
  *                -----                                            -----
236
  *                EXP1                                             EXP2
236
  *                EXP1                                             EXP2
237
  */
237
  */
238
-#if HAS_SPI_LCD
238
+#if HAS_WIRED_LCD
239
+
239
   #define BEEPER_PIN                       P1_31
240
   #define BEEPER_PIN                       P1_31
240
   #define BTN_ENC                          P1_30
241
   #define BTN_ENC                          P1_30
241
 
242
 
321
 
322
 
322
   #endif // !CR10_STOCKDISPLAY
323
   #endif // !CR10_STOCKDISPLAY
323
 
324
 
324
-#endif // HAS_SPI_LCD
325
+#endif // HAS_WIRED_LCD
325
 
326
 
326
 #ifndef SDCARD_CONNECTION
327
 #ifndef SDCARD_CONNECTION
327
   #define SDCARD_CONNECTION              ONBOARD
328
   #define SDCARD_CONNECTION              ONBOARD

+ 5
- 4
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h 查看文件

326
   #define LCD_PINS_ENABLE                  P0_18  // J3-10 & AUX-3 (SID, MOSI)
326
   #define LCD_PINS_ENABLE                  P0_18  // J3-10 & AUX-3 (SID, MOSI)
327
   #define LCD_PINS_D4                      P2_06  // J3-8 & AUX-3 (SCK, CLK)
327
   #define LCD_PINS_D4                      P2_06  // J3-8 & AUX-3 (SCK, CLK)
328
 
328
 
329
-#elif HAS_SPI_LCD
329
+#elif HAS_WIRED_LCD
330
 
330
 
331
   //#define SCK_PIN                        P0_15  // (52)  system defined J3-9 & AUX-3
331
   //#define SCK_PIN                        P0_15  // (52)  system defined J3-9 & AUX-3
332
   //#define MISO_PIN                       P0_17  // (50)  system defined J3-10 & AUX-3
332
   //#define MISO_PIN                       P0_17  // (50)  system defined J3-10 & AUX-3
370
     #define DOGLCD_SCK                   SCK_PIN
370
     #define DOGLCD_SCK                   SCK_PIN
371
     #define DOGLCD_MOSI                 MOSI_PIN
371
     #define DOGLCD_MOSI                 MOSI_PIN
372
 
372
 
373
-    #define STAT_LED_BLUE_PIN              P0_26  //(63)  may change if cable changes
373
+    #define STAT_LED_BLUE_PIN              P0_26  // (63)  may change if cable changes
374
     #define STAT_LED_RED_PIN               P1_21  // ( 6)  may change if cable changes
374
     #define STAT_LED_RED_PIN               P1_21  // ( 6)  may change if cable changes
375
+
375
   #else
376
   #else
376
 
377
 
377
     #if ENABLED(FYSETC_MINI_12864)
378
     #if ENABLED(FYSETC_MINI_12864)
420
     //#define LCD_SCREEN_ROT_90
421
     //#define LCD_SCREEN_ROT_90
421
     //#define LCD_SCREEN_ROT_180
422
     //#define LCD_SCREEN_ROT_180
422
     //#define LCD_SCREEN_ROT_270
423
     //#define LCD_SCREEN_ROT_270
423
-  #endif
424
+ #endif
424
 
425
 
425
-#endif // HAS_SPI_LCD
426
+#endif // HAS_WIRED_LCD
426
 
427
 
427
 //
428
 //
428
 // Ethernet pins
429
 // Ethernet pins

+ 2
- 2
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h 查看文件

109
 //
109
 //
110
 // Display
110
 // Display
111
 //
111
 //
112
-#if HAS_SPI_LCD
112
+#if HAS_WIRED_LCD
113
 
113
 
114
   #if ENABLED(CR10_STOCKDISPLAY)
114
   #if ENABLED(CR10_STOCKDISPLAY)
115
 
115
 
185
 
185
 
186
   #endif
186
   #endif
187
 
187
 
188
-#endif // HAS_SPI_LCD
188
+#endif // HAS_WIRED_LCD
189
 
189
 
190
 //
190
 //
191
 // SD Support
191
 // SD Support

+ 2
- 2
Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h 查看文件

193
 #define EXPA1_09_PIN                       P0_16
193
 #define EXPA1_09_PIN                       P0_16
194
 #define EXPA1_10_PIN                       P2_08
194
 #define EXPA1_10_PIN                       P2_08
195
 
195
 
196
-#if HAS_SPI_LCD
196
+#if HAS_WIRED_LCD
197
 
197
 
198
   #if ENABLED(CR10_STOCKDISPLAY)
198
   #if ENABLED(CR10_STOCKDISPLAY)
199
 
199
 
238
 
238
 
239
   #endif
239
   #endif
240
 
240
 
241
-#endif // HAS_SPI_LCD
241
+#endif // HAS_WIRED_LCD
242
 
242
 
243
 //
243
 //
244
 // SD Support
244
 // SD Support

+ 2
- 2
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h 查看文件

141
 // connector are shared with the onboard SD card, and Marlin does not support reading
141
 // connector are shared with the onboard SD card, and Marlin does not support reading
142
 // G-code files from the onboard SD card.
142
 // G-code files from the onboard SD card.
143
 //
143
 //
144
-#if HAS_SPI_LCD
144
+#if HAS_WIRED_LCD
145
 
145
 
146
   #define BEEPER_PIN                       P0_27  // EXP2-7 - open drain
146
   #define BEEPER_PIN                       P0_27  // EXP2-7 - open drain
147
 
147
 
160
     #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
160
     #error "SDSUPPORT is not currently supported by the Cohesion3D boards"
161
   #endif
161
   #endif
162
 
162
 
163
-#endif // HAS_SPI_LCD
163
+#endif // HAS_WIRED_LCD
164
 
164
 
165
 //
165
 //
166
 // Ethernet pins
166
 // Ethernet pins

+ 2
- 2
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h 查看文件

206
     #define NEOPIXEL_PIN                   P1_16  // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
206
     #define NEOPIXEL_PIN                   P1_16  // EXP1-6  =>  Ethernet pin  6 (top row, 3 from left)
207
   #endif
207
   #endif
208
 
208
 
209
-#elif HAS_SPI_LCD
209
+#elif HAS_WIRED_LCD
210
 
210
 
211
   #define BEEPER_PIN                       P1_31  // EXP1-1
211
   #define BEEPER_PIN                       P1_31  // EXP1-1
212
   //#define SD_DETECT_PIN                  P0_27  // EXP2-7
212
   //#define SD_DETECT_PIN                  P0_27  // EXP2-7
222
 
222
 
223
   #define KILL_PIN                         P2_11  // EXP2-10
223
   #define KILL_PIN                         P2_11  // EXP2-10
224
 
224
 
225
-#endif // HAS_SPI_LCD
225
+#endif // HAS_WIRED_LCD
226
 
226
 
227
 //
227
 //
228
 // SD Support
228
 // SD Support

+ 3
- 2
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h 查看文件

241
  *                -----                                            -----
241
  *                -----                                            -----
242
  *                EXP1                                             EXP2
242
  *                EXP1                                             EXP2
243
  */
243
  */
244
-#if HAS_SPI_LCD
244
+#if HAS_WIRED_LCD
245
   #define BEEPER_PIN                       P1_31
245
   #define BEEPER_PIN                       P1_31
246
   #define BTN_ENC                          P1_30
246
   #define BTN_ENC                          P1_30
247
 
247
 
248
   #if ENABLED(CR10_STOCKDISPLAY)
248
   #if ENABLED(CR10_STOCKDISPLAY)
249
+
249
     #define LCD_PINS_RS                    P1_00
250
     #define LCD_PINS_RS                    P1_00
250
 
251
 
251
     #define BTN_EN1                        P0_18
252
     #define BTN_EN1                        P0_18
327
 
328
 
328
   #endif // !CR10_STOCKDISPLAY
329
   #endif // !CR10_STOCKDISPLAY
329
 
330
 
330
-#endif // HAS_SPI_LCD
331
+#endif // HAS_WIRED_LCD
331
 
332
 
332
 #ifndef SDCARD_CONNECTION
333
 #ifndef SDCARD_CONNECTION
333
   #define SDCARD_CONNECTION              ONBOARD
334
   #define SDCARD_CONNECTION              ONBOARD

+ 1
- 1
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h 查看文件

109
   #define STAT_LED_RED_PIN                 P1_19
109
   #define STAT_LED_RED_PIN                 P1_19
110
   #define STAT_LED_BLUE_PIN                P1_20
110
   #define STAT_LED_BLUE_PIN                P1_20
111
 
111
 
112
-#elif HAS_SPI_LCD
112
+#elif HAS_WIRED_LCD
113
 
113
 
114
   /*
114
   /*
115
     The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either
115
     The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either

+ 1
- 1
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h 查看文件

178
   #define LCD_PINS_ENABLE                  P0_18
178
   #define LCD_PINS_ENABLE                  P0_18
179
   #define LCD_PINS_D4                      P0_15
179
   #define LCD_PINS_D4                      P0_15
180
   #define KILL_PIN                         P2_11
180
   #define KILL_PIN                         P2_11
181
-#elif HAS_SPI_LCD
181
+#elif HAS_WIRED_LCD
182
   #error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
182
   #error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
183
 #endif
183
 #endif

+ 2
- 2
Marlin/src/pins/mega/pins_GT2560_REV_A.h 查看文件

105
 #define SUICIDE_PIN                           54  // Must be enabled at startup to keep power flowing
105
 #define SUICIDE_PIN                           54  // Must be enabled at startup to keep power flowing
106
 #define KILL_PIN                              -1
106
 #define KILL_PIN                              -1
107
 
107
 
108
-#if HAS_SPI_LCD
108
+#if HAS_WIRED_LCD
109
 
109
 
110
   #define BEEPER_PIN                          18
110
   #define BEEPER_PIN                          18
111
 
111
 
148
 
148
 
149
   #endif // !NEWPANEL
149
   #endif // !NEWPANEL
150
 
150
 
151
-#endif // HAS_SPI_LCD
151
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/mega/pins_HJC2560C_REV2.h 查看文件

123
 //
123
 //
124
 // LCD / Controller
124
 // LCD / Controller
125
 //
125
 //
126
-#if HAS_SPI_LCD
126
+#if HAS_WIRED_LCD
127
 
127
 
128
   #define BEEPER_PIN                          18
128
   #define BEEPER_PIN                          18
129
 
129
 
170
 
170
 
171
   #endif // !NEWPANEL
171
   #endif // !NEWPANEL
172
 
172
 
173
-#endif // HAS_SPI_LCD
173
+#endif // HAS_WIRED_LCD

+ 1
- 1
Marlin/src/pins/mega/pins_INTAMSYS40.h 查看文件

122
 
122
 
123
 #define BEEPER_PIN                            18
123
 #define BEEPER_PIN                            18
124
 
124
 
125
-#if HAS_SPI_LCD
125
+#if HAS_WIRED_LCD
126
   #define LCD_PINS_RS                         20
126
   #define LCD_PINS_RS                         20
127
   #define LCD_PINS_ENABLE                     30
127
   #define LCD_PINS_ENABLE                     30
128
   #define LCD_PINS_D4                         14
128
   #define LCD_PINS_D4                         14

+ 2
- 2
Marlin/src/pins/mega/pins_MEGATRONICS_2.h 查看文件

130
 //
130
 //
131
 #define BEEPER_PIN                            64
131
 #define BEEPER_PIN                            64
132
 
132
 
133
-#if HAS_SPI_LCD
133
+#if HAS_WIRED_LCD
134
 
134
 
135
   #define LCD_PINS_RS                         14
135
   #define LCD_PINS_RS                         14
136
   #define LCD_PINS_ENABLE                     15
136
   #define LCD_PINS_ENABLE                     15
152
     #define SHIFT_EN                          17
152
     #define SHIFT_EN                          17
153
   #endif
153
   #endif
154
 
154
 
155
-#endif // HAS_SPI_LCD
155
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h 查看文件

212
 //
212
 //
213
 // LCD / Controller
213
 // LCD / Controller
214
 //
214
 //
215
-#if HAS_SPI_LCD
215
+#if HAS_WIRED_LCD
216
 
216
 
217
   #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
217
   #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
218
 
218
 
260
   #define BTN_CENTER                          15  // J0
260
   #define BTN_CENTER                          15  // J0
261
   #define BTN_ENC                     BTN_CENTER
261
   #define BTN_ENC                     BTN_CENTER
262
 
262
 
263
-#endif // HAS_SPI_LCD
263
+#endif // HAS_WIRED_LCD
264
 
264
 
265
 //
265
 //
266
 // SD Card
266
 // SD Card

+ 1
- 1
Marlin/src/pins/mega/pins_OVERLORD.h 查看文件

119
 //
119
 //
120
 // LCD / Controller
120
 // LCD / Controller
121
 //
121
 //
122
-#if HAS_GRAPHICAL_LCD
122
+#if HAS_MARLINUI_U8GLIB
123
   // OVERLORD OLED pins
123
   // OVERLORD OLED pins
124
   #define LCD_PINS_RS                         20
124
   #define LCD_PINS_RS                         20
125
   #define LCD_PINS_D5                         21
125
   #define LCD_PINS_D5                         21

+ 1
- 1
Marlin/src/pins/mega/pins_PICA.h 查看文件

137
 //
137
 //
138
 #define BEEPER_PIN                            29
138
 #define BEEPER_PIN                            29
139
 
139
 
140
-#if HAS_SPI_LCD
140
+#if HAS_WIRED_LCD
141
   #define LCD_PINS_RS                         33
141
   #define LCD_PINS_RS                         33
142
   #define LCD_PINS_ENABLE                     30
142
   #define LCD_PINS_ENABLE                     30
143
   #define LCD_PINS_D4                         35
143
   #define LCD_PINS_D4                         35

+ 1
- 1
Marlin/src/pins/mega/pins_SILVER_GATE.h 查看文件

72
 #define HEATER_BED_PIN                         8
72
 #define HEATER_BED_PIN                         8
73
 #define TEMP_BED_PIN                           6
73
 #define TEMP_BED_PIN                           6
74
 
74
 
75
-#if HAS_GRAPHICAL_LCD
75
+#if HAS_MARLINUI_U8GLIB
76
   #if ENABLED(U8GLIB_ST7920)                      // SPI GLCD 12864 ST7920
76
   #if ENABLED(U8GLIB_ST7920)                      // SPI GLCD 12864 ST7920
77
     #define LCD_PINS_RS                       30
77
     #define LCD_PINS_RS                       30
78
     #define LCD_PINS_ENABLE                   20
78
     #define LCD_PINS_ENABLE                   20

+ 2
- 2
Marlin/src/pins/pins.h 查看文件

1227
   #define LCD_PINS_D4 -1
1227
   #define LCD_PINS_D4 -1
1228
 #endif
1228
 #endif
1229
 
1229
 
1230
-#if HAS_CHARACTER_LCD || TOUCH_UI_ULTIPANEL
1230
+#if HAS_MARLINUI_HD44780 || TOUCH_UI_ULTIPANEL
1231
   #ifndef LCD_PINS_D5
1231
   #ifndef LCD_PINS_D5
1232
     #define LCD_PINS_D5 -1
1232
     #define LCD_PINS_D5 -1
1233
   #endif
1233
   #endif
1597
   #define Z4_MS3_PIN -1
1597
   #define Z4_MS3_PIN -1
1598
 #endif
1598
 #endif
1599
 
1599
 
1600
-#if HAS_GRAPHICAL_LCD
1600
+#if HAS_MARLINUI_U8GLIB
1601
   #if !defined(ST7920_DELAY_1) && defined(BOARD_ST7920_DELAY_1)
1601
   #if !defined(ST7920_DELAY_1) && defined(BOARD_ST7920_DELAY_1)
1602
     #define ST7920_DELAY_1 BOARD_ST7920_DELAY_1
1602
     #define ST7920_DELAY_1 BOARD_ST7920_DELAY_1
1603
   #endif
1603
   #endif

+ 2
- 2
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h 查看文件

160
 //
160
 //
161
 // LCD / Controller
161
 // LCD / Controller
162
 //
162
 //
163
-#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
163
+#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
164
 
164
 
165
   #define KILL_PIN                            32
165
   #define KILL_PIN                            32
166
 
166
 
188
     #define SD_DETECT_PIN                     15
188
     #define SD_DETECT_PIN                     15
189
 
189
 
190
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
190
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
191
-#endif // HAS_SPI_LCD
191
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/rambo/pins_EINSY_RETRO.h 查看文件

166
 //
166
 //
167
 // LCD / Controller
167
 // LCD / Controller
168
 //
168
 //
169
-#if ANY(HAS_SPI_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
169
+#if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
170
 
170
 
171
   #define KILL_PIN                            32
171
   #define KILL_PIN                            32
172
 
172
 
196
 
196
 
197
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
197
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
198
 
198
 
199
-#endif // HAS_SPI_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
199
+#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE

+ 2
- 2
Marlin/src/pins/rambo/pins_MINIRAMBO.h 查看文件

141
 //
141
 //
142
 // LCD / Controller
142
 // LCD / Controller
143
 //
143
 //
144
-#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
144
+#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
145
 
145
 
146
   #if !MB(MINIRAMBO_10A)
146
   #if !MB(MINIRAMBO_10A)
147
     #define KILL_PIN                          32
147
     #define KILL_PIN                          32
189
 
189
 
190
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
190
   #endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
191
 
191
 
192
-#endif // HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
192
+#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL

+ 2
- 2
Marlin/src/pins/rambo/pins_RAMBO.h 查看文件

183
 //
183
 //
184
 // LCD / Controller
184
 // LCD / Controller
185
 //
185
 //
186
-#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
186
+#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
187
 
187
 
188
   #define KILL_PIN                            80
188
   #define KILL_PIN                            80
189
 
189
 
249
 
249
 
250
   #endif // !NEWPANEL
250
   #endif // !NEWPANEL
251
 
251
 
252
-#endif // HAS_SPI_LCD
252
+#endif // HAS_WIRED_LCD

+ 1
- 1
Marlin/src/pins/ramps/pins_3DRAG.h 查看文件

106
 
106
 
107
   #define BEEPER_PIN                          33
107
   #define BEEPER_PIN                          33
108
 
108
 
109
-#endif // HAS_SPI_LCD && NEWPANEL
109
+#endif // ULTRA_LCD && NEWPANEL
110
 
110
 
111
 /**
111
 /**
112
  *  M3/M4/M5 - Spindle/Laser Control
112
  *  M3/M4/M5 - Spindle/Laser Control

+ 1
- 1
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h 查看文件

87
 //
87
 //
88
 // LCDs and Controllers
88
 // LCDs and Controllers
89
 //
89
 //
90
-#if HAS_SPI_LCD
90
+#if HAS_WIRED_LCD
91
   #if ENABLED(ZONESTAR_LCD)
91
   #if ENABLED(ZONESTAR_LCD)
92
     #define LCD_PINS_RS                        2
92
     #define LCD_PINS_RS                        2
93
     #define LCD_PINS_ENABLE                   36
93
     #define LCD_PINS_ENABLE                   36

+ 1
- 1
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h 查看文件

197
   #define LCD_PINS_D7                         29
197
   #define LCD_PINS_D7                         29
198
 #endif
198
 #endif
199
 
199
 
200
-#if HAS_GRAPHICAL_LCD
200
+#if HAS_MARLINUI_U8GLIB
201
   #ifndef BOARD_ST7920_DELAY_1
201
   #ifndef BOARD_ST7920_DELAY_1
202
     #define BOARD_ST7920_DELAY_1 DELAY_NS(200)
202
     #define BOARD_ST7920_DELAY_1 DELAY_NS(200)
203
   #endif
203
   #endif

+ 1
- 1
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h 查看文件

261
       #define NEOPIXEL_PIN                    25
261
       #define NEOPIXEL_PIN                    25
262
     #endif
262
     #endif
263
 
263
 
264
-  #elif HAS_GRAPHICAL_LCD
264
+  #elif HAS_MARLINUI_U8GLIB
265
 
265
 
266
     #define LCD_PINS_RS                       16
266
     #define LCD_PINS_RS                       16
267
     #define LCD_PINS_ENABLE                   17
267
     #define LCD_PINS_ENABLE                   17

+ 2
- 2
Marlin/src/pins/ramps/pins_K8800.h 查看文件

95
 //
95
 //
96
 #define BEEPER_PIN                             6
96
 #define BEEPER_PIN                             6
97
 
97
 
98
-#if HAS_SPI_LCD
98
+#if HAS_WIRED_LCD
99
 
99
 
100
   #define LCD_SDSS                            53
100
   #define LCD_SDSS                            53
101
 
101
 
119
     #define BTN_ENC                           23
119
     #define BTN_ENC                           23
120
   #endif
120
   #endif
121
 
121
 
122
-#endif // HAS_SPI_LCD
122
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/ramps/pins_RAMPS.h 查看文件

430
 // LCDs and Controllers //
430
 // LCDs and Controllers //
431
 //////////////////////////
431
 //////////////////////////
432
 
432
 
433
-#if HAS_SPI_LCD
433
+#if HAS_WIRED_LCD
434
 
434
 
435
   //
435
   //
436
   // LCD Display output pins
436
   // LCD Display output pins
706
     #endif
706
     #endif
707
   #endif // NEWPANEL
707
   #endif // NEWPANEL
708
 
708
 
709
-#endif // HAS_SPI_LCD
709
+#endif // HAS_WIRED_LCD
710
 
710
 
711
 #if ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(ADC_KEYPAD)
711
 #if ENABLED(REPRAPWORLD_KEYPAD) && DISABLED(ADC_KEYPAD)
712
   #define SHIFT_OUT                           40
712
   #define SHIFT_OUT                           40

+ 2
- 2
Marlin/src/pins/ramps/pins_TRIGORILLA_14.h 查看文件

128
 // AnyCubic made the following changes to 1.1.0-RC8
128
 // AnyCubic made the following changes to 1.1.0-RC8
129
 // If these are appropriate for your LCD let us know.
129
 // If these are appropriate for your LCD let us know.
130
 //
130
 //
131
-#if 0 && HAS_SPI_LCD
131
+#if 0 && HAS_WIRED_LCD
132
 
132
 
133
   // LCD Display output pins
133
   // LCD Display output pins
134
   #if BOTH(NEWPANEL, PANEL_ONE)
134
   #if BOTH(NEWPANEL, PANEL_ONE)
154
     #define DOGLCD_A0                         42
154
     #define DOGLCD_A0                         42
155
   #endif
155
   #endif
156
 
156
 
157
-#endif // HAS_SPI_LCD
157
+#endif // HAS_WIRED_LCD

+ 1
- 1
Marlin/src/pins/ramps/pins_TT_OSCAR.h 查看文件

271
 // LCDs and Controllers //
271
 // LCDs and Controllers //
272
 //////////////////////////
272
 //////////////////////////
273
 
273
 
274
-#if HAS_SPI_LCD
274
+#if HAS_WIRED_LCD
275
 
275
 
276
   //
276
   //
277
   // LCD Display output pins
277
   // LCD Display output pins

+ 2
- 2
Marlin/src/pins/ramps/pins_ULTIMAKER.h 查看文件

119
 //
119
 //
120
 // LCD / Controller
120
 // LCD / Controller
121
 //
121
 //
122
-#if HAS_SPI_LCD
122
+#if HAS_WIRED_LCD
123
 
123
 
124
   #define BEEPER_PIN                          18
124
   #define BEEPER_PIN                          18
125
 
125
 
158
 
158
 
159
   #endif // !NEWPANEL
159
   #endif // !NEWPANEL
160
 
160
 
161
-#endif // HAS_SPI_LCD
161
+#endif // HAS_WIRED_LCD
162
 
162
 
163
 //
163
 //
164
 // M3/M4/M5 - Spindle/Laser Control
164
 // M3/M4/M5 - Spindle/Laser Control

+ 2
- 2
Marlin/src/pins/sam/pins_ARCHIM1.h 查看文件

181
 //
181
 //
182
 // LCD / Controller
182
 // LCD / Controller
183
 //
183
 //
184
-#if HAS_SPI_LCD
184
+#if HAS_WIRED_LCD
185
   #define BEEPER_PIN                          23  // D24 PA15_CTS1
185
   #define BEEPER_PIN                          23  // D24 PA15_CTS1
186
   #define LCD_PINS_RS                         17  // D17 PA12_RXD1
186
   #define LCD_PINS_RS                         17  // D17 PA12_RXD1
187
   #define LCD_PINS_ENABLE                     24  // D23 PA14_RTS1
187
   #define LCD_PINS_ENABLE                     24  // D23 PA14_RTS1
198
     #define BTN_EN2                           13  // D13 PB27_TIOB0
198
     #define BTN_EN2                           13  // D13 PB27_TIOB0
199
     #define BTN_ENC                           16  // D16 PA13_TXD1
199
     #define BTN_ENC                           16  // D16 PA13_TXD1
200
   #endif // NEWPANEL
200
   #endif // NEWPANEL
201
-#endif // HAS_SPI_LCD
201
+#endif // HAS_WIRED_LCD

+ 1
- 1
Marlin/src/pins/sam/pins_ARCHIM2.h 查看文件

237
 //
237
 //
238
 // LCD / Controller
238
 // LCD / Controller
239
 //
239
 //
240
-#if ANY(HAS_SPI_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
240
+#if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
241
   #define BEEPER_PIN                          23  // D24 PA15_CTS1
241
   #define BEEPER_PIN                          23  // D24 PA15_CTS1
242
   #define LCD_PINS_RS                         17  // D17 PA12_RXD1
242
   #define LCD_PINS_RS                         17  // D17 PA12_RXD1
243
   #define LCD_PINS_ENABLE                     24  // D23 PA14_RTS1
243
   #define LCD_PINS_ENABLE                     24  // D23 PA14_RTS1

+ 2
- 2
Marlin/src/pins/sam/pins_DUE3DOM.h 查看文件

113
 //
113
 //
114
 // LCD / Controller
114
 // LCD / Controller
115
 //
115
 //
116
-#if HAS_SPI_LCD
116
+#if HAS_WIRED_LCD
117
 
117
 
118
   #define LCD_PINS_RS                         42
118
   #define LCD_PINS_RS                         42
119
   #define LCD_PINS_ENABLE                     43
119
   #define LCD_PINS_ENABLE                     43
168
 
168
 
169
     #define BEEPER_PIN                        -1
169
     #define BEEPER_PIN                        -1
170
   #endif // SPARK_FULL_GRAPHICS
170
   #endif // SPARK_FULL_GRAPHICS
171
-#endif // HAS_SPI_LCD
171
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h 查看文件

105
 //
105
 //
106
 // LCD / Controller
106
 // LCD / Controller
107
 //
107
 //
108
-#if HAS_SPI_LCD
108
+#if HAS_WIRED_LCD
109
 
109
 
110
   #define LCD_PINS_RS                         42
110
   #define LCD_PINS_RS                         42
111
   #define LCD_PINS_ENABLE                     43
111
   #define LCD_PINS_ENABLE                     43
171
     #define DOGLCD_CS                         45
171
     #define DOGLCD_CS                         45
172
 
172
 
173
   #endif // SPARK_FULL_GRAPHICS
173
   #endif // SPARK_FULL_GRAPHICS
174
-#endif // HAS_SPI_LCD
174
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/sam/pins_RADDS.h 查看文件

226
 //
226
 //
227
 // LCD / Controller
227
 // LCD / Controller
228
 //
228
 //
229
-#if HAS_SPI_LCD
229
+#if HAS_WIRED_LCD
230
 
230
 
231
   #if ENABLED(RADDS_DISPLAY)
231
   #if ENABLED(RADDS_DISPLAY)
232
 
232
 
287
 
287
 
288
   #endif // SPARK_FULL_GRAPHICS
288
   #endif // SPARK_FULL_GRAPHICS
289
 
289
 
290
-#endif // HAS_SPI_LCD
290
+#endif // HAS_WIRED_LCD
291
 
291
 
292
 #ifndef SDSS
292
 #ifndef SDSS
293
   #define SDSS                                 4
293
   #define SDSS                                 4

+ 2
- 2
Marlin/src/pins/sam/pins_RAMPS_DUO.h 查看文件

76
 //
76
 //
77
 // LCD / Controller
77
 // LCD / Controller
78
 //
78
 //
79
-#if HAS_SPI_LCD
79
+#if HAS_WIRED_LCD
80
 
80
 
81
   #if BOTH(NEWPANEL, PANEL_ONE)
81
   #if BOTH(NEWPANEL, PANEL_ONE)
82
     #undef LCD_PINS_D4
82
     #undef LCD_PINS_D4
129
 
129
 
130
   #endif // NEWPANEL
130
   #endif // NEWPANEL
131
 
131
 
132
-#endif // HAS_SPI_LCD
132
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h 查看文件

139
 //
139
 //
140
 // LCD / Controller
140
 // LCD / Controller
141
 //
141
 //
142
-#if HAS_SPI_LCD
142
+#if HAS_WIRED_LCD
143
   // ramps-fd lcd adaptor
143
   // ramps-fd lcd adaptor
144
 
144
 
145
   #define BEEPER_PIN                          37
145
   #define BEEPER_PIN                          37
203
     #define DOGLCD_MISO                       74  // MISO_PIN
203
     #define DOGLCD_MISO                       74  // MISO_PIN
204
   #endif
204
   #endif
205
 
205
 
206
-#endif // HAS_SPI_LCD
206
+#endif // HAS_WIRED_LCD
207
 
207
 
208
 #if HAS_TMC_UART
208
 #if HAS_TMC_UART
209
   /**
209
   /**

+ 2
- 2
Marlin/src/pins/sam/pins_RURAMPS4D_11.h 查看文件

200
 //
200
 //
201
 // LCD / Controller
201
 // LCD / Controller
202
 //
202
 //
203
-#if HAS_SPI_LCD
203
+#if HAS_WIRED_LCD
204
 
204
 
205
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
205
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
206
     #define BEEPER_PIN                        62
206
     #define BEEPER_PIN                        62
271
     #define BTN_ENC                           40
271
     #define BTN_ENC                           40
272
   #endif
272
   #endif
273
 
273
 
274
-#endif // HAS_SPI_LCD
274
+#endif // HAS_WIRED_LCD

+ 2
- 2
Marlin/src/pins/sam/pins_RURAMPS4D_13.h 查看文件

186
 //
186
 //
187
 // LCD / Controller
187
 // LCD / Controller
188
 //
188
 //
189
-#if HAS_SPI_LCD
189
+#if HAS_WIRED_LCD
190
 
190
 
191
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
191
   #if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
192
     #define BEEPER_PIN                        62
192
     #define BEEPER_PIN                        62
253
     #define BTN_ENC                           40
253
     #define BTN_ENC                           40
254
   #endif
254
   #endif
255
 
255
 
256
-#endif // HAS_SPI_LCD
256
+#endif // HAS_WIRED_LCD

+ 0
- 0
Marlin/src/pins/samd/pins_RAMPS_144.h 查看文件


部分文件因文件數量過多而無法顯示

Loading…
取消
儲存