Browse Source

Merge pull request #1823 from AnHardt/splashscreen

Disable splash-screen when done once
pull/1/head
Scott Lahteine 10 years ago
parent
commit
d70a4a3847
  1. 5
      Marlin/dogm_lcd_implementation.h

5
Marlin/dogm_lcd_implementation.h

@ -186,6 +186,8 @@ char lcd_printPGM(const char* str) {
return n;
}
static bool show_splashscreen = true;
static void lcd_implementation_init()
{
#ifdef LCD_PIN_BL // Enable LCD backlight
@ -219,6 +221,7 @@ static void lcd_implementation_init()
u8g.firstPage();
do {
if (show_splashscreen) {
u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
lcd_setFont(FONT_MENU);
#ifndef STRING_SPLASH_LINE2
@ -228,7 +231,9 @@ static void lcd_implementation_init()
u8g.drawStr(txt1X, u8g.getHeight() - DOG_CHAR_HEIGHT*3/2, STRING_SPLASH_LINE1);
u8g.drawStr(txt2X, u8g.getHeight() - DOG_CHAR_HEIGHT*1/2, STRING_SPLASH_LINE2);
#endif
}
} while (u8g.nextPage());
show_splashscreen = false;
}
static void lcd_implementation_clear() { } // Automatically cleared by Picture Loop

Loading…
Cancel
Save