소스 검색

🧑‍💻 HAS_MARLINUI_MENU, HAS_MANUAL_MOVE_MENU

Scott Lahteine 2 년 전
부모
커밋
ab46b7e2f2
63개의 변경된 파일201개의 추가작업 그리고 197개의 파일을 삭제
  1. 4
    4
      Marlin/Configuration_adv.h
  2. 2
    2
      Marlin/src/MarlinCore.cpp
  3. 1
    1
      Marlin/src/feature/bedlevel/ubl/ubl.h
  4. 12
    12
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
  5. 2
    2
      Marlin/src/feature/password/password.cpp
  6. 1
    1
      Marlin/src/feature/password/password.h
  7. 3
    3
      Marlin/src/feature/pause.cpp
  8. 1
    1
      Marlin/src/feature/power_monitor.cpp
  9. 2
    2
      Marlin/src/feature/spindle_laser.h
  10. 1
    1
      Marlin/src/feature/tmc_util.cpp
  11. 10
    10
      Marlin/src/feature/tmc_util.h
  12. 11
    11
      Marlin/src/gcode/bedlevel/G26.cpp
  13. 1
    1
      Marlin/src/gcode/control/M80_M81.cpp
  14. 1
    1
      Marlin/src/gcode/feature/pause/M125.cpp
  15. 3
    3
      Marlin/src/gcode/feature/powerloss/M1000.cpp
  16. 3
    3
      Marlin/src/gcode/lcd/M0_M1.cpp
  17. 2
    2
      Marlin/src/gcode/parser.h
  18. 1
    1
      Marlin/src/gcode/queue.cpp
  19. 1
    1
      Marlin/src/gcode/sd/M1001.cpp
  20. 5
    1
      Marlin/src/inc/Conditionals_LCD.h
  21. 4
    4
      Marlin/src/inc/Conditionals_post.h
  22. 8
    8
      Marlin/src/inc/SanityCheck.h
  23. 4
    4
      Marlin/src/lcd/HD44780/marlinui_HD44780.cpp
  24. 2
    2
      Marlin/src/lcd/TFTGLCD/marlinui_TFTGLCD.cpp
  25. 2
    2
      Marlin/src/lcd/dogm/marlinui_DOGM.cpp
  26. 2
    2
      Marlin/src/lcd/e3v2/marlinui/ui_common.cpp
  27. 1
    1
      Marlin/src/lcd/extui/mks_ui/wifi_module.cpp
  28. 1
    1
      Marlin/src/lcd/extui/ui_api.h
  29. 32
    32
      Marlin/src/lcd/marlinui.cpp
  30. 15
    15
      Marlin/src/lcd/marlinui.h
  31. 3
    3
      Marlin/src/lcd/menu/menu.cpp
  32. 2
    2
      Marlin/src/lcd/menu/menu_advanced.cpp
  33. 2
    2
      Marlin/src/lcd/menu/menu_backlash.cpp
  34. 2
    2
      Marlin/src/lcd/menu/menu_bed_corners.cpp
  35. 2
    2
      Marlin/src/lcd/menu/menu_cancelobject.cpp
  36. 2
    2
      Marlin/src/lcd/menu/menu_configuration.cpp
  37. 2
    2
      Marlin/src/lcd/menu/menu_delta_calibrate.cpp
  38. 2
    2
      Marlin/src/lcd/menu/menu_filament.cpp
  39. 2
    2
      Marlin/src/lcd/menu/menu_info.cpp
  40. 2
    2
      Marlin/src/lcd/menu/menu_job_recovery.cpp
  41. 2
    2
      Marlin/src/lcd/menu/menu_led.cpp
  42. 2
    2
      Marlin/src/lcd/menu/menu_main.cpp
  43. 2
    2
      Marlin/src/lcd/menu/menu_media.cpp
  44. 2
    2
      Marlin/src/lcd/menu/menu_mixer.cpp
  45. 2
    2
      Marlin/src/lcd/menu/menu_mmu2.cpp
  46. 2
    2
      Marlin/src/lcd/menu/menu_motion.cpp
  47. 2
    2
      Marlin/src/lcd/menu/menu_password.cpp
  48. 2
    2
      Marlin/src/lcd/menu/menu_power_monitor.cpp
  49. 2
    2
      Marlin/src/lcd/menu/menu_spindle_laser.cpp
  50. 2
    2
      Marlin/src/lcd/menu/menu_temperature.cpp
  51. 1
    1
      Marlin/src/lcd/menu/menu_tmc.cpp
  52. 1
    1
      Marlin/src/lcd/menu/menu_touch_screen.cpp
  53. 2
    2
      Marlin/src/lcd/menu/menu_tramming.cpp
  54. 2
    2
      Marlin/src/lcd/menu/menu_tune.cpp
  55. 2
    2
      Marlin/src/lcd/menu/menu_ubl.cpp
  56. 2
    2
      Marlin/src/lcd/tft/ui_1024x600.cpp
  57. 2
    2
      Marlin/src/lcd/tft/ui_320x240.cpp
  58. 2
    2
      Marlin/src/lcd/tft/ui_480x320.cpp
  59. 2
    2
      Marlin/src/module/temperature.cpp
  60. 2
    2
      Marlin/src/module/temperature.h
  61. 2
    2
      Marlin/src/module/tool_change.cpp
  62. 1
    1
      buildroot/share/PlatformIO/scripts/common-dependencies.h
  63. 1
    1
      ini/features.ini

+ 4
- 4
Marlin/Configuration_adv.h 파일 보기

1257
 
1257
 
1258
 // @section lcd
1258
 // @section lcd
1259
 
1259
 
1260
-#if ANY(HAS_LCD_MENU, EXTENSIBLE_UI, HAS_DWIN_E3V2)
1260
+#if HAS_MANUAL_MOVE_MENU
1261
   #define MANUAL_FEEDRATE { 50*60, 50*60, 4*60, 2*60 } // (mm/min) Feedrates for manual moves along X, Y, Z, E from panel
1261
   #define MANUAL_FEEDRATE { 50*60, 50*60, 4*60, 2*60 } // (mm/min) Feedrates for manual moves along X, Y, Z, E from panel
1262
   #define FINE_MANUAL_MOVE 0.025    // (mm) Smallest manual move (< 0.1mm) applying to Z on most machines
1262
   #define FINE_MANUAL_MOVE 0.025    // (mm) Smallest manual move (< 0.1mm) applying to Z on most machines
1263
   #if IS_ULTIPANEL
1263
   #if IS_ULTIPANEL
1280
   #define FEEDRATE_CHANGE_BEEP_FREQUENCY 440
1280
   #define FEEDRATE_CHANGE_BEEP_FREQUENCY 440
1281
 #endif
1281
 #endif
1282
 
1282
 
1283
-#if HAS_BED_PROBE && EITHER(HAS_LCD_MENU, HAS_TFT_LVGL_UI)
1283
+#if HAS_BED_PROBE && EITHER(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI)
1284
   //#define PROBE_OFFSET_WIZARD       // Add a Probe Z Offset calibration option to the LCD menu
1284
   //#define PROBE_OFFSET_WIZARD       // Add a Probe Z Offset calibration option to the LCD menu
1285
   #if ENABLED(PROBE_OFFSET_WIZARD)
1285
   #if ENABLED(PROBE_OFFSET_WIZARD)
