Ver código fonte

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 12 anos atrás
pai
commit
01aac2a142

+ 1
- 0
Marlin/Marlin_main.cpp Ver arquivo

859
           lcd_update();
859
           lcd_update();
860
         }
860
         }
861
       }
861
       }
862
+      LCD_MESSAGEPGM(MSG_RESUMING);
862
     }
863
     }
863
     break;
864
     break;
864
 #endif
865
 #endif

+ 1
- 0
Marlin/language.h Ver arquivo

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

+ 4
- 3
Marlin/ultralcd.cpp Ver arquivo

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

+ 0
- 3
Marlin/ultralcd.h Ver arquivo

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

+ 1
- 1
Marlin/ultralcd_implementation_hitachi_HD44780.h Ver arquivo

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))
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
 void lcd_implementation_drawedit(const char* pstr, char* value)
364
 void lcd_implementation_drawedit(const char* pstr, char* value)
365
 {
365
 {
366
-    lcd.setCursor(0, 1);
366
+    lcd.setCursor(1, 1);
367
     lcd_printPGM(pstr);
367
     lcd_printPGM(pstr);
368
     lcd.print(':');
368
     lcd.print(':');
369
     lcd.setCursor(19 - strlen(value), 1);
369
     lcd.setCursor(19 - strlen(value), 1);

Carregando…
Cancelar
Salvar