소스 검색

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.
Filip Mulier 10 년 전
부모
커밋
3b1ab84536
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 15
    1
      Marlin/dogm_lcd_implementation.h

+ 15
- 1
Marlin/dogm_lcd_implementation.h 파일 보기

334
  // Status line
334
  // Status line
335
  u8g.setFont(FONT_STATUSMENU);
335
  u8g.setFont(FONT_STATUSMENU);
336
  u8g.setPrintPos(0,61);
336
  u8g.setPrintPos(0,61);
337
- u8g.print(lcd_status_message);
337
+ #ifndef FILAMENT_LCD_DISPLAY
338
+ 	u8g.print(lcd_status_message);
339
+ #else
340
+	if(message_millis+5000>millis()){  //Display both Status message line and Filament display on the last line
341
+	 u8g.print(lcd_status_message);
342
+ 	}
343
+ 	else
344
+	{
345
+	 lcd_printPGM(PSTR("dia:"));
346
+	 u8g.print(ftostr12ns(filament_width_meas));
347
+	 lcd_printPGM(PSTR(" factor:"));
348
+	 u8g.print(itostr3(extrudemultiply));
349
+	 u8g.print('%');
350
+	}
351
+ #endif 	
338
 
352
 
339
 }
353
 }
340
 
354
 

Loading…
취소
저장