|
|
@ -374,6 +374,17 @@ void MainMenu::showStatus()
|
|
|
|
lcd.print(fillto(LCD_WIDTH,messagetext));
|
|
|
|
lcd.print(fillto(LCD_WIDTH,messagetext));
|
|
|
|
messagetext[0]='\0';
|
|
|
|
messagetext[0]='\0';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static uint8_t oldpercent=101;
|
|
|
|
|
|
|
|
uint8_t percent=card.percentDone();
|
|
|
|
|
|
|
|
if(oldpercent!=percent ||force_lcd_update)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
lcd.setCursor(7,2);
|
|
|
|
|
|
|
|
lcd.print(itostr3((int)percent));
|
|
|
|
|
|
|
|
lcdprintPGM("%SD");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#else //smaller LCDS----------------------------------
|
|
|
|
#else //smaller LCDS----------------------------------
|
|
|
|
static int olddegHotEnd0=-1;
|
|
|
|
static int olddegHotEnd0=-1;
|
|
|
|
static int oldtargetHotEnd0=-1;
|
|
|
|
static int oldtargetHotEnd0=-1;
|
|
|
@ -686,7 +697,7 @@ void MainMenu::showControl()
|
|
|
|
if(force_lcd_update)
|
|
|
|
if(force_lcd_update)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" Vxy-jerk: ");
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk/60));
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(max_xy_jerk));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if((activeline==line) )
|
|
|
|
if((activeline==line) )
|
|
|
@ -696,11 +707,11 @@ void MainMenu::showControl()
|
|
|
|
linechanging=!linechanging;
|
|
|
|
linechanging=!linechanging;
|
|
|
|
if(linechanging)
|
|
|
|
if(linechanging)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
encoderpos=(int)max_xy_jerk/60;
|
|
|
|
encoderpos=(int)max_xy_jerk;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
max_xy_jerk= encoderpos*60;
|
|
|
|
max_xy_jerk= encoderpos;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -866,7 +877,7 @@ void MainMenu::showControl()
|
|
|
|
if(i==ItemC_vmaxy)lcdprintPGM("y:");
|
|
|
|
if(i==ItemC_vmaxy)lcdprintPGM("y:");
|
|
|
|
if(i==ItemC_vmaxz)lcdprintPGM("z:");
|
|
|
|
if(i==ItemC_vmaxz)lcdprintPGM("z:");
|
|
|
|
if(i==ItemC_vmaxe)lcdprintPGM("e:");
|
|
|
|
if(i==ItemC_vmaxe)lcdprintPGM("e:");
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemC_vmaxx]/60));
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(max_feedrate[i-ItemC_vmaxx]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if((activeline==line) )
|
|
|
|
if((activeline==line) )
|
|
|
@ -876,11 +887,11 @@ void MainMenu::showControl()
|
|
|
|
linechanging=!linechanging;
|
|
|
|
linechanging=!linechanging;
|
|
|
|
if(linechanging)
|
|
|
|
if(linechanging)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
encoderpos=(int)max_feedrate[i-ItemC_vmaxx]/60;
|
|
|
|
encoderpos=(int)max_feedrate[i-ItemC_vmaxx];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
max_feedrate[i-ItemC_vmaxx]= encoderpos*60;
|
|
|
|
max_feedrate[i-ItemC_vmaxx]= encoderpos;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -901,7 +912,7 @@ void MainMenu::showControl()
|
|
|
|
if(force_lcd_update)
|
|
|
|
if(force_lcd_update)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" Vmin:");
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate/60));
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(minimumfeedrate));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if((activeline==line) )
|
|
|
|
if((activeline==line) )
|
|
|
@ -911,11 +922,11 @@ void MainMenu::showControl()
|
|
|
|
linechanging=!linechanging;
|
|
|
|
linechanging=!linechanging;
|
|
|
|
if(linechanging)
|
|
|
|
if(linechanging)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
encoderpos=(int)(minimumfeedrate/60.);
|
|
|
|
encoderpos=(int)(minimumfeedrate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
minimumfeedrate= encoderpos*60;
|
|
|
|
minimumfeedrate= encoderpos;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -935,7 +946,7 @@ void MainMenu::showControl()
|
|
|
|
if(force_lcd_update)
|
|
|
|
if(force_lcd_update)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
|
|
|
|
lcd.setCursor(0,line);lcdprintPGM(" VTrav min:");
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate/60));
|
|
|
|
lcd.setCursor(13,line);lcd.print(itostr3(mintravelfeedrate));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if((activeline==line) )
|
|
|
|
if((activeline==line) )
|
|
|
@ -945,11 +956,11 @@ void MainMenu::showControl()
|
|
|
|
linechanging=!linechanging;
|
|
|
|
linechanging=!linechanging;
|
|
|
|
if(linechanging)
|
|
|
|
if(linechanging)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
encoderpos=(int)mintravelfeedrate/60;
|
|
|
|
encoderpos=(int)mintravelfeedrate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mintravelfeedrate= encoderpos*60;
|
|
|
|
mintravelfeedrate= encoderpos;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
encoderpos=activeline*lcdslow;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|