Display Filament Sensor data on 20x4 LCD
Changes to support displaying the real-time filament width and the volume factor on a 20x4 LCD. The data is displayed on the 4th line. First the status message is displayed for 5 seconds, and then the filament data is displayed. The status message can be seen by re-selecting the info screen in the menu.
This commit is contained in:
@ -499,9 +499,23 @@ static void lcd_implementation_status_screen()
|
||||
}
|
||||
#endif
|
||||
|
||||
//Status message line on the last line
|
||||
//Display both Status message line and Filament display on the last line
|
||||
#ifdef FILAMENT_LCD_DISPLAY
|
||||
if(message_millis+5000>millis()){ //display any status for the first 5 sec after screen is initiated
|
||||
lcd.setCursor(0, LCD_HEIGHT - 1);
|
||||
lcd.print(lcd_status_message);
|
||||
} else {
|
||||
lcd.setCursor(0,LCD_HEIGHT - 1);
|
||||
lcd_printPGM(PSTR("Dia "));
|
||||
lcd.print(ftostr12ns(filament_width_meas));
|
||||
lcd_printPGM(PSTR(" V"));
|
||||
lcd.print(itostr3(100.0*volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM]));
|
||||
lcd.print('%');
|
||||
}
|
||||
#else
|
||||
lcd.setCursor(0, LCD_HEIGHT - 1);
|
||||
lcd.print(lcd_status_message);
|
||||
#endif
|
||||
}
|
||||
static void lcd_implementation_drawmenu_generic(uint8_t row, const char* pstr, char pre_char, char post_char)
|
||||
{
|
||||
|
Reference in New Issue
Block a user