1286
     /**
1286
     /**
1295
   #endif
1295
   #endif
1296
 #endif
1296
 #endif
1297
 
1297
 
1298
-#if HAS_LCD_MENU
1298
+#if HAS_MARLINUI_MENU
1299
 
1299
 
1300
   // Add Probe Z Offset calibration to the Z Probe Offsets menu
1300
   // Add Probe Z Offset calibration to the Z Probe Offsets menu
1301
   #if BOTH(HAS_BED_PROBE, AUTO_BED_LEVELING_BILINEAR)
1301
   #if BOTH(HAS_BED_PROBE, AUTO_BED_LEVELING_BILINEAR)
1351
   // Insert a menu for preheating at the top level to allow for quick access
1351
   // Insert a menu for preheating at the top level to allow for quick access
1352
   //#define PREHEAT_SHORTCUT_MENU_ITEM
1352
   //#define PREHEAT_SHORTCUT_MENU_ITEM
1353
 
1353
 
1354
-#endif // HAS_LCD_MENU
1354
+#endif // HAS_MARLINUI_MENU
1355
 
1355
 
1356
 #if ANY(HAS_DISPLAY, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
1356
 #if ANY(HAS_DISPLAY, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
1357
   //#define SOUND_MENU_ITEM   // Add a mute option to the LCD menu
1357
   //#define SOUND_MENU_ITEM   // Add a mute option to the LCD menu

+ 2
- 2
Marlin/src/MarlinCore.cpp 파일 보기

506
           next_cub_ms_##N = ms + CUB_DEBOUNCE_DELAY_##N;               \
506
           next_cub_ms_##N = ms + CUB_DEBOUNCE_DELAY_##N;               \
507
           CODE;                                                        \
507
           CODE;                                                        \
508
           queue.inject(F(BUTTON##N##_GCODE));                     \
508
           queue.inject(F(BUTTON##N##_GCODE));                     \
509
-          TERN_(HAS_LCD_MENU, ui.quick_feedback());                    \
509
+          TERN_(HAS_MARLINUI_MENU, ui.quick_feedback());                    \
510
         }                                                              \
510
         }                                                              \
511
       }                                                                \
511
       }                                                                \
512
     }while(0)
512
     }while(0)
1611
     SETUP_RUN(password.lock_machine());      // Will not proceed until correct password provided
1611
     SETUP_RUN(password.lock_machine());      // Will not proceed until correct password provided
1612
   #endif
1612
   #endif
1613
 
1613
 
1614
-  #if BOTH(HAS_LCD_MENU, TOUCH_SCREEN_CALIBRATION) && EITHER(TFT_CLASSIC_UI, TFT_COLOR_UI)
1614
+  #if BOTH(HAS_MARLINUI_MENU, TOUCH_SCREEN_CALIBRATION) && EITHER(TFT_CLASSIC_UI, TFT_COLOR_UI)
1615
     SETUP_RUN(ui.check_touch_calibration());
1615
     SETUP_RUN(ui.check_touch_calibration());
1616
   #endif
1616
   #endif
1617
 
1617
 

+ 1
- 1
Marlin/src/feature/bedlevel/ubl/ubl.h 파일 보기

120
   static const float _mesh_index_to_xpos[GRID_MAX_POINTS_X],
120
   static const float _mesh_index_to_xpos[GRID_MAX_POINTS_X],
121
                      _mesh_index_to_ypos[GRID_MAX_POINTS_Y];
121
                      _mesh_index_to_ypos[GRID_MAX_POINTS_Y];
122
 
122
 
123
-  #if HAS_LCD_MENU
123
+  #if HAS_MARLINUI_MENU
124
     static bool lcd_map_control;
124
     static bool lcd_map_control;
125
     static void steppers_were_disabled();
125
     static void steppers_were_disabled();
126
   #else
126
   #else

+ 12
- 12
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp 파일 보기

57
 
57
 
58
 #define UBL_G29_P31
58
 #define UBL_G29_P31
59
 
59
 
60
-#if HAS_LCD_MENU
60
+#if HAS_MARLINUI_MENU
61
 
61
 
62
   bool unified_bed_leveling::lcd_map_control = false;
62
   bool unified_bed_leveling::lcd_map_control = false;
63
 
63
 
443
       #endif // HAS_BED_PROBE
443
       #endif // HAS_BED_PROBE
444
 
444
 
445
       case 2: {
445
       case 2: {
446
-        #if HAS_LCD_MENU
446
+        #if HAS_MARLINUI_MENU
447
           //
447
           //
448
           // Manually Probe Mesh in areas that can't be reached by the probe
448
           // Manually Probe Mesh in areas that can't be reached by the probe
449
           //
449
           //
555
       }
555
       }
556
 
556
 
557
       case 4: // Fine Tune (i.e., Edit) the Mesh
557
       case 4: // Fine Tune (i.e., Edit) the Mesh
558
-        #if HAS_LCD_MENU
558
+        #if HAS_MARLINUI_MENU
559
           fine_tune_mesh(param.XY_pos, parser.seen_test('T'));
559
           fine_tune_mesh(param.XY_pos, parser.seen_test('T'));
560
         #else
560
         #else
561
           SERIAL_ECHOLNPGM("?P4 is only available when an LCD is present.");
561
           SERIAL_ECHOLNPGM("?P4 is only available when an LCD is present.");
646
 
646
 
647
   LEAVE:
647
   LEAVE:
648
 
648
 
649
-  #if HAS_LCD_MENU
649
+  #if HAS_MARLINUI_MENU
650
     ui.reset_alert_level();
650
     ui.reset_alert_level();
651
     ui.quick_feedback();
651
     ui.quick_feedback();
652
     ui.reset_status();
652
     ui.reset_status();
725
   void unified_bed_leveling::probe_entire_mesh(const xy_pos_t &nearby, const bool do_ubl_mesh_map, const bool stow_probe, const bool do_furthest) {
725
   void unified_bed_leveling::probe_entire_mesh(const xy_pos_t &nearby, const bool do_ubl_mesh_map, const bool stow_probe, const bool do_furthest) {
726
     probe.deploy(); // Deploy before ui.capture() to allow for PAUSE_BEFORE_DEPLOY_STOW
726
     probe.deploy(); // Deploy before ui.capture() to allow for PAUSE_BEFORE_DEPLOY_STOW
727
 
727
 
728
-    TERN_(HAS_LCD_MENU, ui.capture());
728
+    TERN_(HAS_MARLINUI_MENU, ui.capture());
729
 
729
 
730
     save_ubl_active_state_and_disable();  // No bed level correction so only raw data is obtained
730
     save_ubl_active_state_and_disable();  // No bed level correction so only raw data is obtained
731
     uint8_t count = GRID_MAX_POINTS;
731
     uint8_t count = GRID_MAX_POINTS;
739
       SERIAL_ECHOLNPGM("Probing mesh point ", point_num, "/", GRID_MAX_POINTS, ".");
739
       SERIAL_ECHOLNPGM("Probing mesh point ", point_num, "/", GRID_MAX_POINTS, ".");
740
       TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_POINT), point_num, int(GRID_MAX_POINTS)));
740
       TERN_(HAS_STATUS_MESSAGE, ui.status_printf(0, F(S_FMT " %i/%i"), GET_TEXT(MSG_PROBING_POINT), point_num, int(GRID_MAX_POINTS)));
741
 
741
 
742
-      #if HAS_LCD_MENU
742
+      #if HAS_MARLINUI_MENU
743
         if (ui.button_pressed()) {
743
         if (ui.button_pressed()) {
744
           ui.quick_feedback(false); // Preserve button state for click-and-hold
744
           ui.quick_feedback(false); // Preserve button state for click-and-hold
745
           SERIAL_ECHOLNPGM("\nMesh only partially populated.\n");
745
           SERIAL_ECHOLNPGM("\nMesh only partially populated.\n");
774
     TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(best.pos, ExtUI::G29_FINISH));
774
     TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(best.pos, ExtUI::G29_FINISH));
775
 
775
 
776
     // Release UI during stow to allow for PAUSE_BEFORE_DEPLOY_STOW
776
     // Release UI during stow to allow for PAUSE_BEFORE_DEPLOY_STOW
777
-    TERN_(HAS_LCD_MENU, ui.release());
777
+    TERN_(HAS_MARLINUI_MENU, ui.release());
778
     probe.stow();
778
     probe.stow();
779
-    TERN_(HAS_LCD_MENU, ui.capture());
779
+    TERN_(HAS_MARLINUI_MENU, ui.capture());
780
 
780
 
781
     probe.move_z_after_probing();
781
     probe.move_z_after_probing();
782
 
782
 
791
 #endif // HAS_BED_PROBE
791
 #endif // HAS_BED_PROBE
792
 
792
 
793
 void set_message_with_feedback(FSTR_P const fstr) {
793
 void set_message_with_feedback(FSTR_P const fstr) {
794
-  #if HAS_LCD_MENU
794
+  #if HAS_MARLINUI_MENU
795
     ui.set_status(fstr);
795
     ui.set_status(fstr);
796
     ui.quick_feedback();
796
     ui.quick_feedback();
797
   #else
797
   #else
799
   #endif
799
   #endif
800
 }
800
 }
801
 
801
 
802
-#if HAS_LCD_MENU
802
+#if HAS_MARLINUI_MENU
803
 
803
 
804
   typedef void (*clickFunc_t)();
804
   typedef void (*clickFunc_t)();
805
 
805
 
1070
       ui.return_to_status();
1070
       ui.return_to_status();
1071
   }
1071
   }
1072
 
1072
 
1073
-#endif // HAS_LCD_MENU
1073
+#endif // HAS_MARLINUI_MENU
1074
 
1074
 
1075
 /**
1075
 /**
1076
  * Parse and validate most G29 parameters, store for use by G29 functions.
1076
  * Parse and validate most G29 parameters, store for use by G29 functions.
1210
 }
1210
 }
1211
 
1211
 
1212
 void unified_bed_leveling::restore_ubl_active_state_and_leave() {
1212
 void unified_bed_leveling::restore_ubl_active_state_and_leave() {
1213
-  TERN_(HAS_LCD_MENU, ui.release());
1213
+  TERN_(HAS_MARLINUI_MENU, ui.release());
1214
   #if ENABLED(UBL_DEVEL_DEBUGGING)
1214
   #if ENABLED(UBL_DEVEL_DEBUGGING)
1215
     if (--ubl_state_recursion_chk) {
1215
     if (--ubl_state_recursion_chk) {
1216
       SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times.");
1216
       SERIAL_ECHOLNPGM("restore_ubl_active_state_and_leave() called too many times.");

+ 2
- 2
Marlin/src/feature/password/password.cpp 파일 보기

40
 //
40
 //
41
 void Password::lock_machine() {
41
 void Password::lock_machine() {
42
   is_locked = true;
42
   is_locked = true;
43
-  TERN_(HAS_LCD_MENU, authenticate_user(ui.status_screen, screen_password_entry));
43
+  TERN_(HAS_MARLINUI_MENU, authenticate_user(ui.status_screen, screen_password_entry));
44
 }
44
 }
45
 
45
 
46
 //
46
 //
55
     is_locked = true;
55
     is_locked = true;
56
     SERIAL_ECHOLNPGM(STR_WRONG_PASSWORD);
56
     SERIAL_ECHOLNPGM(STR_WRONG_PASSWORD);
57
   }
57
   }
58
-  TERN_(HAS_LCD_MENU, authentication_done());
58
+  TERN_(HAS_MARLINUI_MENU, authentication_done());
59
 }
59
 }
60
 
60
 
61
 #endif // PASSWORD_FEATURE
61
 #endif // PASSWORD_FEATURE

+ 1
- 1
Marlin/src/feature/password/password.h 파일 보기

33
   static void lock_machine();
33
   static void lock_machine();
34
   static void authentication_check();
34
   static void authentication_check();
35
 
35
 
36
-  #if HAS_LCD_MENU
36
+  #if HAS_MARLINUI_MENU
37
     static void access_menu_password();
37
     static void access_menu_password();
38
     static void authentication_done();
38
     static void authentication_done();
39
     static void media_gatekeeper();
39
     static void media_gatekeeper();

+ 3
- 3
Marlin/src/feature/pause.cpp 파일 보기

97
 #if HAS_BUZZER
97
 #if HAS_BUZZER
98
   static void impatient_beep(const int8_t max_beep_count, const bool restart=false) {
98
   static void impatient_beep(const int8_t max_beep_count, const bool restart=false) {
99
 
99
 
100
-    if (TERN0(HAS_LCD_MENU, pause_mode == PAUSE_MODE_PAUSE_PRINT)) return;
100
+    if (TERN0(HAS_MARLINUI_MENU, pause_mode == PAUSE_MODE_PAUSE_PRINT)) return;
101
 
101
 
102
     static millis_t next_buzz = 0;
102
     static millis_t next_buzz = 0;
103
     static int8_t runout_beep = 0;
103
     static int8_t runout_beep = 0;
277
           // Show "Purge More" / "Resume" menu and wait for reply
277
           // Show "Purge More" / "Resume" menu and wait for reply
278
           KEEPALIVE_STATE(PAUSED_FOR_USER);
278
           KEEPALIVE_STATE(PAUSED_FOR_USER);
279
           wait_for_user = false;
279
           wait_for_user = false;
280
-          #if EITHER(HAS_LCD_MENU, DWIN_CREALITY_LCD_ENHANCED)
280
+          #if EITHER(HAS_MARLINUI_MENU, DWIN_CREALITY_LCD_ENHANCED)
281
             ui.pause_show_message(PAUSE_MESSAGE_OPTION); // Also sets PAUSE_RESPONSE_WAIT_FOR
281
             ui.pause_show_message(PAUSE_MESSAGE_OPTION); // Also sets PAUSE_RESPONSE_WAIT_FOR
282
           #else
282
           #else
283
             pause_menu_response = PAUSE_RESPONSE_WAIT_FOR;
283
             pause_menu_response = PAUSE_RESPONSE_WAIT_FOR;
691
   TERN_(HAS_FILAMENT_SENSOR, runout.reset());
691
   TERN_(HAS_FILAMENT_SENSOR, runout.reset());
692
 
692
 
693
   TERN_(HAS_STATUS_MESSAGE, ui.reset_status());
693
   TERN_(HAS_STATUS_MESSAGE, ui.reset_status());
694
-  TERN_(HAS_LCD_MENU, ui.return_to_status());
694
+  TERN_(HAS_MARLINUI_MENU, ui.return_to_status());
695
   TERN_(DWIN_CREALITY_LCD_ENHANCED, HMI_ReturnScreen());
695
   TERN_(DWIN_CREALITY_LCD_ENHANCED, HMI_ReturnScreen());
696
 }
696
 }
697
 
697
 

+ 1
- 1
Marlin/src/feature/power_monitor.cpp 파일 보기

26
 
26
 
27
 #include "power_monitor.h"
27
 #include "power_monitor.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
   #include "../lcd/marlinui.h"
30
   #include "../lcd/marlinui.h"
31
   #include "../lcd/lcdprint.h"
31
   #include "../lcd/lcdprint.h"
32
 #endif
32
 #endif

+ 2
- 2
Marlin/src/feature/spindle_laser.h 파일 보기

242
     }
242
     }
243
   #endif
243
   #endif
244
 
244
 
245
-  #if HAS_LCD_MENU
245
+  #if HAS_MARLINUI_MENU
246
     static void enable_with_dir(const bool reverse) {
246
     static void enable_with_dir(const bool reverse) {
247
       isReady = true;
247
       isReady = true;
248
       const uint8_t ocr = TERN(SPINDLE_LASER_USE_PWM, upower_to_ocr(menuPower), 255);
248
       const uint8_t ocr = TERN(SPINDLE_LASER_USE_PWM, upower_to_ocr(menuPower), 255);
279
       }
279
       }
280
     #endif
280
     #endif
281
 
281
 
282
-  #endif // HAS_LCD_MENU
282
+  #endif // HAS_MARLINUI_MENU
283
 
283
 
284
   #if ENABLED(LASER_POWER_INLINE)
284
   #if ENABLED(LASER_POWER_INLINE)
285
     /**
285
     /**

+ 1
- 1
Marlin/src/feature/tmc_util.cpp 파일 보기

40
   #endif
40
   #endif
41
 #endif
41
 #endif
42
 
42
 
43
-#if HAS_LCD_MENU
43
+#if HAS_MARLINUI_MENU
44
   #include "../module/stepper.h"
44
   #include "../module/stepper.h"
45
 #endif
45
 #endif
46
 
46
 

+ 10
- 10
Marlin/src/feature/tmc_util.h 파일 보기

128
       }
128
       }
129
       void set_pwm_thrs(const uint32_t thrs) {
129
       void set_pwm_thrs(const uint32_t thrs) {
130
         TMC::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
130
         TMC::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
131
-        TERN_(HAS_LCD_MENU, this->stored.hybrid_thrs = thrs);
131
+        TERN_(HAS_MARLINUI_MENU, this->stored.hybrid_thrs = thrs);
132
       }
132
       }
133
     #endif
133
     #endif
134
 
134
 
137
       void homing_threshold(int16_t sgt_val) {
137
       void homing_threshold(int16_t sgt_val) {
138
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
138
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
139
         TMC::sgt(sgt_val);
139
         TMC::sgt(sgt_val);
140
-        TERN_(HAS_LCD_MENU, this->stored.homing_thrs = sgt_val);
140
+        TERN_(HAS_MARLINUI_MENU, this->stored.homing_thrs = sgt_val);
141
       }
141
       }
142
       #if ENABLED(SPI_ENDSTOPS)
142
       #if ENABLED(SPI_ENDSTOPS)
143
         bool test_stall_status();
143
         bool test_stall_status();
144
       #endif
144
       #endif
145
     #endif
145
     #endif
146
 
146
 
147
-    #if HAS_LCD_MENU
147
+    #if HAS_MARLINUI_MENU
148
       void refresh_stepper_current() { rms_current(this->val_mA); }
148
       void refresh_stepper_current() { rms_current(this->val_mA); }
149
 
149
 
150
       #if ENABLED(HYBRID_THRESHOLD)
150
       #if ENABLED(HYBRID_THRESHOLD)
203
       }
203
       }
204
       void set_pwm_thrs(const uint32_t thrs) {
204
       void set_pwm_thrs(const uint32_t thrs) {
205
         TMC2208Stepper::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
205
         TMC2208Stepper::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
206
-        TERN_(HAS_LCD_MENU, this->stored.hybrid_thrs = thrs);
206
+        TERN_(HAS_MARLINUI_MENU, this->stored.hybrid_thrs = thrs);
207
       }
207
       }
208
     #endif
208
     #endif
209
 
209
 
210
-    #if HAS_LCD_MENU
210
+    #if HAS_MARLINUI_MENU
211
       void refresh_stepper_current() { rms_current(this->val_mA); }
211
       void refresh_stepper_current() { rms_current(this->val_mA); }
212
 
212
 
213
       #if ENABLED(HYBRID_THRESHOLD)
213
       #if ENABLED(HYBRID_THRESHOLD)
257
       }
257
       }
258
       void set_pwm_thrs(const uint32_t thrs) {
258
       void set_pwm_thrs(const uint32_t thrs) {
259
         TMC2209Stepper::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
259
         TMC2209Stepper::TPWMTHRS(_tmc_thrs(this->microsteps(), thrs, planner.settings.axis_steps_per_mm[AXIS_ID]));
260
-        TERN_(HAS_LCD_MENU, this->stored.hybrid_thrs = thrs);
260
+        TERN_(HAS_MARLINUI_MENU, this->stored.hybrid_thrs = thrs);
261
       }
261
       }
262
     #endif
262
     #endif
263
     #if USE_SENSORLESS
263
     #if USE_SENSORLESS
265
       void homing_threshold(int16_t sgt_val) {
265
       void homing_threshold(int16_t sgt_val) {
266
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
266
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
267
         TMC2209Stepper::SGTHRS(sgt_val);
267
         TMC2209Stepper::SGTHRS(sgt_val);
268
-        TERN_(HAS_LCD_MENU, this->stored.homing_thrs = sgt_val);
268
+        TERN_(HAS_MARLINUI_MENU, this->stored.homing_thrs = sgt_val);
269
       }
269
       }
270
     #endif
270
     #endif
271
 
271
 
272
-    #if HAS_LCD_MENU
272
+    #if HAS_MARLINUI_MENU
273
       void refresh_stepper_current() { rms_current(this->val_mA); }
273
       void refresh_stepper_current() { rms_current(this->val_mA); }
274
 
274
 
275
       #if ENABLED(HYBRID_THRESHOLD)
275
       #if ENABLED(HYBRID_THRESHOLD)
311
       void homing_threshold(int16_t sgt_val) {
311
       void homing_threshold(int16_t sgt_val) {
312
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
312
         sgt_val = (int16_t)constrain(sgt_val, sgt_min, sgt_max);
313
         TMC2660Stepper::sgt(sgt_val);
313
         TMC2660Stepper::sgt(sgt_val);
314
-        TERN_(HAS_LCD_MENU, this->stored.homing_thrs = sgt_val);
314
+        TERN_(HAS_MARLINUI_MENU, this->stored.homing_thrs = sgt_val);
315
       }
315
       }
316
     #endif
316
     #endif
317
 
317
 
318
-    #if HAS_LCD_MENU
318
+    #if HAS_MARLINUI_MENU
319
       void refresh_stepper_current() { rms_current(this->val_mA); }
319
       void refresh_stepper_current() { rms_current(this->val_mA); }
320
 
320
 
321
       #if USE_SENSORLESS
321
       #if USE_SENSORLESS

+ 11
- 11
Marlin/src/gcode/bedlevel/G26.cpp 파일 보기

156
 static MeshFlags circle_flags;
156
 static MeshFlags circle_flags;
157
 float g26_random_deviation = 0.0;
157
 float g26_random_deviation = 0.0;
158
 
158
 
159
-#if HAS_LCD_MENU
159
+#if HAS_MARLINUI_MENU
160
 
160
 
161
   /**
161
   /**
162
    * If the LCD is clicked, cancel, wait for release, return true
162
    * If the LCD is clicked, cancel, wait for release, return true
164
   bool user_canceled() {
164
   bool user_canceled() {
165
     if (!ui.button_pressed()) return false; // Return if the button isn't pressed
165
     if (!ui.button_pressed()) return false; // Return if the button isn't pressed
166
     ui.set_status(GET_TEXT_F(MSG_G26_CANCELED), 99);
166
     ui.set_status(GET_TEXT_F(MSG_G26_CANCELED), 99);
167
-    TERN_(HAS_LCD_MENU, ui.quick_feedback());
167
+    TERN_(HAS_MARLINUI_MENU, ui.quick_feedback());
168
     ui.wait_for_release();
168
     ui.wait_for_release();
169
     return true;
169
     return true;
170
   }
170
   }
325
         #if HAS_WIRED_LCD
325
         #if HAS_WIRED_LCD
326
           ui.set_status(GET_TEXT_F(MSG_G26_HEATING_BED), 99);
326
           ui.set_status(GET_TEXT_F(MSG_G26_HEATING_BED), 99);
327
           ui.quick_feedback();
327
           ui.quick_feedback();
328
-          TERN_(HAS_LCD_MENU, ui.capture());
328
+          TERN_(HAS_MARLINUI_MENU, ui.capture());
329
         #endif
329
         #endif
330
         thermalManager.setTargetBed(bed_temp);
330
         thermalManager.setTargetBed(bed_temp);
331
 
331
 
365
   bool prime_nozzle() {
365
   bool prime_nozzle() {
366
 
366
 
367
     const feedRate_t fr_slow_e = planner.settings.max_feedrate_mm_s[E_AXIS] / 15.0f;
367
     const feedRate_t fr_slow_e = planner.settings.max_feedrate_mm_s[E_AXIS] / 15.0f;
368
-    #if HAS_LCD_MENU && !HAS_TOUCH_BUTTONS // ui.button_pressed issue with touchscreen
368
+    #if HAS_MARLINUI_MENU && !HAS_TOUCH_BUTTONS // ui.button_pressed issue with touchscreen
369
       #if ENABLED(PREVENT_LENGTHY_EXTRUDE)
369
       #if ENABLED(PREVENT_LENGTHY_EXTRUDE)
370
         float Total_Prime = 0.0;
370
         float Total_Prime = 0.0;
371
       #endif
371
       #endif
579
 
579
 
580
   if (parser.seen('P')) {
580
   if (parser.seen('P')) {
581
     if (!parser.has_value()) {
581
     if (!parser.has_value()) {
582
-      #if HAS_LCD_MENU
582
+      #if HAS_MARLINUI_MENU
583
         g26.prime_flag = -1;
583
         g26.prime_flag = -1;
584
       #else
584
       #else
585
         SERIAL_ECHOLNPGM("?Prime length must be specified when not using an LCD.");
585
         SERIAL_ECHOLNPGM("?Prime length must be specified when not using an LCD.");
638
 
638
 
639
   // Get repeat from 'R', otherwise do one full circuit
639
   // Get repeat from 'R', otherwise do one full circuit
640
   int16_t g26_repeats;
640
   int16_t g26_repeats;
641
-  #if HAS_LCD_MENU
641
+  #if HAS_MARLINUI_MENU
642
     g26_repeats = parser.intval('R', GRID_MAX_POINTS + 1);
642
     g26_repeats = parser.intval('R', GRID_MAX_POINTS + 1);
643
   #else
643
   #else
644
     if (parser.seen('R'))
644
     if (parser.seen('R'))
699
   move_to(destination, 0.0);
699
   move_to(destination, 0.0);
700
   move_to(destination, g26.ooze_amount);
700
   move_to(destination, g26.ooze_amount);
701
 
701
 
702
-  TERN_(HAS_LCD_MENU, ui.capture());
702
+  TERN_(HAS_MARLINUI_MENU, ui.capture());
703
 
703
 
704
   #if DISABLED(ARC_SUPPORT)
704
   #if DISABLED(ARC_SUPPORT)
705
 
705
 
795
           destination = current_position;
795
           destination = current_position;
796
         }
796
         }
797
 
797
 
798
-        if (TERN0(HAS_LCD_MENU, user_canceled())) goto LEAVE; // Check if the user wants to stop the Mesh Validation
798
+        if (TERN0(HAS_MARLINUI_MENU, user_canceled())) goto LEAVE; // Check if the user wants to stop the Mesh Validation
799
 
799
 
800
       #else // !ARC_SUPPORT
800
       #else // !ARC_SUPPORT
801
 
801
 
819
 
819
 
820
         for (int8_t ind = start_ind; ind <= end_ind; ind++) {
820
         for (int8_t ind = start_ind; ind <= end_ind; ind++) {
821
 
821
 
822
-          if (TERN0(HAS_LCD_MENU, user_canceled())) goto LEAVE; // Check if the user wants to stop the Mesh Validation
822
+          if (TERN0(HAS_MARLINUI_MENU, user_canceled())) goto LEAVE; // Check if the user wants to stop the Mesh Validation
823
 
823
 
824
           xyz_float_t p = { circle.x + _COS(ind    ), circle.y + _SIN(ind    ), g26.layer_height },
824
           xyz_float_t p = { circle.x + _COS(ind    ), circle.y + _SIN(ind    ), g26.layer_height },
825
                       q = { circle.x + _COS(ind + 1), circle.y + _SIN(ind + 1), g26.layer_height };
825
                       q = { circle.x + _COS(ind + 1), circle.y + _SIN(ind + 1), g26.layer_height };
846
       g26.connect_neighbor_with_line(location.pos,  0,  1);
846
       g26.connect_neighbor_with_line(location.pos,  0,  1);
847
       planner.synchronize();
847
       planner.synchronize();
848
       TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(location.pos, ExtUI::G26_POINT_FINISH));
848
       TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(location.pos, ExtUI::G26_POINT_FINISH));
849
-      if (TERN0(HAS_LCD_MENU, user_canceled())) goto LEAVE;
849
+      if (TERN0(HAS_MARLINUI_MENU, user_canceled())) goto LEAVE;
850
     }
850
     }
851
 
851
 
852
     SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
852
     SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
866
     planner.calculate_volumetric_multipliers();
866
     planner.calculate_volumetric_multipliers();
867
   #endif
867
   #endif
868
 
868
 
869
-  TERN_(HAS_LCD_MENU, ui.release()); // Give back control of the LCD
869
+  TERN_(HAS_MARLINUI_MENU, ui.release()); // Give back control of the LCD
870
 
870
 
871
   if (!g26.keep_heaters_on) {
871
   if (!g26.keep_heaters_on) {
872
     TERN_(HAS_HEATED_BED, thermalManager.setTargetBed(0));
872
     TERN_(HAS_HEATED_BED, thermalManager.setTargetBed(0));

+ 1
- 1
Marlin/src/gcode/control/M80_M81.cpp 파일 보기

63
       OUT_WRITE(SUICIDE_PIN, !SUICIDE_PIN_STATE);
63
       OUT_WRITE(SUICIDE_PIN, !SUICIDE_PIN_STATE);
64
     #endif
64
     #endif
65
 
65
 
66
-    TERN_(HAS_LCD_MENU, ui.reset_status());
66
+    TERN_(HAS_MARLINUI_MENU, ui.reset_status());
67
   }
67
   }
68
 
68
 
69
 #endif // PSU_CONTROL
69
 #endif // PSU_CONTROL

+ 1
- 1
Marlin/src/gcode/feature/pause/M125.cpp 파일 보기

85
   ui.pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT);
85
   ui.pause_show_message(PAUSE_MESSAGE_PARKING, PAUSE_MODE_PAUSE_PRINT);
86
 
86
 
87
   // If possible, show an LCD prompt with the 'P' flag
87
   // If possible, show an LCD prompt with the 'P' flag
88
-  const bool show_lcd = TERN0(HAS_LCD_MENU, parser.boolval('P'));
88
+  const bool show_lcd = TERN0(HAS_MARLINUI_MENU, parser.boolval('P'));
89
 
89
 
90
   if (pause_print(retract, park_point, show_lcd, 0)) {
90
   if (pause_print(retract, park_point, show_lcd, 0)) {
91
     if (ENABLED(EXTENSIBLE_UI) || BOTH(EMERGENCY_PARSER, HOST_PROMPT_SUPPORT) || !sd_printing || show_lcd) {
91
     if (ENABLED(EXTENSIBLE_UI) || BOTH(EMERGENCY_PARSER, HOST_PROMPT_SUPPORT) || !sd_printing || show_lcd) {

+ 3
- 3
Marlin/src/gcode/feature/powerloss/M1000.cpp 파일 보기

54
   #endif
54
   #endif
55
 }
55
 }
56
 
56
 
57
-#if HAS_LCD_MENU
57
+#if HAS_MARLINUI_MENU
58
   void lcd_power_loss_recovery_cancel();
58
   void lcd_power_loss_recovery_cancel();
59
 #endif
59
 #endif
60
 
60
 
67
 
67
 
68
   if (recovery.valid()) {
68
   if (recovery.valid()) {
69
     if (parser.seen_test('S')) {
69
     if (parser.seen_test('S')) {
70
-      #if HAS_LCD_MENU
70
+      #if HAS_MARLINUI_MENU
71
         ui.goto_screen(menu_job_recovery);
71
         ui.goto_screen(menu_job_recovery);
72
       #elif HAS_DWIN_E3V2_BASIC
72
       #elif HAS_DWIN_E3V2_BASIC
73
         recovery.dwin_flag = true;
73
         recovery.dwin_flag = true;
80
       #endif
80
       #endif
81
     }
81
     }
82
     else if (parser.seen_test('C')) {
82
     else if (parser.seen_test('C')) {
83
-      #if HAS_LCD_MENU
83
+      #if HAS_MARLINUI_MENU
84
         lcd_power_loss_recovery_cancel();
84
         lcd_power_loss_recovery_cancel();
85
       #else
85
       #else
86
         recovery.cancel();
86
         recovery.cancel();

+ 3
- 3
Marlin/src/gcode/lcd/M0_M1.cpp 파일 보기

31
 #include "../../module/planner.h" // for synchronize()
31
 #include "../../module/planner.h" // for synchronize()
32
 #include "../../MarlinCore.h"     // for wait_for_user_response()
32
 #include "../../MarlinCore.h"     // for wait_for_user_response()
33
 
33
 
34
-#if HAS_LCD_MENU
34
+#if HAS_MARLINUI_MENU
35
   #include "../../lcd/marlinui.h"
35
   #include "../../lcd/marlinui.h"
36
 #elif ENABLED(EXTENSIBLE_UI)
36
 #elif ENABLED(EXTENSIBLE_UI)
37
   #include "../../lcd/extui/ui_api.h"
37
   #include "../../lcd/extui/ui_api.h"
55
 
55
 
56
   planner.synchronize();
56
   planner.synchronize();
57
 
57
 
58
-  #if HAS_LCD_MENU
58
+  #if HAS_MARLINUI_MENU
59
 
59
 
60
     if (parser.string_arg)
60
     if (parser.string_arg)
61
       ui.set_status(parser.string_arg, true);
61
       ui.set_status(parser.string_arg, true);
89
 
89
 
90
   TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(ms));
90
   TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(ms));
91
 
91
 
92
-  TERN_(HAS_LCD_MENU, ui.reset_status());
92
+  TERN_(HAS_MARLINUI_MENU, ui.reset_status());
93
 }
93
 }
94
 
94
 
95
 #endif // HAS_RESUME_CONTINUE
95
 #endif // HAS_RESUME_CONTINUE

+ 2
- 2
Marlin/src/gcode/parser.h 파일 보기

355
       return input_temp_units == TEMPUNIT_K ? F("Kelvin") : input_temp_units == TEMPUNIT_F ? F("Fahrenheit") : F("Celsius");
355
       return input_temp_units == TEMPUNIT_K ? F("Kelvin") : input_temp_units == TEMPUNIT_F ? F("Fahrenheit") : F("Celsius");
356
     }
356
     }
357
 
357
 
358
-    #if HAS_LCD_MENU && DISABLED(DISABLE_M503)
358
+    #if HAS_MARLINUI_MENU && DISABLED(DISABLE_M503)
359
 
359
 
360
       static float to_temp_units(celsius_t c) {
360
       static float to_temp_units(celsius_t c) {
361
         switch (input_temp_units) {
361
         switch (input_temp_units) {
366
         }
366
         }
367
       }
367
       }
368
 
368
 
369
-    #endif // HAS_LCD_MENU && !DISABLE_M503
369
+    #endif // HAS_MARLINUI_MENU && !DISABLE_M503
370
 
370
 
371
     static celsius_t value_celsius() {
371
     static celsius_t value_celsius() {
372
       float f = value_float();
372
       float f = value_float();

+ 1
- 1
Marlin/src/gcode/queue.cpp 파일 보기

522
         #if DISABLED(EMERGENCY_PARSER)
522
         #if DISABLED(EMERGENCY_PARSER)
523
           // Process critical commands early
523
           // Process critical commands early
524
           if (command[0] == 'M') switch (command[3]) {
524
           if (command[0] == 'M') switch (command[3]) {
525
-            case '8': if (command[2] == '0' && command[1] == '1') { wait_for_heatup = false; TERN_(HAS_LCD_MENU, wait_for_user = false); } break;
525
+            case '8': if (command[2] == '0' && command[1] == '1') { wait_for_heatup = false; TERN_(HAS_MARLINUI_MENU, wait_for_user = false); } break;
526
             case '2': if (command[2] == '1' && command[1] == '1') kill(FPSTR(M112_KILL_STR), nullptr, true); break;
526
             case '2': if (command[2] == '1' && command[1] == '1') kill(FPSTR(M112_KILL_STR), nullptr, true); break;
527
             case '0': if (command[1] == '4' && command[2] == '1') quickstop_stepper(); break;
527
             case '0': if (command[1] == '4' && command[2] == '1') quickstop_stepper(); break;
528
           }
528
           }

+ 1
- 1
Marlin/src/gcode/sd/M1001.cpp 파일 보기

98
       printerEventLEDs.onPrintCompleted();
98
       printerEventLEDs.onPrintCompleted();
99
       TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired(GET_TEXT_F(MSG_PRINT_DONE)));
99
       TERN_(EXTENSIBLE_UI, ExtUI::onUserConfirmRequired(GET_TEXT_F(MSG_PRINT_DONE)));
100
       TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_PRINT_DONE), FPSTR(CONTINUE_STR)));
100
       TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_do(PROMPT_USER_CONTINUE, GET_TEXT_F(MSG_PRINT_DONE), FPSTR(CONTINUE_STR)));
101
-      TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(SEC_TO_MS(TERN(HAS_LCD_MENU, PE_LEDS_COMPLETED_TIME, 30))));
101
+      TERN_(HAS_RESUME_CONTINUE, wait_for_user_response(SEC_TO_MS(TERN(HAS_MARLINUI_MENU, PE_LEDS_COMPLETED_TIME, 30))));
102
       printerEventLEDs.onResumeAfterWait();
102
       printerEventLEDs.onResumeAfterWait();
103
     }
103
     }
104
   #endif
104
   #endif

+ 5
- 1
Marlin/src/inc/Conditionals_LCD.h 파일 보기

542
 #endif
542
 #endif
543
 
543
 
544
 #if IS_ULTIPANEL && DISABLED(NO_LCD_MENUS)
544
 #if IS_ULTIPANEL && DISABLED(NO_LCD_MENUS)
545
-  #define HAS_LCD_MENU 1
545
+  #define HAS_MARLINUI_MENU 1
546
+#endif
547
+
548
+#if ANY(HAS_MARLINUI_MENU, EXTENSIBLE_UI, HAS_DWIN_E3V2)
549
+  #define HAS_MANUAL_MOVE_MENU 1
546
 #endif
550
 #endif
547
 
551
 
548
 #if ANY(HAS_MARLINUI_U8GLIB, EXTENSIBLE_UI, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL, IS_DWIN_MARLINUI, DWIN_CREALITY_LCD_JYERSUI)
552
 #if ANY(HAS_MARLINUI_U8GLIB, EXTENSIBLE_UI, HAS_MARLINUI_HD44780, IS_TFTGLCD_PANEL, IS_DWIN_MARLINUI, DWIN_CREALITY_LCD_JYERSUI)

+ 4
- 4
Marlin/src/inc/Conditionals_post.h 파일 보기

437
 
437
 
438
   // Set SD_DETECT_STATE based on hardware if not overridden
438
   // Set SD_DETECT_STATE based on hardware if not overridden
439
   #if PIN_EXISTS(SD_DETECT) && !defined(SD_DETECT_STATE)
439
   #if PIN_EXISTS(SD_DETECT) && !defined(SD_DETECT_STATE)
440
-    #if BOTH(HAS_LCD_MENU, ELB_FULL_GRAPHIC_CONTROLLER) && (SD_CONNECTION_IS(LCD) || !defined(SDCARD_CONNECTION))
440
+    #if BOTH(HAS_MARLINUI_MENU, ELB_FULL_GRAPHIC_CONTROLLER) && (SD_CONNECTION_IS(LCD) || !defined(SDCARD_CONNECTION))
441
       #define SD_DETECT_STATE HIGH
441
       #define SD_DETECT_STATE HIGH
442
     #else
442
     #else
443
       #define SD_DETECT_STATE LOW
443
       #define SD_DETECT_STATE LOW
3052
   #define HAS_TEMPERATURE 1
3052
   #define HAS_TEMPERATURE 1
3053
 #endif
3053
 #endif
3054
 
3054
 
3055
-#if HAS_TEMPERATURE && EITHER(HAS_LCD_MENU, HAS_DWIN_E3V2)
3055
+#if HAS_TEMPERATURE && EITHER(HAS_MARLINUI_MENU, HAS_DWIN_E3V2)
3056
   #ifdef PREHEAT_6_LABEL
3056
   #ifdef PREHEAT_6_LABEL
3057
     #define PREHEAT_COUNT 6
3057
     #define PREHEAT_COUNT 6
3058
   #elif defined(PREHEAT_5_LABEL)
3058
   #elif defined(PREHEAT_5_LABEL)
3177
  * Advanced Pause - Filament Change
3177
  * Advanced Pause - Filament Change
3178
  */
