|
@@ -3,14 +3,10 @@
|
3
|
3
|
|
4
|
4
|
/**
|
5
|
5
|
* Implementation of the LCD display routines for a Hitachi HD44780 display. These are common LCD character displays.
|
6
|
|
-* When selecting the Russian language, a slightly different LCD implementation is used to handle UTF8 characters.
|
7
|
6
|
**/
|
8
|
7
|
|
9
|
|
-//#if DISABLED(REPRAPWORLD_KEYPAD)
|
10
|
|
-// extern volatile uint8_t buttons; //the last checked buttons in a bit array.
|
11
|
|
-//#else
|
12
|
|
- extern volatile uint8_t buttons; //an extended version of the last checked buttons in a bit array.
|
13
|
|
-//#endif
|
|
8
|
+static unsigned char blink = 0; // Variable for animation
|
|
9
|
+extern volatile uint8_t buttons; //an extended version of the last checked buttons in a bit array.
|
14
|
10
|
|
15
|
11
|
////////////////////////////////////
|
16
|
12
|
// Setup button and encode mappings for each panel (into 'buttons' variable
|
|
@@ -621,13 +617,13 @@ static void lcd_implementation_status_screen() {
|
621
|
617
|
#else
|
622
|
618
|
|
623
|
619
|
lcd.print('X');
|
624
|
|
- if (axis_known_position[X_AXIS])
|
|
620
|
+ if (axis_known_position[X_AXIS] || (blink & 1))
|
625
|
621
|
lcd.print(ftostr4sign(current_position[X_AXIS]));
|
626
|
622
|
else
|
627
|
623
|
lcd_printPGM(PSTR(" ---"));
|
628
|
624
|
|
629
|
|
- lcd_printPGM(PSTR(" Y"));
|
630
|
|
- if (axis_known_position[Y_AXIS])
|
|
625
|
+ lcd_printPGM(PSTR(" Y"));
|
|
626
|
+ if (axis_known_position[Y_AXIS] || (blink & 1))
|
631
|
627
|
lcd.print(ftostr4sign(current_position[Y_AXIS]));
|
632
|
628
|
else
|
633
|
629
|
lcd_printPGM(PSTR(" ---"));
|
|
@@ -638,7 +634,7 @@ static void lcd_implementation_status_screen() {
|
638
|
634
|
|
639
|
635
|
lcd.setCursor(LCD_WIDTH - 8, 1);
|
640
|
636
|
lcd_printPGM(PSTR("Z "));
|
641
|
|
- if (axis_known_position[Z_AXIS])
|
|
637
|
+ if (axis_known_position[Z_AXIS] || (blink & 1))
|
642
|
638
|
lcd.print(ftostr32sp(current_position[Z_AXIS] + 0.00001));
|
643
|
639
|
else
|
644
|
640
|
lcd_printPGM(PSTR("---.--"));
|