|
@@ -29,107 +29,99 @@
|
29
|
29
|
|
30
|
30
|
#include "../../inc/MarlinConfig.h"
|
31
|
31
|
|
32
|
|
-#if ENABLED(SHOW_BOOTSCREEN)
|
|
32
|
+//#define START_BMPHIGH // Costs 399 bytes more flash
|
33
|
33
|
|
34
|
|
- //#define START_BMPHIGH // Costs 399 bytes more flash
|
|
34
|
+#if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
35
|
35
|
|
36
|
|
- #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
|
37
|
|
-
|
38
|
|
- #include "../../../_Bootscreen.h"
|
39
|
|
-
|
40
|
|
- #ifndef CUSTOM_BOOTSCREEN_TIMEOUT
|
41
|
|
- #define CUSTOM_BOOTSCREEN_TIMEOUT 2500
|
42
|
|
- #endif
|
|
36
|
+ #include "../../../_Bootscreen.h"
|
43
|
37
|
|
|
38
|
+ #ifndef CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH
|
|
39
|
+ #define CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH ((CUSTOM_BOOTSCREEN_BMPWIDTH + 7) / 8)
|
44
|
40
|
#endif
|
45
|
|
-
|
46
|
|
- #if ENABLED(START_BMPHIGH)
|
47
|
|
-
|
48
|
|
- #define START_BMPWIDTH 112
|
49
|
|
-
|
50
|
|
- const unsigned char start_bmp[] PROGMEM = {
|
51
|
|
- B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
52
|
|
- B00001111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
53
|
|
- B00011110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11111111,
|
54
|
|
- B00111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11111111,
|
55
|
|
- B01110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,
|
56
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111111,
|
57
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,B11111111,
|
58
|
|
- B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00111111,B11111111,
|
59
|
|
- B11000000,B00001111,B11000000,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00011000,B00000000,B00011111,B11111111,
|
60
|
|
- B11000000,B00111111,B11100001,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00001111,B11111111,
|
61
|
|
- B11000000,B01111111,B11110011,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00000111,B11111111,
|
62
|
|
- B11000000,B11111111,B11111111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00000011,B11111111,
|
63
|
|
- B11000001,B11111000,B01111111,B10000111,B11100000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00000001,B11111111,
|
64
|
|
- B11000001,B11110000,B00111111,B00000011,B11100000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00000000,B11111111,
|
65
|
|
- B11000001,B11100000,B00011110,B00000001,B11100000,B00011111,B00000000,B00000011,B11100000,B01111000,B00111100,B00000011,B11110000,B01111111,
|
66
|
|
- B11000001,B11100000,B00011110,B00000001,B11100000,B01111111,B11000000,B00001111,B11111000,B01111000,B00111100,B00000111,B11111100,B00111111,
|
67
|
|
- B11000001,B11100000,B00011110,B00000001,B11100001,B11111111,B11100000,B00011111,B11111100,B01111000,B00111100,B00001111,B11111110,B00011111,
|
68
|
|
- B11000001,B11100000,B00011110,B00000001,B11100011,B11111111,B11110000,B00111111,B11111110,B01111000,B00111100,B00011111,B11111110,B00001111,
|
69
|
|
- B11000001,B11100000,B00011110,B00000001,B11100011,B11110011,B11111000,B00111111,B00111110,B01111000,B00111100,B00111111,B00111111,B00000111,
|
70
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B11100000,B11111100,B01111100,B00011111,B01111000,B00111100,B00111110,B00011111,B00000111,
|
71
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B11000000,B01111100,B01111100,B00001111,B01111000,B00111100,B00111100,B00001111,B00000011,
|
72
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B01111100,B01111000,B00001111,B01111000,B00111100,B00111100,B00001111,B00000011,
|
73
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
74
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
75
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
76
|
|
- B11000001,B11100000,B00011110,B00000001,B11100111,B11000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
77
|
|
- B11000001,B11100000,B00011110,B00000001,B11100011,B11100000,B00111100,B01111000,B00000000,B01111100,B00111100,B00111100,B00001111,B00000011,
|
78
|
|
- B11000001,B11100000,B00011110,B00000001,B11100011,B11111111,B00111111,B11111000,B00000000,B01111111,B10111100,B00111100,B00001111,B00000011,
|
79
|
|
- B11000001,B11100000,B00011110,B00000001,B11100001,B11111111,B00111111,B11111000,B00000000,B00111111,B10111111,B11111100,B00001111,B00000011,
|
80
|
|
- B11000001,B11100000,B00011110,B00000001,B11100000,B11111111,B00111111,B11111000,B00000000,B00011111,B10111111,B11111100,B00001111,B00000011,
|
81
|
|
- B11000001,B11100000,B00011110,B00000001,B11100000,B01111111,B00111111,B11111000,B00000000,B00001111,B10111111,B11111100,B00001111,B00000011,
|
82
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,
|
83
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000110,
|
84
|
|
- B01110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001110,
|
85
|
|
- B00111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011100,
|
86
|
|
- B00011110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,
|
87
|
|
- B00001111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11110000,
|
88
|
|
- B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B10000000
|
89
|
|
- };
|
90
|
|
-
|
91
|
|
- #else
|
92
|
|
-
|
93
|
|
- #define START_BMPWIDTH 56
|
94
|
|
-
|
95
|
|
- const unsigned char start_bmp[] PROGMEM = {
|
96
|
|
- B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
97
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,
|
98
|
|
- B01000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,
|
99
|
|
- B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,
|
100
|
|
- B10000011,B11001111,B00000000,B00000000,B00001100,B00110000,B00111111,
|
101
|
|
- B10000111,B11111111,B10000000,B00000000,B00001100,B00110000,B00011111,
|
102
|
|
- B10000110,B01111001,B10000000,B00000000,B00001100,B00000000,B00001111,
|
103
|
|
- B10001100,B00110000,B11000111,B10000011,B10001100,B00110000,B11100111,
|
104
|
|
- B10001100,B00110000,B11001111,B11000111,B11001100,B00110001,B11110011,
|
105
|
|
- B10001100,B00110000,B11011100,B11101100,B11101100,B00110011,B10111001,
|
106
|
|
- B10001100,B00110000,B11011000,B01101100,B01101100,B00110011,B00011001,
|
107
|
|
- B10001100,B00110000,B11010000,B01101100,B00001100,B00110011,B00011001,
|
108
|
|
- B10001100,B00110000,B11011000,B01101100,B00001100,B00110011,B00011001,
|
109
|
|
- B10001100,B00110000,B11011100,B01101100,B00001110,B00111011,B00011001,
|
110
|
|
- B10001100,B00110000,B11001111,B01111100,B00000111,B10011111,B00011001,
|
111
|
|
- B10001100,B00110000,B11000111,B01111100,B00000011,B10001111,B00011001,
|
112
|
|
- B01000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,
|
113
|
|
- B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000110,
|
114
|
|
- B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
115
|
|
- };
|
116
|
|
-
|
|
41
|
+ #ifndef CUSTOM_BOOTSCREEN_BMPHEIGHT
|
|
42
|
+ #define CUSTOM_BOOTSCREEN_BMPHEIGHT (sizeof(custom_start_bmp) / (CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH))
|
117
|
43
|
#endif
|
118
|
44
|
|
119
|
|
- #ifndef START_BMP_BYTEWIDTH
|
120
|
|
- #define START_BMP_BYTEWIDTH ((START_BMPWIDTH + 7) / 8)
|
121
|
|
- #endif
|
122
|
|
- #ifndef START_BMPHEIGHT
|
123
|
|
- #define START_BMPHEIGHT (sizeof(start_bmp) / (START_BMP_BYTEWIDTH))
|
124
|
|
- #endif
|
|
45
|
+#endif
|
125
|
46
|
|
126
|
|
- static_assert(sizeof(start_bmp) == (START_BMP_BYTEWIDTH) * (START_BMPHEIGHT), "Bootscreen (start_bmp) dimensions don't match data.");
|
|
47
|
+#if ENABLED(START_BMPHIGH)
|
|
48
|
+
|
|
49
|
+ #define START_BMPWIDTH 112
|
|
50
|
+
|
|
51
|
+ const unsigned char start_bmp[] PROGMEM = {
|
|
52
|
+ B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
|
53
|
+ B00001111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
|
54
|
+ B00011110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,B11111111,B11111111,
|
|
55
|
+ B00111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000011,B11111111,B11111111,
|
|
56
|
+ B01110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,B11111111,
|
|
57
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,B11111111,
|
|
58
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,B11111111,
|
|
59
|
+ B11000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00111111,B11111111,
|
|
60
|
+ B11000000,B00001111,B11000000,B11111100,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00011000,B00000000,B00011111,B11111111,
|
|
61
|
+ B11000000,B00111111,B11100001,B11111111,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00001111,B11111111,
|
|
62
|
+ B11000000,B01111111,B11110011,B11111111,B10000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00000111,B11111111,
|
|
63
|
+ B11000000,B11111111,B11111111,B11111111,B11000000,B00000000,B00000000,B00000000,B00000000,B01111000,B00111100,B00000000,B00000011,B11111111,
|
|
64
|
+ B11000001,B11111000,B01111111,B10000111,B11100000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00000001,B11111111,
|
|
65
|
+ B11000001,B11110000,B00111111,B00000011,B11100000,B00000000,B00000000,B00000000,B00000000,B01111000,B00000000,B00000000,B00000000,B11111111,
|
|
66
|
+ B11000001,B11100000,B00011110,B00000001,B11100000,B00011111,B00000000,B00000011,B11100000,B01111000,B00111100,B00000011,B11110000,B01111111,
|
|
67
|
+ B11000001,B11100000,B00011110,B00000001,B11100000,B01111111,B11000000,B00001111,B11111000,B01111000,B00111100,B00000111,B11111100,B00111111,
|
|
68
|
+ B11000001,B11100000,B00011110,B00000001,B11100001,B11111111,B11100000,B00011111,B11111100,B01111000,B00111100,B00001111,B11111110,B00011111,
|
|
69
|
+ B11000001,B11100000,B00011110,B00000001,B11100011,B11111111,B11110000,B00111111,B11111110,B01111000,B00111100,B00011111,B11111110,B00001111,
|
|
70
|
+ B11000001,B11100000,B00011110,B00000001,B11100011,B11110011,B11111000,B00111111,B00111110,B01111000,B00111100,B00111111,B00111111,B00000111,
|
|
71
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B11100000,B11111100,B01111100,B00011111,B01111000,B00111100,B00111110,B00011111,B00000111,
|
|
72
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B11000000,B01111100,B01111100,B00001111,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
73
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B01111100,B01111000,B00001111,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
74
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
75
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
76
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B10000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
77
|
+ B11000001,B11100000,B00011110,B00000001,B11100111,B11000000,B00111100,B01111000,B00000000,B01111000,B00111100,B00111100,B00001111,B00000011,
|
|
78
|
+ B11000001,B11100000,B00011110,B00000001,B11100011,B11100000,B00111100,B01111000,B00000000,B01111100,B00111100,B00111100,B00001111,B00000011,
|
|
79
|
+ B11000001,B11100000,B00011110,B00000001,B11100011,B11111111,B00111111,B11111000,B00000000,B01111111,B10111100,B00111100,B00001111,B00000011,
|
|
80
|
+ B11000001,B11100000,B00011110,B00000001,B11100001,B11111111,B00111111,B11111000,B00000000,B00111111,B10111111,B11111100,B00001111,B00000011,
|
|
81
|
+ B11000001,B11100000,B00011110,B00000001,B11100000,B11111111,B00111111,B11111000,B00000000,B00011111,B10111111,B11111100,B00001111,B00000011,
|
|
82
|
+ B11000001,B11100000,B00011110,B00000001,B11100000,B01111111,B00111111,B11111000,B00000000,B00001111,B10111111,B11111100,B00001111,B00000011,
|
|
83
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000111,
|
|
84
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000110,
|
|
85
|
+ B01110000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00001110,
|
|
86
|
+ B00111000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00011100,
|
|
87
|
+ B00011110,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111000,
|
|
88
|
+ B00001111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11110000,
|
|
89
|
+ B00000001,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,B10000000
|
|
90
|
+ };
|
|
91
|
+
|
|
92
|
+#else
|
|
93
|
+
|
|
94
|
+ #define START_BMPWIDTH 56
|
|
95
|
+
|
|
96
|
+ const unsigned char start_bmp[] PROGMEM = {
|
|
97
|
+ B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
|
98
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000001,B11111111,
|
|
99
|
+ B01000000,B00000000,B00000000,B00000000,B00000000,B00000000,B11111111,
|
|
100
|
+ B10000000,B00000000,B00000000,B00000000,B00000000,B00000000,B01111111,
|
|
101
|
+ B10000011,B11001111,B00000000,B00000000,B00001100,B00110000,B00111111,
|
|
102
|
+ B10000111,B11111111,B10000000,B00000000,B00001100,B00110000,B00011111,
|
|
103
|
+ B10000110,B01111001,B10000000,B00000000,B00001100,B00000000,B00001111,
|
|
104
|
+ B10001100,B00110000,B11000111,B10000011,B10001100,B00110000,B11100111,
|
|
105
|
+ B10001100,B00110000,B11001111,B11000111,B11001100,B00110001,B11110011,
|
|
106
|
+ B10001100,B00110000,B11011100,B11101100,B11101100,B00110011,B10111001,
|
|
107
|
+ B10001100,B00110000,B11011000,B01101100,B01101100,B00110011,B00011001,
|
|
108
|
+ B10001100,B00110000,B11010000,B01101100,B00001100,B00110011,B00011001,
|
|
109
|
+ B10001100,B00110000,B11011000,B01101100,B00001100,B00110011,B00011001,
|
|
110
|
+ B10001100,B00110000,B11011100,B01101100,B00001110,B00111011,B00011001,
|
|
111
|
+ B10001100,B00110000,B11001111,B01111100,B00000111,B10011111,B00011001,
|
|
112
|
+ B10001100,B00110000,B11000111,B01111100,B00000011,B10001111,B00011001,
|
|
113
|
+ B01000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000010,
|
|
114
|
+ B01100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000110,
|
|
115
|
+ B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
|
116
|
+ };
|
127
|
117
|
|
128
|
118
|
#endif
|
129
|
119
|
|
130
|
|
-#ifndef CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH
|
131
|
|
- #define CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH ((CUSTOM_BOOTSCREEN_BMPWIDTH + 7) / 8)
|
|
120
|
+#ifndef START_BMP_BYTEWIDTH
|
|
121
|
+ #define START_BMP_BYTEWIDTH ((START_BMPWIDTH + 7) / 8)
|
132
|
122
|
#endif
|
133
|
|
-#ifndef CUSTOM_BOOTSCREEN_BMPHEIGHT
|
134
|
|
- #define CUSTOM_BOOTSCREEN_BMPHEIGHT (sizeof(custom_start_bmp) / (CUSTOM_BOOTSCREEN_BMP_BYTEWIDTH))
|
|
123
|
+#ifndef START_BMPHEIGHT
|
|
124
|
+ #define START_BMPHEIGHT (sizeof(start_bmp) / (START_BMP_BYTEWIDTH))
|
135
|
125
|
#endif
|
|
126
|
+
|
|
127
|
+static_assert(sizeof(start_bmp) == (START_BMP_BYTEWIDTH) * (START_BMPHEIGHT), "Bootscreen (start_bmp) dimensions don't match data.");
|