Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Improve STATUS_BED_X
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 23, 2022
1 parent 6b47db3 commit 0b32c39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions Marlin/src/lcd/dogm/dogm_Statusscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#undef STATUS_HEATERS_X
#undef STATUS_BED_X

/**
* Custom _Statusscreen.h files can define:
* - A custom logo image
Expand Down
8 changes: 7 additions & 1 deletion Marlin/src/lcd/dogm/status/combined.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#if HOTENDS == 0

#define STATUS_HEATERS_WIDTH 96
#define STATUS_BED_X 74

const unsigned char status_heaters_bmp[] PROGMEM = {
B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
Expand All @@ -56,6 +57,7 @@
#elif HOTENDS == 1

#define STATUS_HEATERS_WIDTH 96
#define STATUS_BED_X 74

const unsigned char status_heaters_bmp[] PROGMEM = {
B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
Expand All @@ -75,6 +77,7 @@
#elif HOTENDS == 2

#define STATUS_HEATERS_WIDTH 96
#define STATUS_BED_X 74

const unsigned char status_heaters_bmp[] PROGMEM = {
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000000,B00000000,B00000000,B00000100,B00010000,B01000000,
Expand Down Expand Up @@ -104,6 +107,7 @@
#elif HOTENDS == 3

#define STATUS_HEATERS_WIDTH 96
#define STATUS_BED_X 74

const unsigned char status_heaters_bmp[] PROGMEM = {
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
Expand Down Expand Up @@ -133,6 +137,7 @@
#else // HOTENDS > 3

#define STATUS_HEATERS_WIDTH 120
#define STATUS_BED_X 98

const unsigned char status_heaters_bmp[] PROGMEM = {
B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00011111,B11100000,B00000000,B00000100,B00010000,B01000000,
Expand Down Expand Up @@ -161,7 +166,8 @@

#endif // HOTENDS

#define STATUS_BED_TEXT_X (STATUS_HEATERS_WIDTH - 10)
#define STATUS_BED_WIDTH 20
#define STATUS_BED_TEXT_X (STATUS_BED_X + STATUS_BED_WIDTH / 2)

#else // !HAS_HEATED_BED || HOTENDS > 3

Expand Down

0 comments on commit 0b32c39

Please sign in to comment.