3178
  */
3179
 #if ENABLED(ADVANCED_PAUSE_FEATURE)
3179
 #if ENABLED(ADVANCED_PAUSE_FEATURE)
3180
-  #if ANY(HAS_LCD_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI) || BOTH(EMERGENCY_PARSER, HOST_PROMPT_SUPPORT)
3180
+  #if ANY(HAS_MARLINUI_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI) || BOTH(EMERGENCY_PARSER, HOST_PROMPT_SUPPORT)
3181
     #define M600_PURGE_MORE_RESUMABLE 1
3181
     #define M600_PURGE_MORE_RESUMABLE 1
3182
   #endif
3182
   #endif
3183
   #ifndef FILAMENT_CHANGE_SLOW_LOAD_LENGTH
3183
   #ifndef FILAMENT_CHANGE_SLOW_LOAD_LENGTH
3407
   #endif
3407
   #endif
3408
 #endif
3408
 #endif
3409
 
3409
 
3410
-#if HAS_LCD_MENU
3410
+#if HAS_MARLINUI_MENU
3411
   // LCD timeout to status screen default is 15s
3411
   // LCD timeout to status screen default is 15s
3412
   #ifndef LCD_TIMEOUT_TO_STATUS
3412
   #ifndef LCD_TIMEOUT_TO_STATUS
