mirror of
https://github.com/MarlinFirmware/Configurations.git
synced 2025-07-07 23:17:38 -06:00
🔧 Update Animated Bootscreen example (#504)
This commit is contained in:
parent
203d067e92
commit
3a251da94c
1 changed files with 159 additions and 132 deletions
|
@ -23,10 +23,20 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animated boot screen example
|
* Animated boot screen example
|
||||||
|
*
|
||||||
|
* Create your own with Marlin Bitmap Converter
|
||||||
|
* https://marlinfw.org/tools/u8glib/converter.html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CUSTOM_BOOTSCREEN_ANIMATED
|
#define CUSTOM_BOOTSCREEN_ANIMATED
|
||||||
#define CUSTOM_BOOTSCREEN_FRAME_TIME 100 // (ms)
|
#define CUSTOM_BOOTSCREEN_TIMEOUT 500 // (ms) Extra timeout after the animation
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable one of the following two options depending on your needs.
|
||||||
|
* Also edit the "custom_bootscreen_animation" at the bottom of this file.
|
||||||
|
*/
|
||||||
|
#define CUSTOM_BOOTSCREEN_FRAME_TIME 100 // (ms) Same time for all frames
|
||||||
|
//#define CUSTOM_BOOTSCREEN_ANIMATED_FRAME_TIME // Each frame also has a duration
|
||||||
|
|
||||||
#define CUSTOM_BOOTSCREEN_BMPWIDTH 120
|
#define CUSTOM_BOOTSCREEN_BMPWIDTH 120
|
||||||
|
|
||||||
|
@ -52,7 +62,6 @@ const unsigned char custom_start_bmp[] PROGMEM = {
|
||||||
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
||||||
};
|
};
|
||||||
|
|
||||||
#if ENABLED(CUSTOM_BOOTSCREEN_ANIMATED)
|
|
||||||
|
|
||||||
const unsigned char custom_start_bmp1[] PROGMEM = {
|
const unsigned char custom_start_bmp1[] PROGMEM = {
|
||||||
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111111,
|
||||||
|
@ -186,8 +195,26 @@ const unsigned char custom_start_bmp[] PROGMEM = {
|
||||||
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
B00011111,B11111111,B11111111,B11111111,B11111111,B11111111,B11111000
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CUSTOM_BOOTSCREEN_ANIMATED_FRAME_TIME
|
||||||
|
|
||||||
|
// Each Frame has its own custom duration
|
||||||
|
const boot_frame_t custom_bootscreen_animation[] PROGMEM = {
|
||||||
|
{ custom_start_bmp1, 2000 }, // 2.0s
|
||||||
|
{ custom_start_bmp2, 100 }, // 0.1s x 5 frames
|
||||||
|
{ custom_start_bmp3, 100 },
|
||||||
|
{ custom_start_bmp4, 100 },
|
||||||
|
{ custom_start_bmp5, 100 },
|
||||||
|
{ custom_start_bmp6, 100 },
|
||||||
|
{ custom_start_bmp, 500 } // 0.5s
|
||||||
|
};
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
// Each frames shows for CUSTOM_BOOTSCREEN_FRAME_TIME
|
||||||
const unsigned char * const custom_bootscreen_animation[] PROGMEM = {
|
const unsigned char * const custom_bootscreen_animation[] PROGMEM = {
|
||||||
custom_start_bmp1, custom_start_bmp2, custom_start_bmp3, custom_start_bmp4, custom_start_bmp5, custom_start_bmp6, custom_start_bmp
|
custom_start_bmp1, custom_start_bmp2, custom_start_bmp3,
|
||||||
|
custom_start_bmp4, custom_start_bmp5, custom_start_bmp6,
|
||||||
|
custom_start_bmp
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue