Przeglądaj źródła

Small changes on the LCD panel, let the speed control work better, line up the parameter edit the same as the menu, remove some unused defines, and remove the Z from the 10mm move menu.

daid303 11 lat temu
rodzic
commit
01aac2a142

+ 1
- 0
Marlin/Marlin_main.cpp Wyświetl plik

@@ -859,6 +859,7 @@ void process_commands()
859 859
           lcd_update();
860 860
         }
861 861
       }
862
+      LCD_MESSAGEPGM(MSG_RESUMING);
862 863
     }
863 864
     break;
864 865
 #endif

+ 1
- 0
Marlin/language.h Wyświetl plik

@@ -102,6 +102,7 @@
102 102
 	#define MSG_NO_CARD "No Card"
103 103
 	#define MSG_DWELL "Sleep..."
104 104
 	#define MSG_USERWAIT "Wait for user..."
105
+	#define MSG_RESUMING "Resuming print"
105 106
 	#define MSG_NO_MOVE "No move."
106 107
 	#define MSG_KILLED "KILLED. "
107 108
 	#define MSG_STOPPED "STOPPED. "

+ 4
- 3
Marlin/ultralcd.cpp Wyświetl plik

@@ -137,8 +137,7 @@ static void lcd_status_screen()
137 137
         currentMenu = lcd_main_menu;
138 138
         lcd_quick_feedback();
139 139
     }
140
-    if (abs(encoderPosition / 2) > 1)
141
-        feedmultiply += encoderPosition / 2;
140
+    feedmultiply += int(encoderPosition);
142 141
     encoderPosition = 0;
143 142
     if (feedmultiply < 10)
144 143
         feedmultiply = 10;
@@ -381,9 +380,9 @@ static void lcd_move_menu_axis()
381 380
     MENU_ITEM(back, MSG_MOVE_AXIS, lcd_move_menu);
382 381
     MENU_ITEM(submenu, "Move X", lcd_move_x);
383 382
     MENU_ITEM(submenu, "Move Y", lcd_move_y);
384
-    MENU_ITEM(submenu, "Move Z", lcd_move_z);
385 383
     if (move_menu_scale < 10.0)
386 384
     {
385
+        MENU_ITEM(submenu, "Move Z", lcd_move_z);
387 386
         MENU_ITEM(submenu, "Extruder", lcd_move_e);
388 387
     }
389 388
     END_MENU();
@@ -698,6 +697,8 @@ void lcd_init()
698 697
     WRITE(SDCARDDETECT, HIGH);
699 698
     lcd_oldcardstatus = IS_SD_INSERTED;
700 699
 #endif//(SDCARDDETECT > -1)
700
+    lcd_buttons_update();
701
+    encoderDiff = 0;
701 702
 }
702 703
 
703 704
 void lcd_update()

+ 0
- 3
Marlin/ultralcd.h Wyświetl plik

@@ -62,9 +62,6 @@
62 62
 
63 63
   #define LCD_MESSAGEPGM(x) 
64 64
   #define LCD_ALERTMESSAGEPGM(x) 
65
-
66
-  #define CLICKED false
67
-  #define BLOCK ;
68 65
 #endif 
69 66
 
70 67
 char *itostr2(const uint8_t &x);

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

@@ -363,7 +363,7 @@ static void lcd_implementation_drawmenu_setting_edit_generic_P(uint8_t row, cons
363 363
 #define lcd_implementation_drawmenu_setting_edit_bool(row, pstr, pstr2, data) lcd_implementation_drawmenu_setting_edit_generic_P(row, pstr, ' ', (*(data))?PSTR(MSG_ON):PSTR(MSG_OFF))
364 364
 void lcd_implementation_drawedit(const char* pstr, char* value)
365 365
 {
366
-    lcd.setCursor(0, 1);
366
+    lcd.setCursor(1, 1);
367 367
     lcd_printPGM(pstr);
368 368
     lcd.print(':');
369 369
     lcd.setCursor(19 - strlen(value), 1);

Ładowanie…
Anuluj
Zapisz