💄 MarlinUI+DOGM leveled bed bitmaps (#23539)

This commit is contained in:
Taylor Talkington 2022-01-17 00:34:50 -05:00 committed by Scott Lahteine
parent a80cafbcfc
commit 4f2ed67324
2 changed files with 40 additions and 1 deletions

View file

@ -42,6 +42,18 @@
B00000011,B11111111,B11111111 B00000011,B11111111,B11111111
}; };
#if HAS_LEVELING
const unsigned char status_bed_leveled_bmp[] PROGMEM = {
B11111111,B11111111,B11001110,
B01000000,B00100000,B00100100,
B00100000,B00010000,B00010000,
B00011111,B11111111,B11111000,
B00001000,B00000100,B00000100,
B00100100,B00000010,B00000010,
B01110011,B11111111,B11111111
};
#endif
const unsigned char status_bed_on_bmp[] PROGMEM = { const unsigned char status_bed_on_bmp[] PROGMEM = {
B00000010,B00100010,B00000000, B00000010,B00100010,B00000000,
B00000100,B01000100,B00000000, B00000100,B01000100,B00000000,
@ -57,6 +69,23 @@
B00000011,B11111111,B11111111 B00000011,B11111111,B11111111
}; };
#if HAS_LEVELING
const unsigned char status_bed_leveled_on_bmp[] PROGMEM = {
B00000010,B00100010,B00000000,
B00000100,B01000100,B00000000,
B00000100,B01000100,B00000000,
B00000010,B00100010,B00000000,
B00000001,B00010001,B00000000,
B11111111,B11111111,B11001110,
B01000000,B10101000,B10100100,
B00100001,B00010001,B00010000,
B00011111,B11111111,B11111000,
B00001000,B00000100,B00000100,
B00100100,B00000010,B00000010,
B01110011,B11111111,B11111111
};
#endif
#else #else
#define STATUS_BED_WIDTH 21 #define STATUS_BED_WIDTH 21

View file

@ -49,6 +49,10 @@
#include "../../module/planner.h" #include "../../module/planner.h"
#endif #endif
#if HAS_LEVELING
#include "../../module/planner.h"
#endif
#if HAS_CUTTER #if HAS_CUTTER
#include "../../feature/spindle_laser.h" #include "../../feature/spindle_laser.h"
#endif #endif
@ -602,7 +606,13 @@ void MarlinUI::draw_status_screen() {
#if DO_DRAW_BED && DISABLED(STATUS_COMBINE_HEATERS) #if DO_DRAW_BED && DISABLED(STATUS_COMBINE_HEATERS)
#if ANIM_BED #if ANIM_BED
#define BED_BITMAP(S) ((S) ? status_bed_on_bmp : status_bed_bmp) #if BOTH(HAS_LEVELING, STATUS_ALT_BED_BITMAP)
#define BED_BITMAP(S) ((S) \
? (planner.leveling_active ? status_bed_leveled_on_bmp : status_bed_on_bmp) \
: (planner.leveling_active ? status_bed_leveled_bmp : status_bed_bmp))
#else
#define BED_BITMAP(S) ((S) ? status_bed_on_bmp : status_bed_bmp)
#endif
#else #else
#define BED_BITMAP(S) status_bed_bmp #define BED_BITMAP(S) status_bed_bmp
#endif #endif