Move status screen defines
This commit is contained in:
parent
1ea78cdd69
commit
6a514a1e8e
2 changed files with 15 additions and 14 deletions
|
@ -1726,3 +1726,17 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DO_DRAW_LOGO (STATUS_LOGO_WIDTH && ENABLED(CUSTOM_STATUS_SCREEN_IMAGE))
|
||||||
|
#define DO_DRAW_HOTENDS (HOTENDS > 0)
|
||||||
|
#define DO_DRAW_CUTTER (HAS_CUTTER)
|
||||||
|
#define DO_DRAW_BED (HAS_HEATED_BED && STATUS_BED_WIDTH && HOTENDS <= 4)
|
||||||
|
#define DO_DRAW_CHAMBER (HAS_TEMP_CHAMBER && STATUS_CHAMBER_WIDTH && HOTENDS <= 4)
|
||||||
|
#define DO_DRAW_FAN (HAS_FAN0 && STATUS_FAN_WIDTH && HOTENDS <= 4 && defined(STATUS_FAN_FRAMES))
|
||||||
|
|
||||||
|
#define ANIM_HOTEND (HOTENDS && ENABLED(STATUS_HOTEND_ANIM))
|
||||||
|
#define ANIM_BED (DO_DRAW_BED && ENABLED(STATUS_BED_ANIM))
|
||||||
|
#define ANIM_CHAMBER (DO_DRAW_CHAMBER && ENABLED(STATUS_CHAMBER_ANIM))
|
||||||
|
#define ANIM_CUTTER (DO_DRAW_CUTTER && ENABLED(STATUS_CUTTER_ANIM))
|
||||||
|
|
||||||
|
#define ANIM_HBCC (ANIM_HOTEND || ANIM_BED || ANIM_CHAMBER || ANIM_CUTTER)
|
||||||
|
|
|
@ -67,20 +67,6 @@
|
||||||
#define EXTRAS_BASELINE (40 + INFO_FONT_ASCENT)
|
#define EXTRAS_BASELINE (40 + INFO_FONT_ASCENT)
|
||||||
#define STATUS_BASELINE (LCD_PIXEL_HEIGHT - INFO_FONT_DESCENT)
|
#define STATUS_BASELINE (LCD_PIXEL_HEIGHT - INFO_FONT_DESCENT)
|
||||||
|
|
||||||
#define DO_DRAW_LOGO (STATUS_LOGO_WIDTH && ENABLED(CUSTOM_STATUS_SCREEN_IMAGE))
|
|
||||||
#define DO_DRAW_HOTENDS (HOTENDS > 0)
|
|
||||||
#define DO_DRAW_CUTTER (HAS_CUTTER)
|
|
||||||
#define DO_DRAW_BED (HAS_HEATED_BED && STATUS_BED_WIDTH && HOTENDS <= 4)
|
|
||||||
#define DO_DRAW_CHAMBER (HAS_TEMP_CHAMBER && STATUS_CHAMBER_WIDTH && HOTENDS <= 4)
|
|
||||||
#define DO_DRAW_FAN (HAS_FAN0 && STATUS_FAN_WIDTH && HOTENDS <= 4 && defined(STATUS_FAN_FRAMES))
|
|
||||||
|
|
||||||
#define ANIM_HOTEND (HOTENDS && ENABLED(STATUS_HOTEND_ANIM))
|
|
||||||
#define ANIM_BED (DO_DRAW_BED && ENABLED(STATUS_BED_ANIM))
|
|
||||||
#define ANIM_CHAMBER (DO_DRAW_CHAMBER && ENABLED(STATUS_CHAMBER_ANIM))
|
|
||||||
#define ANIM_CUTTER (DO_DRAW_CUTTER && ENABLED(STATUS_CUTTER_ANIM))
|
|
||||||
|
|
||||||
#define ANIM_HBCC (ANIM_HOTEND || ANIM_BED || ANIM_CHAMBER || ANIM_CUTTER)
|
|
||||||
|
|
||||||
#if ANIM_HBCC
|
#if ANIM_HBCC
|
||||||
enum HeatBits : uint8_t {
|
enum HeatBits : uint8_t {
|
||||||
HEATBIT_HOTEND,
|
HEATBIT_HOTEND,
|
||||||
|
@ -90,6 +76,7 @@
|
||||||
};
|
};
|
||||||
IF<(HEATBIT_CUTTER > 7), uint16_t, uint8_t>::type heat_bits;
|
IF<(HEATBIT_CUTTER > 7), uint16_t, uint8_t>::type heat_bits;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ANIM_HOTEND
|
#if ANIM_HOTEND
|
||||||
#define HOTEND_ALT(N) TEST(heat_bits, HEATBIT_HOTEND + N)
|
#define HOTEND_ALT(N) TEST(heat_bits, HEATBIT_HOTEND + N)
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue