Prusa MK2S Ramps Firmware - Thermistor question February 13, 2018 03:47AM |
Registered: 10 years ago Posts: 9 |
int tHotend=int(degHotend(0) + 0.5); int tTarget=int(degTargetHotend(0) + 0.5); //Print the hotend temperature 1 lcd.setCursor(0, 0); lcd.print(LCD_STR_THERMOMETER[0]); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); lcd_printPGM(PSTR(" ")); ################## here begins the addeded content ################# tHotend=int(degHotend(1) + 0.5); tTarget=int(degTargetHotend(1) + 0.5); //Print the hotend temperature 2 lcd.setCursor(0, 1); lcd.print(LCD_STR_THERMOMETER[0]); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); lcd_printPGM(PSTR(" ")); ############### end of my added content ##################### //Print the Z coordinates lcd.setCursor(LCD_WIDTH - 8-2, 1); #if 1 lcd_printPGM(PSTR(" Z")); if (custom_message_type == 1) { // In a bed calibration mode. lcd_printPGM(PSTR(" --- ")); } else { lcd.print(ftostr32sp(current_position[Z_AXIS] + 0.00001)); lcd.print(' '); } #else lcd_printPGM(PSTR(" Queue:")); lcd.print(int(moves_planned())); lcd.print(' '); #endif //Print the Bedtemperature lcd.setCursor(LCD_WIDTH - 8-2, 0); tHotend=int(degBed() + 0.5); tTarget=int(degTargetBed() + 0.5); lcd.print(LCD_STR_BEDTEMP[0]); lcd.print(itostr3(tHotend)); lcd.print('/'); lcd.print(itostr3left(tTarget)); lcd_printPGM(PSTR(LCD_STR_DEGREE " ")); lcd_printPGM(PSTR(" "));