Display Filament Sensor data on graphic LCD
Added support to show the filament width on the status line of the graphic LCD. The status will show for 5 sec and then switch over to data. Status can be seen by clicking the button.
This commit is contained in:
parent
d84934d8c5
commit
3b1ab84536
1 changed files with 15 additions and 1 deletions
|
@ -334,7 +334,21 @@ static void lcd_implementation_status_screen()
|
|||
// Status line
|
||||
u8g.setFont(FONT_STATUSMENU);
|
||||
u8g.setPrintPos(0,61);
|
||||
u8g.print(lcd_status_message);
|
||||
#ifndef FILAMENT_LCD_DISPLAY
|
||||
u8g.print(lcd_status_message);
|
||||
#else
|
||||
if(message_millis+5000>millis()){ //Display both Status message line and Filament display on the last line
|
||||
u8g.print(lcd_status_message);
|
||||
}
|
||||
else
|
||||
{
|
||||
lcd_printPGM(PSTR("dia:"));
|
||||
u8g.print(ftostr12ns(filament_width_meas));
|
||||
lcd_printPGM(PSTR(" factor:"));
|
||||
u8g.print(itostr3(extrudemultiply));
|
||||
u8g.print('%');
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue