From 3b1ab845362328802a10c00ef153e80ec13f1c22 Mon Sep 17 00:00:00 2001 From: Filip Mulier Date: Mon, 10 Nov 2014 21:46:37 -0600 Subject: [PATCH] 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. --- Marlin/dogm_lcd_implementation.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Marlin/dogm_lcd_implementation.h b/Marlin/dogm_lcd_implementation.h index 8d450cb37..ec661f15c 100644 --- a/Marlin/dogm_lcd_implementation.h +++ b/Marlin/dogm_lcd_implementation.h @@ -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 }