From f1a53407e7c99559f9073f11ab91e7b305ec7770 Mon Sep 17 00:00:00 2001 From: Anson Liu Date: Tue, 23 Jan 2024 08:24:49 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20DOGM=20active=20extruder=20indic?= =?UTF-8?q?ator=20(#26152)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/lcd/dogm/status/hotend.h | 8 ++++++++ Marlin/src/lcd/dogm/status_screen_DOGM.cpp | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/Marlin/src/lcd/dogm/status/hotend.h b/Marlin/src/lcd/dogm/status/hotend.h index aac29da451..ae21524ef5 100644 --- a/Marlin/src/lcd/dogm/status/hotend.h +++ b/Marlin/src/lcd/dogm/status/hotend.h @@ -90,6 +90,14 @@ #elif STATUS_HOTEND_BITMAPS > 1 + const unsigned char status_active_extruder_indicator_bmp[] PROGMEM = { + B00110000, + B00011000, + B00001100, + B00011000, + B00110000 + }; + #ifdef STATUS_HOTEND_ANIM const unsigned char status_hotend1_a_bmp[] PROGMEM = { diff --git a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp index 636d10bbe9..5d1a3363fb 100644 --- a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp +++ b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp @@ -323,6 +323,11 @@ FORCE_INLINE void _draw_centered_temp(const celsius_t temp, const uint8_t tx, co } // PAGE_CONTAINS + #if HAS_MULTI_EXTRUDER && DISABLED(SLIM_LCD_MENUS) + if (active_extruder == heater_id) + u8g.drawBitmapP(_MAX(0, STATUS_HOTEND_X(heater_id) - 6), STATUS_HEATERS_Y + 3, 1, 5, status_active_extruder_indicator_bmp); + #endif + #endif // !STATUS_COMBINE_HEATERS if (PAGE_UNDER(7)) {