|
@ -304,9 +304,11 @@ static void _draw_heater_status(int x, int heater) { |
|
|
static void lcd_implementation_status_screen() { |
|
|
static void lcd_implementation_status_screen() { |
|
|
u8g.setColorIndex(1); // black on white
|
|
|
u8g.setColorIndex(1); // black on white
|
|
|
|
|
|
|
|
|
|
|
|
bool blink = lcd_blink(); |
|
|
|
|
|
|
|
|
#if HAS_FAN0 |
|
|
#if HAS_FAN0 |
|
|
// Symbols menu graphics, animated fan
|
|
|
// Symbols menu graphics, animated fan
|
|
|
u8g.drawBitmapP(9, 1, STATUS_SCREENBYTEWIDTH, STATUS_SCREENHEIGHT, (blink % 2) && fanSpeeds[0] ? status_screen0_bmp : status_screen1_bmp); |
|
|
u8g.drawBitmapP(9, 1, STATUS_SCREENBYTEWIDTH, STATUS_SCREENHEIGHT, blink && fanSpeeds[0] ? status_screen0_bmp : status_screen1_bmp); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
#if ENABLED(SDSUPPORT) |
|
@ -375,18 +377,19 @@ static void lcd_implementation_status_screen() { |
|
|
#endif |
|
|
#endif |
|
|
u8g.setColorIndex(0); // white on black
|
|
|
u8g.setColorIndex(0); // white on black
|
|
|
u8g.setPrintPos(2, XYZ_BASELINE); |
|
|
u8g.setPrintPos(2, XYZ_BASELINE); |
|
|
if (blink & 1) |
|
|
if (blink) |
|
|
lcd_printPGM(PSTR("X")); |
|
|
lcd_printPGM(PSTR("X")); |
|
|
else { |
|
|
else { |
|
|
if (!axis_homed[X_AXIS]) |
|
|
if (!axis_homed[X_AXIS]) |
|
|
lcd_printPGM(PSTR("?")); |
|
|
lcd_printPGM(PSTR("?")); |
|
|
else |
|
|
else { |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
if (!axis_known_position[X_AXIS]) |
|
|
if (!axis_known_position[X_AXIS]) |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
else |
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
lcd_printPGM(PSTR("X")); |
|
|
lcd_printPGM(PSTR("X")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
u8g.drawPixel(8, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(8, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(8, XYZ_BASELINE - 3); |
|
|
u8g.drawPixel(8, XYZ_BASELINE - 3); |
|
@ -394,18 +397,19 @@ static void lcd_implementation_status_screen() { |
|
|
lcd_print(ftostr31ns(current_position[X_AXIS])); |
|
|
lcd_print(ftostr31ns(current_position[X_AXIS])); |
|
|
|
|
|
|
|
|
u8g.setPrintPos(43, XYZ_BASELINE); |
|
|
u8g.setPrintPos(43, XYZ_BASELINE); |
|
|
if (blink & 1) |
|
|
if (blink) |
|
|
lcd_printPGM(PSTR("Y")); |
|
|
lcd_printPGM(PSTR("Y")); |
|
|
else { |
|
|
else { |
|
|
if (!axis_homed[Y_AXIS]) |
|
|
if (!axis_homed[Y_AXIS]) |
|
|
lcd_printPGM(PSTR("?")); |
|
|
lcd_printPGM(PSTR("?")); |
|
|
else |
|
|
else { |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
if (!axis_known_position[Y_AXIS]) |
|
|
if (!axis_known_position[Y_AXIS]) |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
else |
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
lcd_printPGM(PSTR("Y")); |
|
|
lcd_printPGM(PSTR("Y")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
u8g.drawPixel(49, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(49, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(49, XYZ_BASELINE - 3); |
|
|
u8g.drawPixel(49, XYZ_BASELINE - 3); |
|
@ -413,18 +417,19 @@ static void lcd_implementation_status_screen() { |
|
|
lcd_print(ftostr31ns(current_position[Y_AXIS])); |
|
|
lcd_print(ftostr31ns(current_position[Y_AXIS])); |
|
|
|
|
|
|
|
|
u8g.setPrintPos(83, XYZ_BASELINE); |
|
|
u8g.setPrintPos(83, XYZ_BASELINE); |
|
|
if (blink & 1) |
|
|
if (blink) |
|
|
lcd_printPGM(PSTR("Z")); |
|
|
lcd_printPGM(PSTR("Z")); |
|
|
else { |
|
|
else { |
|
|
if (!axis_homed[Z_AXIS]) |
|
|
if (!axis_homed[Z_AXIS]) |
|
|
lcd_printPGM(PSTR("?")); |
|
|
lcd_printPGM(PSTR("?")); |
|
|
else |
|
|
else { |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING) |
|
|
if (!axis_known_position[Z_AXIS]) |
|
|
if (!axis_known_position[Z_AXIS]) |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
lcd_printPGM(PSTR(" ")); |
|
|
else |
|
|
else |
|
|
#endif |
|
|
#endif |
|
|
lcd_printPGM(PSTR("Z")); |
|
|
lcd_printPGM(PSTR("Z")); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
u8g.drawPixel(89, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(89, XYZ_BASELINE - 5); |
|
|
u8g.drawPixel(89, XYZ_BASELINE - 3); |
|
|
u8g.drawPixel(89, XYZ_BASELINE - 3); |
|
|