Add "About Printer" information menu.

Includes:
  *firmware version / branch / date.
  *extruder count
  *board information (name, serial details, power supply type)
  *thermistors (names, min/max temperatures)
  *printer statistics (PRINTCOUNTER details)

Thanks to @thinkyhead for contributions.
This commit is contained in:
Anthony Birkett
2016-06-30 10:24:29 +01:00
committed by Scott Lahteine
parent 77a923d8ce
commit 7a377c1d75
82 changed files with 526 additions and 27 deletions

View File

@@ -815,6 +815,21 @@ static void lcd_implementation_status_screen() {
lcd_print(lcd_status_message);
}
static void lcd_implementation_drawmenu_static(uint8_t row, const char* pstr, bool center=true) {
char c;
uint8_t n = LCD_WIDTH;
lcd.setCursor(0, row);
if (center) {
int8_t pad = (LCD_WIDTH - lcd_strlen_P(pstr)) / 2;
while (--pad >= 0) { lcd.print(' '); n--; }
}
while ((c = pgm_read_byte(pstr)) && n > 0) {
n -= lcd_print(c);
pstr++;
}
while (n--) lcd.print(' ');
}
static void lcd_implementation_drawmenu_generic(bool sel, uint8_t row, const char* pstr, char pre_char, char post_char) {
char c;
uint8_t n = LCD_WIDTH - 2;