3413
     #define LCD_TIMEOUT_TO_STATUS 15000
3413
     #define LCD_TIMEOUT_TO_STATUS 15000

+ 8
- 8
Marlin/src/inc/SanityCheck.h 파일 보기

851
   #error "USE_M73_REMAINING_TIME requires LCD_SET_PROGRESS_MANUALLY"
851
   #error "USE_M73_REMAINING_TIME requires LCD_SET_PROGRESS_MANUALLY"
852
 #endif
852
 #endif
853
 
853
 
854
-#if !HAS_LCD_MENU && ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
854
+#if !HAS_MARLINUI_MENU && ENABLED(SD_REPRINT_LAST_SELECTED_FILE)
855
   #error "SD_REPRINT_LAST_SELECTED_FILE currently requires a Marlin-native LCD menu."
855
   #error "SD_REPRINT_LAST_SELECTED_FILE currently requires a Marlin-native LCD menu."
856
 #endif
856
 #endif
857
 
857
 
874
 /**
874
 /**
875
  * SD Card Settings
875
  * SD Card Settings
876
  */
876
  */
877
-#if ALL(SDSUPPORT, ELB_FULL_GRAPHIC_CONTROLLER, HAS_LCD_MENU) && PIN_EXISTS(SD_DETECT) && SD_DETECT_STATE != HIGH && (SD_CONNECTION_IS(LCD) || !defined(SDCARD_CONNECTION))
877
+#if ALL(SDSUPPORT, ELB_FULL_GRAPHIC_CONTROLLER, HAS_MARLINUI_MENU) && PIN_EXISTS(SD_DETECT) && SD_DETECT_STATE != HIGH && (SD_CONNECTION_IS(LCD) || !defined(SDCARD_CONNECTION))
878
   #error "SD_DETECT_STATE must be set HIGH for SD on the ELB_FULL_GRAPHIC_CONTROLLER."
878
   #error "SD_DETECT_STATE must be set HIGH for SD on the ELB_FULL_GRAPHIC_CONTROLLER."
879
 #endif
879
 #endif
880
 
880
 
1081
     #error "PRUSA_MMU2S requires FILAMENT_RUNOUT_SENSOR. Enable it to continue."
1081
     #error "PRUSA_MMU2S requires FILAMENT_RUNOUT_SENSOR. Enable it to continue."
1082
   #elif ENABLED(MMU_EXTRUDER_SENSOR) && DISABLED(FILAMENT_RUNOUT_SENSOR)
1082
   #elif ENABLED(MMU_EXTRUDER_SENSOR) && DISABLED(FILAMENT_RUNOUT_SENSOR)
1083
     #error "MMU_EXTRUDER_SENSOR requires FILAMENT_RUNOUT_SENSOR. Enable it to continue."
1083
     #error "MMU_EXTRUDER_SENSOR requires FILAMENT_RUNOUT_SENSOR. Enable it to continue."
1084
-  #elif ENABLED(MMU_EXTRUDER_SENSOR) && !HAS_LCD_MENU
1084
+  #elif ENABLED(MMU_EXTRUDER_SENSOR) && !HAS_MARLINUI_MENU
1085
     #error "MMU_EXTRUDER_SENSOR requires an LCD supporting MarlinUI."
1085
     #error "MMU_EXTRUDER_SENSOR requires an LCD supporting MarlinUI."
1086
-  #elif ENABLED(MMU2_MENUS) && !HAS_LCD_MENU
1086
+  #elif ENABLED(MMU2_MENUS) && !HAS_MARLINUI_MENU
1087
     #error "MMU2_MENUS requires an LCD supporting MarlinUI."
1087
     #error "MMU2_MENUS requires an LCD supporting MarlinUI."
1088
   #elif DISABLED(ADVANCED_PAUSE_FEATURE)
1088
   #elif DISABLED(ADVANCED_PAUSE_FEATURE)
