|
@ -29,21 +29,22 @@ |
|
|
|
|
|
|
|
|
#include "../../inc/MarlinConfig.h" |
|
|
#include "../../inc/MarlinConfig.h" |
|
|
|
|
|
|
|
|
#if ENABLED(SHOW_BOOTSCREEN) |
|
|
//#define START_BMPHIGH // Costs 399 bytes more flash
|
|
|
|
|
|
|
|
|
//#define START_BMPHIGH // Costs 399 bytes more flash
|
|
|
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN) |
|
|
|
|
|
|
|
|
#if ENABLED(SHOW_CUSTOM_BOOTSCREEN) |
|
|
|
|
|
|
|
|
|
|
|
#include "../../../_Bootscreen.h" |
|
|
#include "../../../_Bootscreen.h" |
|
|
|
|
|
|
|
|
#ifndef CUSTOM_BOOTSCREEN_TIMEOUT |
|
|
#ifndef CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH |
|
|
#define CUSTOM_BOOTSCREEN_TIMEOUT 2500 |
|
|
#define CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH ((CUSTOM_BOOTSCREEN_BMPWIDTH + 7) / 8) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
#ifndef CUSTOM_BOOTSCREEN_BMPHEIGHT |
|
|
|
|
|
#define CUSTOM_BOOTSCREEN_BMPHEIGHT (sizeof(custom_start_bmp) / (CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH)) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(START_BMPHIGH) |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(START_BMPHIGH) |
|
|
|
|
|
|
|
|
#define START_BMPWIDTH 112 |
|
|
#define START_BMPWIDTH 112 |
|
|
|
|
|
|
|
@ -88,7 +89,7 @@ |
|
|
B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B10000000 |
|
|
B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B10000000 |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
#else |
|
|
#else |
|
|
|
|
|
|
|
|
#define START_BMPWIDTH 56 |
|
|
#define START_BMPWIDTH 56 |
|
|
|
|
|
|
|
@ -114,22 +115,13 @@ |
|
|
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000 |
|
|
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000 |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifndef START_BMP_BYTEWIDTH |
|
|
#ifndef START_BMP_BYTEWIDTH |
|
|
#define START_BMP_BYTEWIDTH ((START_BMPWIDTH + 7) / 8) |
|
|
#define START_BMP_BYTEWIDTH ((START_BMPWIDTH + 7) / 8) |
|
|
#endif |
|
|
#endif |
|
|
#ifndef START_BMPHEIGHT |
|
|
#ifndef START_BMPHEIGHT |
|
|
#define START_BMPHEIGHT (sizeof(start_bmp) / (START_BMP_BYTEWIDTH)) |
|
|
#define START_BMPHEIGHT (sizeof(start_bmp) / (START_BMP_BYTEWIDTH)) |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
static_assert(sizeof(start_bmp) == (START_BMP_BYTEWIDTH) * (START_BMPHEIGHT), "Bootscreen (start_bmp) dimensions don't match data."); |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#ifndef CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH |
|
|
static_assert(sizeof(start_bmp) == (START_BMP_BYTEWIDTH) * (START_BMPHEIGHT), "Bootscreen (start_bmp) dimensions don't match data."); |
|
|
#define CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH ((CUSTOM_BOOTSCREEN_BMPWIDTH + 7) / 8) |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef CUSTOM_BOOTSCREEN_BMPHEIGHT |
|
|
|
|
|
#define CUSTOM_BOOTSCREEN_BMPHEIGHT (sizeof(custom_start_bmp) / (CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH)) |
|
|
|
|
|
#endif |
|
|
|
|
|