Custom Splash Screen

Custom Splash Screen for full graphic displays.

Too complicated for the hitachis without knowing what exactly to display.

On top of #4032
Realisation of an idea from #3996
This commit is contained in:
AnHardt
2016-06-14 04:02:55 +02:00
parent 78a48d7e3c
commit 02b3d6b8d3
2 changed files with 88 additions and 0 deletions

View File

@@ -53,6 +53,8 @@
#include <U8glib.h>
#include "dogm_bitmaps.h"
#include "dogm_custom_bitmaps.h"
#include "ultralcd.h"
#include "ultralcd_st7920_u8glib_rrd.h"
@@ -247,6 +249,15 @@ static void lcd_implementation_init() {
#endif
#if ENABLED(SHOW_BOOTSCREEN)
#if ENABLED(CUSTOM_START_BMP)
if (show_bootscreen) {
u8g.firstPage();
do {
u8g.drawBitmapP((128-(CUSTOM_START_BMPWIDTH))/2, (64 - (CUSTOM_START_BMPHEIGHT))/2, CUSTOM_START_BMPBYTEWIDTH, CUSTOM_START_BMPHEIGHT, custom_start_bmp);
} while (u8g.nextPage());
delay(CUSTOM_START_BMP_DELAY);
}
#endif
int offx = (u8g.getWidth() - (START_BMPWIDTH)) / 2;
#if ENABLED(START_BMPHIGH)
int offy = 0;