1089
     static_assert(nullptr == strstr(MMU2_FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with PRUSA_MMU2(S) / HAS_EXTENDABLE_MMU(S).");
1089
     static_assert(nullptr == strstr(MMU2_FILAMENT_RUNOUT_SCRIPT, "M600"), "ADVANCED_PAUSE_FEATURE is required to use M600 with PRUSA_MMU2(S) / HAS_EXTENDABLE_MMU(S).");
1479
     #error "You probably want to use Max Endstops for DELTA!"
1479
     #error "You probably want to use Max Endstops for DELTA!"
1480
   #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
1480
   #elif ENABLED(ENABLE_LEVELING_FADE_HEIGHT) && DISABLED(AUTO_BED_LEVELING_BILINEAR) && !UBL_SEGMENTED
1481
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
1481
     #error "ENABLE_LEVELING_FADE_HEIGHT on DELTA requires AUTO_BED_LEVELING_BILINEAR or AUTO_BED_LEVELING_UBL."
1482
-  #elif ENABLED(DELTA_AUTO_CALIBRATION) && !(HAS_BED_PROBE || HAS_LCD_MENU)
1482
+  #elif ENABLED(DELTA_AUTO_CALIBRATION) && !(HAS_BED_PROBE || HAS_MARLINUI_MENU)
1483
     #error "DELTA_AUTO_CALIBRATION requires a probe or LCD Controller."
1483
     #error "DELTA_AUTO_CALIBRATION requires a probe or LCD Controller."
1484
-  #elif ENABLED(DELTA_CALIBRATION_MENU) && !HAS_LCD_MENU
1484
+  #elif ENABLED(DELTA_CALIBRATION_MENU) && !HAS_MARLINUI_MENU
1485
     #error "DELTA_CALIBRATION_MENU requires an LCD Controller."
1485
     #error "DELTA_CALIBRATION_MENU requires an LCD Controller."
1486
   #elif ABL_USES_GRID
1486
   #elif ABL_USES_GRID
1487
     #if ((GRID_MAX_POINTS_X) & 1) == 0 || ((GRID_MAX_POINTS_Y) & 1) == 0
1487
     #if ((GRID_MAX_POINTS_X) & 1) == 0 || ((GRID_MAX_POINTS_Y) & 1) == 0
1820
  * LCD_BED_LEVELING requirements
1820
  * LCD_BED_LEVELING requirements
1821
  */
1821
  */
1822
 #if ENABLED(LCD_BED_LEVELING)
1822
 #if ENABLED(LCD_BED_LEVELING)
1823
-  #if NONE(HAS_LCD_MENU, DWIN_CREALITY_LCD, DWIN_CREALITY_LCD_ENHANCED)
1823
+  #if NONE(HAS_MARLINUI_MENU, DWIN_CREALITY_LCD, DWIN_CREALITY_LCD_ENHANCED)
1824
     #error "LCD_BED_LEVELING is not supported by the selected LCD controller."
1824
     #error "LCD_BED_LEVELING is not supported by the selected LCD controller."
1825
   #elif !(ENABLED(MESH_BED_LEVELING) || HAS_ABL_NOT_UBL)
1825
   #elif !(ENABLED(MESH_BED_LEVELING) || HAS_ABL_NOT_UBL)
1826
     #error "LCD_BED_LEVELING requires MESH_BED_LEVELING or AUTO_BED_LEVELING."
1826
     #error "LCD_BED_LEVELING requires MESH_BED_LEVELING or AUTO_BED_LEVELING."
3743
  * Sanity Check for Password Feature
3743
  * Sanity Check for Password Feature
3744
  */
3744
  */
3745
 #if ENABLED(PASSWORD_FEATURE)
3745
 #if ENABLED(PASSWORD_FEATURE)
3746
-  #if NONE(HAS_LCD_MENU, PASSWORD_UNLOCK_GCODE, PASSWORD_CHANGE_GCODE)
3746
+  #if NONE(HAS_MARLINUI_MENU, PASSWORD_UNLOCK_GCODE, PASSWORD_CHANGE_GCODE)
3747
     #error "Without PASSWORD_UNLOCK_GCODE, PASSWORD_CHANGE_GCODE, or a supported LCD there's no way to unlock the printer or set a password."
3747
     #error "Without PASSWORD_UNLOCK_GCODE, PASSWORD_CHANGE_GCODE, or a supported LCD there's no way to unlock the printer or set a password."
3748
   #elif DISABLED(EEPROM_SETTINGS)
3748
   #elif DISABLED(EEPROM_SETTINGS)
3749
     #warning "PASSWORD_FEATURE settings will be lost on power-off without EEPROM_SETTINGS."
3749
     #warning "PASSWORD_FEATURE settings will be lost on power-off without EEPROM_SETTINGS."

+ 4
- 4
Marlin/src/lcd/HD44780/marlinui_HD44780.cpp 파일 보기

284
 
284
 
285
   #endif // LCD_PROGRESS_BAR
285
   #endif // LCD_PROGRESS_BAR
286
 
286
 
287
-  #if BOTH(SDSUPPORT, HAS_LCD_MENU)
287
+  #if BOTH(SDSUPPORT, HAS_MARLINUI_MENU)
288
 
288
 
289
     // CHARSET_MENU
289
     // CHARSET_MENU
290
     const static PROGMEM byte refresh[8] = {
290
     const static PROGMEM byte refresh[8] = {
334
       #endif
334
       #endif
335
         {
335
         {
336
           createChar_P(LCD_STR_UPLEVEL[0], uplevel);
336
           createChar_P(LCD_STR_UPLEVEL[0], uplevel);
337
-          #if BOTH(SDSUPPORT, HAS_LCD_MENU)
337
+          #if BOTH(SDSUPPORT, HAS_MARLINUI_MENU)
338
             // SD Card sub-menu special characters
338
             // SD Card sub-menu special characters
339
             createChar_P(LCD_STR_REFRESH[0], refresh);
339
             createChar_P(LCD_STR_REFRESH[0], refresh);
340
             createChar_P(LCD_STR_FOLDER[0], folder);
340
             createChar_P(LCD_STR_FOLDER[0], folder);
1051
   draw_status_message(blink);
1051
   draw_status_message(blink);
1052
 }
1052
 }
1053
 
1053
 
1054
-#if HAS_LCD_MENU
1054
+#if HAS_MARLINUI_MENU
1055
 
1055
 
1056
   #include "../menu/menu.h"
1056
   #include "../menu/menu.h"
1057
 
1057
 
1584
 
1584
 
1585
   #endif // AUTO_BED_LEVELING_UBL
1585
   #endif // AUTO_BED_LEVELING_UBL
1586
 
1586
 
1587
-#endif // HAS_LCD_MENU
1587
+#endif // HAS_MARLINUI_MENU
1588
 
1588
 
1589
 #endif // HAS_MARLINUI_HD44780
1589
 #endif // HAS_MARLINUI_HD44780

+ 2
- 2
Marlin/src/lcd/TFTGLCD/marlinui_TFTGLCD.cpp 파일 보기

922
   lcd.print_screen();
922
   lcd.print_screen();
923
 }
923
 }
924
 
924
 
925
-#if HAS_LCD_MENU
925
+#if HAS_MARLINUI_MENU
926
 
926
 
927
   #include "../menu/menu.h"
927
   #include "../menu/menu.h"
928
 
928
 
1084
 
1084
 
1085
   #endif // AUTO_BED_LEVELING_UBL
1085
   #endif // AUTO_BED_LEVELING_UBL
1086
 
1086
 
1087
-#endif // HAS_LCD_MENU
1087
+#endif // HAS_MARLINUI_MENU
1088
 
1088
 
1089
 #endif // IS_TFTGLCD_PANEL
1089
 #endif // IS_TFTGLCD_PANEL

+ 2
- 2
Marlin/src/lcd/dogm/marlinui_DOGM.cpp 파일 보기

353
 
353
 
354
 #endif
354
 #endif
355
 
355
 
356
-#if HAS_LCD_MENU
356
+#if HAS_MARLINUI_MENU
357
 
357
 
358
   #include "../menu/menu.h"
358
   #include "../menu/menu.h"
359
 
359
 
744
 
744
 
745
   #endif // BABYSTEP_ZPROBE_GFX_OVERLAY || MESH_EDIT_GFX_OVERLAY
745
   #endif // BABYSTEP_ZPROBE_GFX_OVERLAY || MESH_EDIT_GFX_OVERLAY
746
 
746
 
747
-#endif // HAS_LCD_MENU
747
+#endif // HAS_MARLINUI_MENU
748
 
748
 
749
 #endif // HAS_MARLINUI_U8GLIB
749
 #endif // HAS_MARLINUI_U8GLIB

+ 2
- 2
Marlin/src/lcd/e3v2/marlinui/ui_common.cpp 파일 보기

253
   void MarlinUI::_set_brightness() { DWIN_LCD_Brightness(backlight ? brightness : 0); }
253
   void MarlinUI::_set_brightness() { DWIN_LCD_Brightness(backlight ? brightness : 0); }
254
 #endif
254
 #endif
255
 
255
 
256
-#if HAS_LCD_MENU
256
+#if HAS_MARLINUI_MENU
257
 
257
 
258
   #include "../../menu/menu.h"
258
   #include "../../menu/menu.h"
259
 
259
 
581
 
581
 
582
   #endif // BABYSTEP_ZPROBE_GFX_OVERLAY || MESH_EDIT_GFX_OVERLAY
582
   #endif // BABYSTEP_ZPROBE_GFX_OVERLAY || MESH_EDIT_GFX_OVERLAY
583
 
583
 
584
-#endif // HAS_LCD_MENU
584
+#endif // HAS_MARLINUI_MENU
585
 
585
 
586
 #endif // IS_DWIN_MARLINUI
586
 #endif // IS_DWIN_MARLINUI

+ 1
- 1
Marlin/src/lcd/extui/mks_ui/wifi_module.cpp 파일 보기

2028
           // Process critical commands early
2028
           // Process critical commands early
2029
           if (strcmp_P(command, PSTR("M108")) == 0) {
2029
           if (strcmp_P(command, PSTR("M108")) == 0) {
2030
             wait_for_heatup = false;
2030
             wait_for_heatup = false;
2031
-            TERN_(HAS_LCD_MENU, wait_for_user = false);
2031
+            TERN_(HAS_MARLINUI_MENU, wait_for_user = false);
2032
           }
2032
           }
2033
           if (strcmp_P(command, PSTR("M112")) == 0) kill(FPSTR(M112_KILL_STR), nullptr, true);
2033
           if (strcmp_P(command, PSTR("M112")) == 0) kill(FPSTR(M112_KILL_STR), nullptr, true);
2034
           if (strcmp_P(command, PSTR("M410")) == 0) quickstop_stepper();
2034
           if (strcmp_P(command, PSTR("M410")) == 0) quickstop_stepper();

+ 1
- 1
Marlin/src/lcd/extui/ui_api.h 파일 보기

196
   #endif
196
   #endif
197
 
197
 
198
   inline void simulateUserClick() {
198
   inline void simulateUserClick() {
199
-    #if ANY(HAS_LCD_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_JYERSUI)
199
+    #if ANY(HAS_MARLINUI_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_JYERSUI)
200
       ui.lcd_clicked = true;
200
       ui.lcd_clicked = true;
201
     #endif
201
     #endif
202
   }
202
   }

+ 32
- 32
Marlin/src/lcd/marlinui.cpp 파일 보기

155
   }
155
   }
156
 #endif
156
 #endif
157
 
157
 
158
-#if EITHER(HAS_LCD_MENU, EXTENSIBLE_UI)
158
+#if EITHER(HAS_MARLINUI_MENU, EXTENSIBLE_UI)
159
   bool MarlinUI::lcd_clicked;
159
   bool MarlinUI::lcd_clicked;
160
 #endif
160
 #endif
161
 
161
 
257
   #include "../module/planner.h"
257
   #include "../module/planner.h"
258
   #include "../module/motion.h"
258
   #include "../module/motion.h"
259
 
259
 
260
-  #if HAS_LCD_MENU
260
+  #if HAS_MARLINUI_MENU
261
     #include "../module/settings.h"
261
     #include "../module/settings.h"
262
   #endif
262
   #endif
263
 
263
 
348
 
348
 
349
   #endif
349
   #endif
350
 
350
 
351
-  #if HAS_LCD_MENU
351
+  #if HAS_MARLINUI_MENU
352
     #include "menu/menu.h"
352
     #include "menu/menu.h"
353
 
353
 
354
     screenFunc_t MarlinUI::currentScreen; // Initialized in CTOR
354
     screenFunc_t MarlinUI::currentScreen; // Initialized in CTOR
450
 
450
 
451
     #endif // !HAS_GRAPHICAL_TFT
451
     #endif // !HAS_GRAPHICAL_TFT
452
 
452
 
453
-  #endif // HAS_LCD_MENU
453
+  #endif // HAS_MARLINUI_MENU
454
 
454
 
455
   ////////////////////////////////////////////
455
   ////////////////////////////////////////////
456
   ///////////// Keypad Handling //////////////
456
   ///////////// Keypad Handling //////////////
460
 
460
 
461
     volatile uint8_t MarlinUI::keypad_buttons;
461
     volatile uint8_t MarlinUI::keypad_buttons;
462
 
462
 
463
-    #if HAS_LCD_MENU && !HAS_ADC_BUTTONS
463
+    #if HAS_MARLINUI_MENU && !HAS_ADC_BUTTONS
464
 
464
 
465
       void lcd_move_x();
465
       void lcd_move_x();
466
       void lcd_move_y();
466
       void lcd_move_y();
