Browse Source

Add XYZ_NO_FRAME option

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
9a6934874a
  1. 3
      Marlin/Configuration_adv.h
  2. 16
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp
  3. 1
      Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
  4. 1
      Marlin/src/pins/ramps/pins_RAMPS_13.h
  5. 1
      Marlin/src/pins/sam/pins_RAMPS4DUE.h
  6. 1
      Marlin/src/pins/sam/pins_RAMPS_DUO.h
  7. 1
      Marlin/src/pins/sam/pins_RAMPS_SMART.h

3
Marlin/Configuration_adv.h

@ -1259,7 +1259,8 @@
// Show SD percentage next to the progress bar
//#define DOGM_SD_PERCENT
// Enable to save many cycles by drawing a hollow frame on the Info Screen
// Save many cycles by drawing a hollow frame or no frame on the Info Screen
//#define XYZ_NO_FRAME
#define XYZ_HOLLOW_FRAME
// Enable to save many cycles by drawing a hollow frame on Menu Screens

16
Marlin/src/lcd/dogm/status_screen_DOGM.cpp

@ -104,6 +104,7 @@
#endif
#define PROGRESS_BAR_X 54
#define PROGRESS_BAR_Y (EXTRAS_BASELINE + 2)
#define PROGRESS_BAR_WIDTH (LCD_PIXEL_WIDTH - PROGRESS_BAR_X)
FORCE_INLINE void _draw_centered_temp(const int16_t temp, const uint8_t tx, const uint8_t ty) {
@ -597,7 +598,7 @@ void MarlinUI::draw_status_screen() {
//
if (PAGE_CONTAINS(49, 52))
u8g.drawFrame(PROGRESS_BAR_X, 49, PROGRESS_BAR_WIDTH, 4);
u8g.drawFrame(PROGRESS_BAR_X, PROGRESS_BAR_Y, PROGRESS_BAR_WIDTH, 4);
//
// Progress bar solid part
@ -638,7 +639,7 @@ void MarlinUI::draw_status_screen() {
#if ENABLED(DOGM_SD_PERCENT)
if (progress_string[0]) {
lcd_put_u8str(55, 48, progress_string); // Percent complete
lcd_put_u8str(55, EXTRAS_BASELINE, progress_string); // Percent complete
lcd_put_wchar('%');
}
#endif
@ -665,7 +666,7 @@ void MarlinUI::draw_status_screen() {
// XYZ Coordinates
//
#if ENABLED(XYZ_HOLLOW_FRAME)
#if EITHER(XYZ_NO_FRAME, XYZ_HOLLOW_FRAME)
#define XYZ_FRAME_TOP 29
#define XYZ_FRAME_HEIGHT INFO_FONT_ASCENT + 3
#else
@ -675,15 +676,17 @@ void MarlinUI::draw_status_screen() {
if (PAGE_CONTAINS(XYZ_FRAME_TOP, XYZ_FRAME_TOP + XYZ_FRAME_HEIGHT - 1)) {
#if DISABLED(XYZ_NO_FRAME)
#if ENABLED(XYZ_HOLLOW_FRAME)
u8g.drawFrame(0, XYZ_FRAME_TOP, LCD_PIXEL_WIDTH, XYZ_FRAME_HEIGHT); // 8: 29-40 7: 29-39
#else
u8g.drawBox(0, XYZ_FRAME_TOP, LCD_PIXEL_WIDTH, XYZ_FRAME_HEIGHT); // 8: 30-39 7: 30-37
#endif
#endif
if (PAGE_CONTAINS(XYZ_BASELINE - (INFO_FONT_ASCENT - 1), XYZ_BASELINE)) {
#if DISABLED(XYZ_HOLLOW_FRAME)
#if NONE(XYZ_NO_FRAME, XYZ_HOLLOW_FRAME)
u8g.setColorIndex(0); // white on black
#endif
@ -722,7 +725,7 @@ void MarlinUI::draw_status_screen() {
_draw_axis_value(Z_AXIS, zstring, blink);
#if DISABLED(XYZ_HOLLOW_FRAME)
#if NONE(XYZ_NO_FRAME, XYZ_HOLLOW_FRAME)
u8g.setColorIndex(1); // black on white
#endif
}
@ -770,9 +773,10 @@ void MarlinUI::draw_status_screen() {
lcd_put_wchar(':');
lcd_put_u8str(mstring);
lcd_put_wchar('%');
return;
}
else
#endif
draw_status_message(blink);
}
}

1
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h

@ -26,7 +26,6 @@
//
// Limit Switches
//
#define X_MIN_PIN P1_29
#define X_MAX_PIN P1_28
#define Y_MIN_PIN P1_27

1
Marlin/src/pins/ramps/pins_RAMPS_13.h

@ -39,4 +39,5 @@
#endif
#define IS_RAMPS_13
#include "pins_RAMPS.h"

1
Marlin/src/pins/sam/pins_RAMPS4DUE.h

@ -44,6 +44,7 @@
#endif
#define BOARD_INFO_NAME "RAMPS4DUE"
#define IS_RAMPS4DUE
//

1
Marlin/src/pins/sam/pins_RAMPS_DUO.h

@ -50,6 +50,7 @@
#define BOARD_INFO_NAME "RAMPS Duo"
#define IS_RAMPS_DUO
#include "../ramps/pins_RAMPS.h"
//

1
Marlin/src/pins/sam/pins_RAMPS_SMART.h

@ -65,7 +65,6 @@
#endif
#define BOARD_INFO_NAME "RAMPS-SMART"
#define IS_RAMPS_SMART
#include "../ramps/pins_RAMPS.h"

Loading…
Cancel
Save