Browse Source

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.
pull/1/head
Filip Mulier 10 years ago
parent
commit
3b1ab84536
  1. 14
      Marlin/dogm_lcd_implementation.h

14
Marlin/dogm_lcd_implementation.h

@ -334,7 +334,21 @@ static void lcd_implementation_status_screen()
// Status line // Status line
u8g.setFont(FONT_STATUSMENU); u8g.setFont(FONT_STATUSMENU);
u8g.setPrintPos(0,61); u8g.setPrintPos(0,61);
#ifndef FILAMENT_LCD_DISPLAY
u8g.print(lcd_status_message); 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
} }

Loading…
Cancel
Save