487
         if (keypad_buttons) {
487
         if (keypad_buttons) {
488
           #if HAS_ENCODER_ACTION
488
           #if HAS_ENCODER_ACTION
489
             refresh(LCDVIEW_REDRAW_NOW);
489
             refresh(LCDVIEW_REDRAW_NOW);
490
-            #if HAS_LCD_MENU
490
+            #if HAS_MARLINUI_MENU
491
               if (encoderDirection == -(ENCODERBASE)) { // HAS_ADC_BUTTONS forces REVERSE_MENU_DIRECTION, so this indicates menu navigation
491
               if (encoderDirection == -(ENCODERBASE)) { // HAS_ADC_BUTTONS forces REVERSE_MENU_DIRECTION, so this indicates menu navigation
492
                      if (RRK(EN_KEYPAD_UP))     encoderPosition += ENCODER_STEPS_PER_MENU_ITEM;
492
                      if (RRK(EN_KEYPAD_UP))     encoderPosition += ENCODER_STEPS_PER_MENU_ITEM;
493
                 else if (RRK(EN_KEYPAD_DOWN))   encoderPosition -= ENCODER_STEPS_PER_MENU_ITEM;
493
                 else if (RRK(EN_KEYPAD_DOWN))   encoderPosition -= ENCODER_STEPS_PER_MENU_ITEM;
497
               else
497
               else
498
             #endif
498
             #endif
499
             {
499
             {
500
-              #if HAS_LCD_MENU
500
+              #if HAS_MARLINUI_MENU
501
                      if (RRK(EN_KEYPAD_UP))     encoderPosition -= epps;
501
                      if (RRK(EN_KEYPAD_UP))     encoderPosition -= epps;
502
                 else if (RRK(EN_KEYPAD_DOWN))   encoderPosition += epps;
502
                 else if (RRK(EN_KEYPAD_DOWN))   encoderPosition += epps;
503
                 else if (RRK(EN_KEYPAD_LEFT))   { MenuItem_back::action(); quick_feedback(); }
503
                 else if (RRK(EN_KEYPAD_LEFT))   { MenuItem_back::action(); quick_feedback(); }
528
 
528
 
529
           const bool homed = all_axes_homed();
529
           const bool homed = all_axes_homed();
530
 
530
 
531
-          #if HAS_LCD_MENU
531
+          #if HAS_MARLINUI_MENU
532
 
532
 
533
             if (RRK(EN_KEYPAD_MIDDLE))  goto_screen(menu_move);
533
             if (RRK(EN_KEYPAD_MIDDLE))  goto_screen(menu_move);
534
 
534
 
547
               if (RRK(EN_KEYPAD_UP))    _reprapworld_keypad_move(Y_AXIS, -1);
547
               if (RRK(EN_KEYPAD_UP))    _reprapworld_keypad_move(Y_AXIS, -1);
548
             }
548
             }
549
 
549
 
550
-          #endif // HAS_LCD_MENU
550
+          #endif // HAS_MARLINUI_MENU
551
 
551
 
552
           if (!homed && RRK(EN_KEYPAD_F1)) queue.inject_P(G28_STR);
552
           if (!homed && RRK(EN_KEYPAD_F1)) queue.inject_P(G28_STR);
553
           return true;
553
           return true;
575
 
575
 
576
   void MarlinUI::status_screen() {
576
   void MarlinUI::status_screen() {
577
 
577
 
578
-    TERN_(HAS_LCD_MENU, ENCODER_RATE_MULTIPLY(false));
578
+    TERN_(HAS_MARLINUI_MENU, ENCODER_RATE_MULTIPLY(false));
579
 
579
 
580
     #if BASIC_PROGRESS_BAR
580
     #if BASIC_PROGRESS_BAR
581
 
581
 
619
 
619
 
620
     #endif // BASIC_PROGRESS_BAR
620
     #endif // BASIC_PROGRESS_BAR
621
 
621
 
622
-    #if HAS_LCD_MENU
622
+    #if HAS_MARLINUI_MENU
623
       if (use_click()) {
623
       if (use_click()) {
624
         #if BOTH(FILAMENT_LCD_DISPLAY, SDSUPPORT)
624
         #if BOTH(FILAMENT_LCD_DISPLAY, SDSUPPORT)
625
           next_filament_display = millis() + 5000UL;  // Show status message for 5s
625
           next_filament_display = millis() + 5000UL;  // Show status message for 5s
673
   void MarlinUI::kill_screen(FSTR_P const lcd_error, FSTR_P const lcd_component) {
673
   void MarlinUI::kill_screen(FSTR_P const lcd_error, FSTR_P const lcd_component) {
674
     init();
674
     init();
675
     status_printf(1, F(S_FMT ": " S_FMT), FTOP(lcd_error), FTOP(lcd_component));
675
     status_printf(1, F(S_FMT ": " S_FMT), FTOP(lcd_error), FTOP(lcd_component));
676
-    TERN_(HAS_LCD_MENU, return_to_status());
676
+    TERN_(HAS_MARLINUI_MENU, return_to_status());
677
 
677
 
678
     // RED ALERT. RED ALERT.
678
     // RED ALERT. RED ALERT.
679
     #ifdef LED_BACKLIGHT_TIMEOUT
679
     #ifdef LED_BACKLIGHT_TIMEOUT
701
 
701
 
702
   void MarlinUI::quick_feedback(const bool clear_buttons/*=true*/) {
702
   void MarlinUI::quick_feedback(const bool clear_buttons/*=true*/) {
703
     TERN_(HAS_TOUCH_SLEEP, wakeup_screen()); // Wake up the TFT with most buttons
703
     TERN_(HAS_TOUCH_SLEEP, wakeup_screen()); // Wake up the TFT with most buttons
704
-    TERN_(HAS_LCD_MENU, refresh());
704
+    TERN_(HAS_MARLINUI_MENU, refresh());
705
 
705
 
706
     #if HAS_ENCODER_ACTION
706
     #if HAS_ENCODER_ACTION
707
       if (clear_buttons) buttons = 0;
707
       if (clear_buttons) buttons = 0;
712
 
712
 
713
     #if HAS_CHIRP
713
     #if HAS_CHIRP
714
       chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
714
       chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
715
-      #if BOTH(HAS_LCD_MENU, USE_BEEPER)
715
+      #if BOTH(HAS_MARLINUI_MENU, USE_BEEPER)
716
         for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
716
         for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
717
-      #elif HAS_LCD_MENU
717
+      #elif HAS_MARLINUI_MENU
718
         delay(10);
718
         delay(10);
719
       #endif
719
       #endif
720
     #endif
720
     #endif
724
   /////////////// Manual Move ////////////////
724
   /////////////// Manual Move ////////////////
725
   ////////////////////////////////////////////
725
   ////////////////////////////////////////////
726
 
726
 
727
-  #if HAS_LCD_MENU
727
+  #if HAS_MARLINUI_MENU
728
 
728
 
729
     ManualMove MarlinUI::manual_move{};
729
     ManualMove MarlinUI::manual_move{};
730
 
730
 
836
 
836
 
837
     #endif
837
     #endif
838
 
838
 
839
-  #endif // HAS_LCD_MENU
839
+  #endif // HAS_MARLINUI_MENU
840
 
840
 
841
   /**
841
   /**
842
    * Update the LCD, read encoder buttons, etc.
842
    * Update the LCD, read encoder buttons, etc.
887
       leds.update_timeout(powerManager.psu_on);
887
       leds.update_timeout(powerManager.psu_on);
888
     #endif
888
     #endif
889
 
889
 
890
-    #if HAS_LCD_MENU
890
+    #if HAS_MARLINUI_MENU
891
 
891
 
892
       // Handle any queued Move Axis motion
892
       // Handle any queued Move Axis motion
893
       manual_move.task();
893
       manual_move.task();
942
         goto_previous_screen();
942
         goto_previous_screen();
943
       }
943
       }
944
 
944
 
945
-    #endif // HAS_LCD_MENU
945
+    #endif // HAS_MARLINUI_MENU
946
 
946
 
947
     if (ELAPSED(ms, next_lcd_update_ms) || TERN0(HAS_MARLINUI_U8GLIB, drawing_screen)) {
947
     if (ELAPSED(ms, next_lcd_update_ms) || TERN0(HAS_MARLINUI_U8GLIB, drawing_screen)) {
948
 
948
 
989
         if (encoderPastThreshold || lcd_clicked) {
989
         if (encoderPastThreshold || lcd_clicked) {
990
           if (encoderPastThreshold && TERN1(IS_TFTGLCD_PANEL, !external_control)) {
990
           if (encoderPastThreshold && TERN1(IS_TFTGLCD_PANEL, !external_control)) {
991
 
991
 
992
-            #if BOTH(HAS_LCD_MENU, ENCODER_RATE_MULTIPLIER)
992
+            #if BOTH(HAS_MARLINUI_MENU, ENCODER_RATE_MULTIPLIER)
993
 
993
 
994
               int32_t encoderMultiplier = 1;
994
               int32_t encoderMultiplier = 1;
995
 
995
 
1049
         refresh(LCDVIEW_REDRAW_NOW);
1049
         refresh(LCDVIEW_REDRAW_NOW);
1050
       }
1050
       }
1051
 
1051
 
1052
-      #if BOTH(HAS_LCD_MENU, SCROLL_LONG_FILENAMES)
1052
+      #if BOTH(HAS_MARLINUI_MENU, SCROLL_LONG_FILENAMES)
1053
         // If scrolling of long file names is enabled and we are in the sd card menu,
1053
         // If scrolling of long file names is enabled and we are in the sd card menu,
1054
         // cause a refresh to occur until all the text has scrolled into view.
1054
         // cause a refresh to occur until all the text has scrolled into view.
1055
         if (currentScreen == menu_media && !lcd_status_update_delay--) {
1055
         if (currentScreen == menu_media && !lcd_status_update_delay--) {
1120
 
1120
 
1121
         #endif
1121
         #endif
1122
 
1122
 
1123
-        TERN_(HAS_LCD_MENU, lcd_clicked = false);
1123
+        TERN_(HAS_MARLINUI_MENU, lcd_clicked = false);
1124
 
1124
 
1125
         // Keeping track of the longest time for an individual LCD update.
1125
         // Keeping track of the longest time for an individual LCD update.
1126
         // Used to do screen throttling when the planner starts to fill up.
1126
         // Used to do screen throttling when the planner starts to fill up.
1334
             case ENCODER_PHASE_2: ENCODER_SPIN(ENCODER_PHASE_1, ENCODER_PHASE_3); break;
1334
             case ENCODER_PHASE_2: ENCODER_SPIN(ENCODER_PHASE_1, ENCODER_PHASE_3); break;
1335
             case ENCODER_PHASE_3: ENCODER_SPIN(ENCODER_PHASE_2, ENCODER_PHASE_0); break;
1335
             case ENCODER_PHASE_3: ENCODER_SPIN(ENCODER_PHASE_2, ENCODER_PHASE_0); break;
1336
           }
1336
           }
1337
-          #if BOTH(HAS_LCD_MENU, AUTO_BED_LEVELING_UBL)
1337
+          #if BOTH(HAS_MARLINUI_MENU, AUTO_BED_LEVELING_UBL)
1338
             external_encoder();
1338
             external_encoder();
1339
           #endif
1339
           #endif
1340
           lastEncoderBits = enc;
1340
           lastEncoderBits = enc;
1460
   void MarlinUI::set_alert_status(FSTR_P const fstr) {
1460
   void MarlinUI::set_alert_status(FSTR_P const fstr) {
1461
     set_status(fstr, 1);
1461
     set_status(fstr, 1);
1462
     TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
1462
     TERN_(HAS_TOUCH_SLEEP, wakeup_screen());
1463
-    TERN_(HAS_LCD_MENU, return_to_status());
1463
+    TERN_(HAS_MARLINUI_MENU, return_to_status());
1464
   }
1464
   }
1465
 
1465
 
1466
   #include <stdarg.h>
1466
   #include <stdarg.h>
1545
     IF_DISABLED(SDSUPPORT, print_job_timer.stop());
1545
     IF_DISABLED(SDSUPPORT, print_job_timer.stop());
1546
     TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_open(PROMPT_INFO, F("UI Aborted"), FPSTR(DISMISS_STR)));
1546
     TERN_(HOST_PROMPT_SUPPORT, hostui.prompt_open(PROMPT_INFO, F("UI Aborted"), FPSTR(DISMISS_STR)));
1547
     LCD_MESSAGE(MSG_PRINT_ABORTED);
1547
     LCD_MESSAGE(MSG_PRINT_ABORTED);
1548
-    TERN_(HAS_LCD_MENU, return_to_status());
1548
+    TERN_(HAS_MARLINUI_MENU, return_to_status());
1549
   }
1549
   }
1550
 
1550
 
1551
-  #if BOTH(HAS_LCD_MENU, PSU_CONTROL)
1551
+  #if BOTH(HAS_MARLINUI_MENU, PSU_CONTROL)
1552
 
1552
 
1553
     void MarlinUI::poweroff() {
1553
     void MarlinUI::poweroff() {
1554
       queue.inject(F("M81" TERN_(POWER_OFF_WAIT_FOR_COOLDOWN, "S")));
1554
       queue.inject(F("M81" TERN_(POWER_OFF_WAIT_FOR_COOLDOWN, "S")));
1560
   void MarlinUI::flow_fault() {
1560
   void MarlinUI::flow_fault() {
1561
     LCD_ALERTMESSAGE(MSG_FLOWMETER_FAULT);
1561
     LCD_ALERTMESSAGE(MSG_FLOWMETER_FAULT);
1562
     TERN_(HAS_BUZZER, buzz(1000, 440));
1562
     TERN_(HAS_BUZZER, buzz(1000, 440));
1563
-    TERN_(HAS_LCD_MENU, return_to_status());
1563
+    TERN_(HAS_MARLINUI_MENU, return_to_status());
1564
   }
1564
   }
1565
 
1565
 
1566
   void MarlinUI::pause_print() {
1566
   void MarlinUI::pause_print() {
1567
-    #if HAS_LCD_MENU
1567
+    #if HAS_MARLINUI_MENU
1568
       synchronize(GET_TEXT(MSG_PAUSING));
1568
       synchronize(GET_TEXT(MSG_PAUSING));
1569
       defer_status_screen();
1569
       defer_status_screen();
1570
     #endif
1570
     #endif
1686
           ExtUI::onMediaRemoved();
1686
           ExtUI::onMediaRemoved();
1687
         #elif PIN_EXISTS(SD_DETECT)
1687
         #elif PIN_EXISTS(SD_DETECT)
1688
           LCD_MESSAGE(MSG_MEDIA_REMOVED);
1688
           LCD_MESSAGE(MSG_MEDIA_REMOVED);
1689
-          #if HAS_LCD_MENU
1689
+          #if HAS_MARLINUI_MENU
1690
             if (!defer_return_to_status) return_to_status();
1690
             if (!defer_return_to_status) return_to_status();
1691
           #endif
1691
           #endif
1692
         #endif
1692
         #endif
1712
 
1712
 
1713
 #endif // SDSUPPORT
1713
 #endif // SDSUPPORT
1714
 
1714
 
1715
-#if HAS_LCD_MENU
1715
+#if HAS_MARLINUI_MENU
1716
   void MarlinUI::reset_settings() {
1716
   void MarlinUI::reset_settings() {
1717
     settings.reset();
1717
     settings.reset();
1718
     completion_feedback();
1718
     completion_feedback();
1768
 
1768
 
1769
 #if ENABLED(EEPROM_SETTINGS)
1769
 #if ENABLED(EEPROM_SETTINGS)
1770
 
1770
 
1771
-  #if HAS_LCD_MENU
1771
+  #if HAS_MARLINUI_MENU
1772
     void MarlinUI::init_eeprom() {
1772
     void MarlinUI::init_eeprom() {
1773
       const bool good = settings.init_eeprom();
1773
       const bool good = settings.init_eeprom();
1774
       completion_feedback(good);
1774
       completion_feedback(good);
1796
     }
1796
     }
1797
 
1797
 
1798
     void MarlinUI::eeprom_alert(const uint8_t msgid) {
1798
     void MarlinUI::eeprom_alert(const uint8_t msgid) {
1799
-      #if HAS_LCD_MENU
1799
+      #if HAS_MARLINUI_MENU
1800
         editable.uint8 = msgid;
1800
         editable.uint8 = msgid;
1801
         goto_screen([]{
1801
         goto_screen([]{
1802
           PGM_P const restore_msg = GET_TEXT(MSG_INIT_EEPROM);
1802
           PGM_P const restore_msg = GET_TEXT(MSG_INIT_EEPROM);

+ 15
- 15
Marlin/src/lcd/marlinui.h 파일 보기

35
   #include "tft_io/touch_calibration.h"
35
   #include "tft_io/touch_calibration.h"
36
 #endif
36
 #endif
37
 
37
 
38
-#if ANY(HAS_LCD_MENU, ULTIPANEL_FEEDMULTIPLY, SOFT_RESET_ON_KILL)
38
+#if ANY(HAS_MARLINUI_MENU, ULTIPANEL_FEEDMULTIPLY, SOFT_RESET_ON_KILL)
39
   #define HAS_ENCODER_ACTION 1
39
   #define HAS_ENCODER_ACTION 1
40
 #endif
40
 #endif
41
 
41
 
51
   #include "../module/printcounter.h"
51
   #include "../module/printcounter.h"
52
 #endif
52
 #endif
53
 
53
 
54
-#if ENABLED(ADVANCED_PAUSE_FEATURE) && ANY(HAS_LCD_MENU, EXTENSIBLE_UI, HAS_DWIN_E3V2)
54
+#if ENABLED(ADVANCED_PAUSE_FEATURE)
55
   #include "../feature/pause.h"
55
   #include "../feature/pause.h"
56
 #endif
56
 #endif
57
 
57
 
77
     uint8_t get_ADC_keyValue();
77
     uint8_t get_ADC_keyValue();
78
   #endif
78
   #endif
79
 
79
 
80
-  #if HAS_LCD_MENU
80
+  #if HAS_MARLINUI_MENU
81
 
81
 
82
     #include "lcdprint.h"
82
     #include "lcdprint.h"
83
 
83
 
90
     typedef void (*screenFunc_t)();
90
     typedef void (*screenFunc_t)();
91
     typedef void (*menuAction_t)();
91
     typedef void (*menuAction_t)();
92
 
92
 
93
-  #endif // HAS_LCD_MENU
93
+  #endif // HAS_MARLINUI_MENU
94
 
94
 
95
 #endif // HAS_WIRED_LCD
95
 #endif // HAS_WIRED_LCD
96
 
96
 
126
   } preheat_t;
126
   } preheat_t;
127
 #endif
127
 #endif
128
 
128
 
129
-#if HAS_LCD_MENU
129
+#if HAS_MARLINUI_MENU
130
 
130
 
131
   // Manual Movement class
131
   // Manual Movement class
132
   class ManualMove {
132
   class ManualMove {
198
 public:
198
 public:
199
 
199
 
200
   MarlinUI() {
200
   MarlinUI() {
201
-    TERN_(HAS_LCD_MENU, currentScreen = status_screen);
201
+    TERN_(HAS_MARLINUI_MENU, currentScreen = status_screen);
202
   }
202
   }
203
 
203
 
204
   static void init();
204
   static void init();
245
   // LCD implementations
245
   // LCD implementations
246
   static void clear_lcd();
246
   static void clear_lcd();
247
 
247
 
248
-  #if BOTH(HAS_LCD_MENU, TOUCH_SCREEN_CALIBRATION)
248
+  #if BOTH(HAS_MARLINUI_MENU, TOUCH_SCREEN_CALIBRATION)
249
     static void check_touch_calibration() {
249
     static void check_touch_calibration() {
250
       if (touch_calibration.need_calibration()) currentScreen = touch_calibration_screen;
250
       if (touch_calibration.need_calibration()) currentScreen = touch_calibration_screen;
251
     }
251
     }
375
     static void resume_print();
375
     static void resume_print();
376
     static void flow_fault();
376
     static void flow_fault();
377
 
377
 
378
-    #if BOTH(HAS_LCD_MENU, PSU_CONTROL)
378
+    #if BOTH(HAS_MARLINUI_MENU, PSU_CONTROL)
379
       static void poweroff();
379
       static void poweroff();
380
     #endif
380
     #endif
381
 
381
 
488
   #endif
488
   #endif
489
 
489
 
490
   #if ENABLED(SDSUPPORT)
490
   #if ENABLED(SDSUPPORT)
491
-    #if BOTH(SCROLL_LONG_FILENAMES, HAS_LCD_MENU)
491
+    #if BOTH(SCROLL_LONG_FILENAMES, HAS_MARLINUI_MENU)
492
       #define MARLINUI_SCROLL_NAME 1
492
       #define MARLINUI_SCROLL_NAME 1
493
     #endif
493
     #endif
494
     #if MARLINUI_SCROLL_NAME
494
     #if MARLINUI_SCROLL_NAME
513
     TERN(SCREENS_CAN_TIME_OUT, return_to_status_ms = ms + LCD_TIMEOUT_TO_STATUS, UNUSED(ms));
513
     TERN(SCREENS_CAN_TIME_OUT, return_to_status_ms = ms + LCD_TIMEOUT_TO_STATUS, UNUSED(ms));
514
   }
514
   }
515
 
515
 
516
-  #if HAS_LCD_MENU
516
+  #if HAS_MARLINUI_MENU
517
 
517
 
518
     #if HAS_TOUCH_BUTTONS
518
     #if HAS_TOUCH_BUTTONS
519
       static uint8_t touch_buttons;
519
       static uint8_t touch_buttons;
597
 
597
 
598
   #endif
598
   #endif
599
 
599
 
600
-  #if EITHER(HAS_LCD_MENU, EXTENSIBLE_UI)
600
+  #if EITHER(HAS_MARLINUI_MENU, EXTENSIBLE_UI)
601
     static bool lcd_clicked;
601
     static bool lcd_clicked;
602
     static bool use_click() {
602
     static bool use_click() {
603
       const bool click = lcd_clicked;
603
       const bool click = lcd_clicked;
609
     static bool use_click() { return false; }
609
     static bool use_click() { return false; }
610
   #endif
610
   #endif
611
 
611
 
612
-  #if ENABLED(ADVANCED_PAUSE_FEATURE) && ANY(HAS_LCD_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
612
+  #if ENABLED(ADVANCED_PAUSE_FEATURE) && ANY(HAS_MARLINUI_MENU, EXTENSIBLE_UI, DWIN_CREALITY_LCD_ENHANCED, DWIN_CREALITY_LCD_JYERSUI)
613
     static void pause_show_message(const PauseMessage message, const PauseMode mode=PAUSE_MODE_SAME, const uint8_t extruder=active_extruder);
613
     static void pause_show_message(const PauseMessage message, const PauseMode mode=PAUSE_MODE_SAME, const uint8_t extruder=active_extruder);
614
   #else
614
   #else
615
     static void _pause_show_message() {}
615
     static void _pause_show_message() {}
619
   //
619
   //
620
   // EEPROM: Reset / Init / Load / Store
620
   // EEPROM: Reset / Init / Load / Store
621
   //
621
   //
622
-  #if HAS_LCD_MENU
622
+  #if HAS_MARLINUI_MENU
623
     static void reset_settings();
623
     static void reset_settings();
624
   #endif
624
   #endif
625
 
625
 
626
   #if ENABLED(EEPROM_SETTINGS)
626
   #if ENABLED(EEPROM_SETTINGS)
627
-    #if HAS_LCD_MENU
627
+    #if HAS_MARLINUI_MENU
628
       static void init_eeprom();
628
       static void init_eeprom();
629
       static void load_settings();
629
       static void load_settings();
630
       static void store_settings();
630
       static void store_settings();
650
   //
650
   //
651
   // Block interaction while under external control
651
   // Block interaction while under external control
652
   //
652
   //
653
-  #if HAS_LCD_MENU && EITHER(AUTO_BED_LEVELING_UBL, G26_MESH_VALIDATION)
653
+  #if HAS_MARLINUI_MENU && EITHER(AUTO_BED_LEVELING_UBL, G26_MESH_VALIDATION)
654
     static bool external_control;
654
     static bool external_control;
655
     FORCE_INLINE static void capture() { external_control = true; }
655
     FORCE_INLINE static void capture() { external_control = true; }
656
     FORCE_INLINE static void release() { external_control = false; }
656
     FORCE_INLINE static void release() { external_control = false; }

+ 3
- 3
Marlin/src/lcd/menu/menu.cpp 파일 보기

22
 
22
 
23
 #include "../../inc/MarlinConfigPre.h"
23
 #include "../../inc/MarlinConfigPre.h"
24
 
24
 
25
-#if HAS_LCD_MENU
25
+#if HAS_MARLINUI_MENU
26
 
26
 
27
 #include "menu.h"
27
 #include "menu.h"
28
 #include "../../module/planner.h"
28
 #include "../../module/planner.h"
220
     screen_changed = true;
220
     screen_changed = true;
221
     TERN_(HAS_MARLINUI_U8GLIB, drawing_screen = false);
221
     TERN_(HAS_MARLINUI_U8GLIB, drawing_screen = false);
222
 
222
 
223
-    TERN_(HAS_LCD_MENU, encoder_direction_normal());
223
+    TERN_(HAS_MARLINUI_MENU, encoder_direction_normal());
224
 
224
 
225
     set_selection(false);
225
     set_selection(false);
226
   }
226
   }
378
   }
378
   }
379
 }
379
 }
380
 
380
 
381
-#endif // HAS_LCD_MENU
381
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_advanced.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/planner.h"
32
 #include "../../module/planner.h"
653
   END_MENU();
653
   END_MENU();
654
 }
654
 }
655
 
655
 
656
-#endif // HAS_LCD_MENU
656
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_backlash.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, BACKLASH_GCODE)
29
+#if BOTH(HAS_MARLINUI_MENU, BACKLASH_GCODE)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 
32
 
68
   END_MENU();
68
   END_MENU();
69
 }
69
 }
70
 
70
 
71
-#endif // HAS_LCD_MENU && BACKLASH_GCODE
71
+#endif // HAS_MARLINUI_MENU && BACKLASH_GCODE

+ 2
- 2
Marlin/src/lcd/menu/menu_bed_corners.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, LEVEL_BED_CORNERS)
29
+#if BOTH(HAS_MARLINUI_MENU, LEVEL_BED_CORNERS)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/motion.h"
32
 #include "../../module/motion.h"
362
   ui.goto_screen(_lcd_level_bed_corners_homing);
362
   ui.goto_screen(_lcd_level_bed_corners_homing);
363
 }
363
 }
364
 
364
 
365
-#endif // HAS_LCD_MENU && LEVEL_BED_CORNERS
365
+#endif // HAS_MARLINUI_MENU && LEVEL_BED_CORNERS

+ 2
- 2
Marlin/src/lcd/menu/menu_cancelobject.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, CANCEL_OBJECTS)
29
+#if BOTH(HAS_MARLINUI_MENU, CANCEL_OBJECTS)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "menu_addon.h"
32
 #include "menu_addon.h"
71
   END_MENU();
71
   END_MENU();
72
 }
72
 }
73
 
73
 
74
-#endif // HAS_LCD_MENU && CANCEL_OBJECTS
74
+#endif // HAS_MARLINUI_MENU && CANCEL_OBJECTS

+ 2
- 2
Marlin/src/lcd/menu/menu_configuration.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 
32
 
577
   END_MENU();
577
   END_MENU();
578
 }
578
 }
579
 
579
 
580
-#endif // HAS_LCD_MENU
580
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_delta_calibrate.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU && EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
29
+#if HAS_MARLINUI_MENU && EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/delta.h"
32
 #include "../../module/delta.h"
151
   END_MENU();
151
   END_MENU();
152
 }
152
 }
153
 
153
 
154
-#endif // HAS_LCD_MENU && (DELTA_CALIBRATION_MENU || DELTA_AUTO_CALIBRATION)
154
+#endif // HAS_MARLINUI_MENU && (DELTA_CALIBRATION_MENU || DELTA_AUTO_CALIBRATION)

+ 2
- 2
Marlin/src/lcd/menu/menu_filament.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, ADVANCED_PAUSE_FEATURE)
29
+#if BOTH(HAS_MARLINUI_MENU, ADVANCED_PAUSE_FEATURE)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/temperature.h"
32
 #include "../../module/temperature.h"
342
     ui.return_to_status();
342
     ui.return_to_status();
343
 }
343
 }
344
 
344
 
345
-#endif // HAS_LCD_MENU && ADVANCED_PAUSE_FEATURE
345
+#endif // HAS_MARLINUI_MENU && ADVANCED_PAUSE_FEATURE

+ 2
- 2
Marlin/src/lcd/menu/menu_info.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, LCD_INFO_MENU)
29
+#if BOTH(HAS_MARLINUI_MENU, LCD_INFO_MENU)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 
32
 
317
   END_MENU();
317
   END_MENU();
318
 }
318
 }
319
 
319
 
320
-#endif // HAS_LCD_MENU && LCD_INFO_MENU
320
+#endif // HAS_MARLINUI_MENU && LCD_INFO_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_job_recovery.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, POWER_LOSS_RECOVERY)
29
+#if BOTH(HAS_MARLINUI_MENU, POWER_LOSS_RECOVERY)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../gcode/queue.h"
32
 #include "../../gcode/queue.h"
54
   END_MENU();
54
   END_MENU();
55
 }
55
 }
56
 
56
 
57
-#endif // HAS_LCD_MENU && POWER_LOSS_RECOVERY
57
+#endif // HAS_MARLINUI_MENU && POWER_LOSS_RECOVERY

+ 2
- 2
Marlin/src/lcd/menu/menu_led.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU && EITHER(LED_CONTROL_MENU, CASE_LIGHT_MENU)
29
+#if HAS_MARLINUI_MENU && EITHER(LED_CONTROL_MENU, CASE_LIGHT_MENU)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 
32
 
169
   END_MENU();
169
   END_MENU();
170
 }
170
 }
171
 
171
 
172
-#endif // HAS_LCD_MENU && LED_CONTROL_MENU
172
+#endif // HAS_MARLINUI_MENU && LED_CONTROL_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_main.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/temperature.h"
32
 #include "../../module/temperature.h"
461
   END_MENU();
461
   END_MENU();
462
 }
462
 }
463
 
463
 
464
-#endif // HAS_LCD_MENU
464
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_media.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, SDSUPPORT)
29
+#if BOTH(HAS_MARLINUI_MENU, SDSUPPORT)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../sd/cardreader.h"
32
 #include "../../sd/cardreader.h"
161
   TERN(MULTI_VOLUME, menu_media_select, menu_media_filelist)();
161
   TERN(MULTI_VOLUME, menu_media_select, menu_media_filelist)();
162
 }
162
 }
163
 
163
 
164
-#endif // HAS_LCD_MENU && SDSUPPORT
164
+#endif // HAS_MARLINUI_MENU && SDSUPPORT

+ 2
- 2
Marlin/src/lcd/menu/menu_mixer.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, MIXING_EXTRUDER)
29
+#if BOTH(HAS_MARLINUI_MENU, MIXING_EXTRUDER)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "menu_addon.h"
32
 #include "menu_addon.h"
275
   END_MENU();
275
   END_MENU();
276
 }
276
 }
277
 
277
 
278
-#endif // HAS_LCD_MENU && MIXING_EXTRUDER
278
+#endif // HAS_MARLINUI_MENU && MIXING_EXTRUDER

+ 2
- 2
Marlin/src/lcd/menu/menu_mmu2.cpp 파일 보기

22
 
22
 
23
 #include "../../inc/MarlinConfig.h"
23
 #include "../../inc/MarlinConfig.h"
24
 
24
 
25
-#if BOTH(HAS_LCD_MENU, MMU2_MENUS)
25
+#if BOTH(HAS_MARLINUI_MENU, MMU2_MENUS)
26
 
26
 
27
 #include "../../MarlinCore.h"
27
 #include "../../MarlinCore.h"
28
 #include "../../feature/mmu/mmu2.h"
28
 #include "../../feature/mmu/mmu2.h"
167
   return feeder_index;
167
   return feeder_index;
168
 }
168
 }
169
 
169
 
170
-#endif // HAS_LCD_MENU && MMU2_MENUS
170
+#endif // HAS_MARLINUI_MENU && MMU2_MENUS

+ 2
- 2
Marlin/src/lcd/menu/menu_motion.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
 
30
 
31
 #define LARGE_AREA_TEST ((X_BED_SIZE) >= 1000 || (Y_BED_SIZE) >= 1000 || (Z_MAX_POS) >= 1000)
31
 #define LARGE_AREA_TEST ((X_BED_SIZE) >= 1000 || (Y_BED_SIZE) >= 1000 || (Z_MAX_POS) >= 1000)
32
 
32
 
477
   END_MENU();
477
   END_MENU();
478
 }
478
 }
479
 
479
 
480
-#endif // HAS_LCD_MENU
480
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_password.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, PASSWORD_FEATURE)
29
+#if BOTH(HAS_MARLINUI_MENU, PASSWORD_FEATURE)
30
 
30
 
31
 #include "../../feature/password/password.h"
31
 #include "../../feature/password/password.h"
32
 
32
 
184
   END_MENU();
184
   END_MENU();
185
 }
185
 }
186
 
186
 
187
-#endif // HAS_LCD_MENU && PASSWORD_FEATURE
187
+#endif // HAS_MARLINUI_MENU && PASSWORD_FEATURE

+ 2
- 2
Marlin/src/lcd/menu/menu_power_monitor.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU && HAS_POWER_MONITOR
29
+#if HAS_MARLINUI_MENU && HAS_POWER_MONITOR
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../feature/power_monitor.h"
32
 #include "../../feature/power_monitor.h"
59
   END_MENU();
59
   END_MENU();
60
 }
60
 }
61
 
61
 
62
-#endif // HAS_LCD_MENU && HAS_POWER_MONITOR
62
+#endif // HAS_MARLINUI_MENU && HAS_POWER_MONITOR

+ 2
- 2
Marlin/src/lcd/menu/menu_spindle_laser.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfig.h"
27
 #include "../../inc/MarlinConfig.h"
28
 
28
 
29
-#if HAS_LCD_MENU && HAS_CUTTER
29
+#if HAS_MARLINUI_MENU && HAS_CUTTER
30
 
30
 
31
   #include "menu_item.h"
31
   #include "menu_item.h"
32
 
32
 
81
     END_MENU();
81
     END_MENU();
82
   }
82
   }
83
 
83
 
84
-#endif // HAS_LCD_MENU && HAS_CUTTER
84
+#endif // HAS_MARLINUI_MENU && HAS_CUTTER

+ 2
- 2
Marlin/src/lcd/menu/menu_temperature.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfig.h"
27
 #include "../../inc/MarlinConfig.h"
28
 
28
 
29
-#if HAS_LCD_MENU && HAS_TEMPERATURE
29
+#if HAS_MARLINUI_MENU && HAS_TEMPERATURE
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/temperature.h"
32
 #include "../../module/temperature.h"
307
 
307
 
308
 #endif
308
 #endif
309
 
309
 
310
-#endif // HAS_LCD_MENU && HAS_TEMPERATURE
310
+#endif // HAS_MARLINUI_MENU && HAS_TEMPERATURE

+ 1
- 1
Marlin/src/lcd/menu/menu_tmc.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU && HAS_TRINAMIC_CONFIG
29
+#if HAS_MARLINUI_MENU && HAS_TRINAMIC_CONFIG
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/stepper/indirection.h"
32
 #include "../../module/stepper/indirection.h"

+ 1
- 1
Marlin/src/lcd/menu/menu_touch_screen.cpp 파일 보기

22
 
22
 
23
 #include "../../inc/MarlinConfigPre.h"
23
 #include "../../inc/MarlinConfigPre.h"
24
 
24
 
25
-#if BOTH(HAS_LCD_MENU, TOUCH_SCREEN_CALIBRATION)
25
+#if BOTH(HAS_MARLINUI_MENU, TOUCH_SCREEN_CALIBRATION)
26
 
26
 
27
 #include "menu_item.h"
27
 #include "menu_item.h"
28
 #include "../marlinui.h"
28
 #include "../marlinui.h"

+ 2
- 2
Marlin/src/lcd/menu/menu_tramming.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, ASSISTED_TRAMMING_WIZARD)
29
+#if BOTH(HAS_MARLINUI_MENU, ASSISTED_TRAMMING_WIZARD)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 
32
 
109
   });
109
   });
110
 }
110
 }
111
 
111
 
112
-#endif // HAS_LCD_MENU && ASSISTED_TRAMMING_WIZARD
112
+#endif // HAS_MARLINUI_MENU && ASSISTED_TRAMMING_WIZARD

+ 2
- 2
Marlin/src/lcd/menu/menu_tune.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if HAS_LCD_MENU
29
+#if HAS_MARLINUI_MENU
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../module/motion.h"
32
 #include "../../module/motion.h"
236
   END_MENU();
236
   END_MENU();
237
 }
237
 }
238
 
238
 
239
-#endif // HAS_LCD_MENU
239
+#endif // HAS_MARLINUI_MENU

+ 2
- 2
Marlin/src/lcd/menu/menu_ubl.cpp 파일 보기

26
 
26
 
27
 #include "../../inc/MarlinConfigPre.h"
27
 #include "../../inc/MarlinConfigPre.h"
28
 
28
 
29
-#if BOTH(HAS_LCD_MENU, AUTO_BED_LEVELING_UBL)
29
+#if BOTH(HAS_MARLINUI_MENU, AUTO_BED_LEVELING_UBL)
30
 
30
 
31
 #include "menu_item.h"
31
 #include "menu_item.h"
32
 #include "../../gcode/gcode.h"
32
 #include "../../gcode/gcode.h"
684
   END_MENU();
684
   END_MENU();
685
 }
685
 }
686
 
686
 
687
-#endif // HAS_LCD_MENU && AUTO_BED_LEVELING_UBL
687
+#endif // HAS_MARLINUI_MENU && AUTO_BED_LEVELING_UBL

+ 2
- 2
Marlin/src/lcd/tft/ui_1024x600.cpp 파일 보기

596
 static void quick_feedback() {
596
 static void quick_feedback() {
597
   #if HAS_CHIRP
597
   #if HAS_CHIRP
598
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
598
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
599
-    #if BOTH(HAS_LCD_MENU, USE_BEEPER)
599
+    #if BOTH(HAS_MARLINUI_MENU, USE_BEEPER)
600
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
600
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
601
-    #elif HAS_LCD_MENU
601
+    #elif HAS_MARLINUI_MENU
602
       delay(10);
602
       delay(10);
603
     #endif
603
     #endif
604
   #endif
604
   #endif

+ 2
- 2
Marlin/src/lcd/tft/ui_320x240.cpp 파일 보기

578
 static void quick_feedback() {
578
 static void quick_feedback() {
579
   #if HAS_CHIRP
579
   #if HAS_CHIRP
580
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
580
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
581
-    #if BOTH(HAS_LCD_MENU, USE_BEEPER)
581
+    #if BOTH(HAS_MARLINUI_MENU, USE_BEEPER)
582
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
582
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
583
-    #elif HAS_LCD_MENU
583
+    #elif HAS_MARLINUI_MENU
584
       delay(10);
584
       delay(10);
585
     #endif
585
     #endif
586
   #endif
586
   #endif

+ 2
- 2
Marlin/src/lcd/tft/ui_480x320.cpp 파일 보기

583
 static void quick_feedback() {
583
 static void quick_feedback() {
584
   #if HAS_CHIRP
584
   #if HAS_CHIRP
585
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
585
     ui.chirp(); // Buzz and wait. Is the delay needed for buttons to settle?
586
-    #if BOTH(HAS_LCD_MENU, USE_BEEPER)
586
+    #if BOTH(HAS_MARLINUI_MENU, USE_BEEPER)
587
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
587
       for (int8_t i = 5; i--;) { buzzer.tick(); delay(2); }
588
-    #elif HAS_LCD_MENU
588
+    #elif HAS_MARLINUI_MENU
589
       delay(10);
589
       delay(10);
590
     #endif
590
     #endif
591
   #endif
591
   #endif

+ 2
- 2
Marlin/src/module/temperature.cpp 파일 보기

3786
         #if G26_CLICK_CAN_CANCEL
3786
         #if G26_CLICK_CAN_CANCEL
3787
           if (click_to_cancel && ui.use_click()) {
3787
           if (click_to_cancel && ui.use_click()) {
3788
             wait_for_heatup = false;
3788
             wait_for_heatup = false;
3789
-            TERN_(HAS_LCD_MENU, ui.quick_feedback());
3789
+            TERN_(HAS_MARLINUI_MENU, ui.quick_feedback());
3790
           }
3790
           }
3791
         #endif
3791
         #endif
3792
 
3792
 
3920
         #if G26_CLICK_CAN_CANCEL
3920
         #if G26_CLICK_CAN_CANCEL
3921
           if (click_to_cancel && ui.use_click()) {
3921
           if (click_to_cancel && ui.use_click()) {
3922
             wait_for_heatup = false;
3922
             wait_for_heatup = false;
3923
-            TERN_(HAS_LCD_MENU, ui.quick_feedback());
3923
+            TERN_(HAS_MARLINUI_MENU, ui.quick_feedback());
3924
           }
3924
           }
3925
         #endif
3925
         #endif
3926
 
3926
 

+ 2
- 2
Marlin/src/module/temperature.h 파일 보기

186
   #define unscalePID_d(d) ( float(d) * PID_dT )
186
   #define unscalePID_d(d) ( float(d) * PID_dT )
187
 #endif
187
 #endif
188
 
188
 
189
-#if ENABLED(G26_MESH_VALIDATION) && EITHER(HAS_LCD_MENU, EXTENSIBLE_UI)
189
+#if ENABLED(G26_MESH_VALIDATION) && EITHER(HAS_MARLINUI_MENU, EXTENSIBLE_UI)
190
   #define G26_CLICK_CAN_CANCEL 1
190
   #define G26_CLICK_CAN_CANCEL 1
191
 #endif
191
 #endif
192
 
192
 
965
       static void set_heating_message(const uint8_t) {}
965
       static void set_heating_message(const uint8_t) {}
966
     #endif
966
     #endif
967
 
967
 
968
-    #if HAS_LCD_MENU && HAS_TEMPERATURE
968
+    #if HAS_MARLINUI_MENU && HAS_TEMPERATURE
969
       static void lcd_preheat(const uint8_t e, const int8_t indh, const int8_t indb);
969
       static void lcd_preheat(const uint8_t e, const int8_t indh, const int8_t indb);
970
     #endif
970
     #endif
971
 
971
 

+ 2
- 2
Marlin/src/module/tool_change.cpp 파일 보기

89
   #include "../feature/mmu/mmu2.h"
89
   #include "../feature/mmu/mmu2.h"
90
 #endif
90
 #endif
91
 
91
 
92
-#if HAS_LCD_MENU
92
+#if HAS_MARLINUI_MENU
93
   #include "../lcd/marlinui.h"
93
   #include "../lcd/marlinui.h"
94
 #endif
94
 #endif
95
 
95
 
1027
       DEBUG_ECHOLNPGM("No move (not homed)");
1027
       DEBUG_ECHOLNPGM("No move (not homed)");
1028
     }
1028
     }
1029
 
1029
 
1030
-    TERN_(HAS_LCD_MENU, if (!no_move) ui.update());
1030
+    TERN_(HAS_MARLINUI_MENU, if (!no_move) ui.update());
1031
 
1031
 
1032
     #if ENABLED(DUAL_X_CARRIAGE)
1032
     #if ENABLED(DUAL_X_CARRIAGE)
1033
       const bool idex_full_control = dual_x_carriage_mode == DXC_FULL_CONTROL_MODE;
1033
       const bool idex_full_control = dual_x_carriage_mode == DXC_FULL_CONTROL_MODE;

+ 1
- 1
buildroot/share/PlatformIO/scripts/common-dependencies.h 파일 보기

53
   #define HAS_SMART_EFF_MOD
53
   #define HAS_SMART_EFF_MOD
54
 #endif
54
 #endif
55
 
55
 
56
-#if HAS_LCD_MENU
56
+#if HAS_MARLINUI_MENU
57
   #if ENABLED(BACKLASH_GCODE)
57
   #if ENABLED(BACKLASH_GCODE)
58
     #define HAS_MENU_BACKLASH
58
     #define HAS_MENU_BACKLASH
59
   #endif
59
   #endif

+ 1
- 1
ini/features.ini 파일 보기

52
 HAS_GRAPHICAL_TFT                      = src_filter=+<src/lcd/tft>
52
 HAS_GRAPHICAL_TFT                      = src_filter=+<src/lcd/tft>
53
 IS_TFTGLCD_PANEL                       = src_filter=+<src/lcd/TFTGLCD>
53
 IS_TFTGLCD_PANEL                       = src_filter=+<src/lcd/TFTGLCD>
54
 HAS_TOUCH_BUTTONS                      = src_filter=+<src/lcd/touch/touch_buttons.cpp>
54
 HAS_TOUCH_BUTTONS                      = src_filter=+<src/lcd/touch/touch_buttons.cpp>
55
-HAS_LCD_MENU                           = src_filter=+<src/lcd/menu>
55
+HAS_MARLINUI_MENU                      = src_filter=+<src/lcd/menu>
56
 HAS_GAMES                              = src_filter=+<src/lcd/menu/game/game.cpp>
56
 HAS_GAMES                              = src_filter=+<src/lcd/menu/game/game.cpp>
57
 MARLIN_BRICKOUT                        = src_filter=+<src/lcd/menu/game/brickout.cpp>
57
 MARLIN_BRICKOUT                        = src_filter=+<src/lcd/menu/game/brickout.cpp>
58
 MARLIN_INVADERS                        = src_filter=+<src/lcd/menu/game/invaders.cpp>
58
 MARLIN_INVADERS                        = src_filter=+<src/lcd/menu/game/invaders.cpp>

Loading…
취소
저장