Merge branch 'Development' into optimize_menu_code
Get upstream changes
This commit is contained in:
@ -32,7 +32,7 @@
|
||||
|
||||
#include <U8glib.h>
|
||||
#include "DOGMbitmaps.h"
|
||||
#include "dogm_font_data_marlin.h"
|
||||
#include "dogm_font_data_ISO10646_1_Marlin.h"
|
||||
#include "ultralcd.h"
|
||||
#include "ultralcd_st7920_u8glib_rrd.h"
|
||||
|
||||
@ -48,8 +48,7 @@
|
||||
*/
|
||||
|
||||
#define USE_BIG_EDIT_FONT // save 3120 bytes of PROGMEM by commenting out this line
|
||||
#define FONT_STATUSMENU u8g_font_6x9
|
||||
#define FONT_MENU u8g_font_6x10_marlin
|
||||
#define FONT_MENU ISO10646_1_Marlin_5x7
|
||||
|
||||
// DOGM parameters (size in pixels)
|
||||
#define DOG_CHAR_WIDTH 6
|
||||
@ -60,12 +59,14 @@
|
||||
#define DOG_CHAR_HEIGHT_EDIT 18
|
||||
#define LCD_WIDTH_EDIT 14
|
||||
#else
|
||||
#define FONT_MENU_EDIT u8g_font_6x10_marlin
|
||||
#define FONT_MENU_EDIT ISO10646_1_Marlin_5x7
|
||||
#define DOG_CHAR_WIDTH_EDIT 6
|
||||
#define DOG_CHAR_HEIGHT_EDIT 12
|
||||
#define LCD_WIDTH_EDIT 22
|
||||
#endif
|
||||
|
||||
#define FONT_STATUSMENU FONT_MENU
|
||||
|
||||
#define START_ROW 0
|
||||
|
||||
/* Custom characters defined in font font_6x10_marlin.c */
|
||||
@ -153,10 +154,10 @@ static void _draw_heater_status(int x, int heater) {
|
||||
bool isBed = heater < 0;
|
||||
int y = 17 + (isBed ? 1 : 0);
|
||||
u8g.setFont(FONT_STATUSMENU);
|
||||
u8g.setPrintPos(x,6);
|
||||
u8g.setPrintPos(x,7);
|
||||
u8g.print(itostr3(int((heater >= 0 ? degTargetHotend(heater) : degTargetBed()) + 0.5)));
|
||||
lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
|
||||
u8g.setPrintPos(x,27);
|
||||
u8g.setPrintPos(x,28);
|
||||
u8g.print(itostr3(int(heater >= 0 ? degHotend(heater) : degBed()) + 0.5));
|
||||
lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
|
||||
if (!isHeatingHotend(0)) {
|
||||
|
Reference in New Issue
Block a user