Browse Source

Remove 6x9 font

in dogm_lcd_implementation.h
by using standard font and
shifting down temperature displays by one pixel
Saves 2300 bytes.
AnHardt 10 years ago
parent
commit
e6cb8ee188
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Marlin/dogm_lcd_implementation.h

+ 4
- 3
Marlin/dogm_lcd_implementation.h View File

48
 */
48
 */
49
 
49
 
50
 #define USE_BIG_EDIT_FONT                // save 3120 bytes of PROGMEM by commenting out this line
50
 #define USE_BIG_EDIT_FONT                // save 3120 bytes of PROGMEM by commenting out this line
51
-#define FONT_STATUSMENU u8g_font_6x9
52
 #define FONT_MENU u8g_font_6x10_marlin
51
 #define FONT_MENU u8g_font_6x10_marlin
53
 
52
 
54
 // DOGM parameters (size in pixels)
53
 // DOGM parameters (size in pixels)
66
   #define LCD_WIDTH_EDIT       22
65
   #define LCD_WIDTH_EDIT       22
67
 #endif
66
 #endif
68
 
67
 
68
+#define FONT_STATUSMENU FONT_MENU
69
+
69
 #define START_ROW              0
70
 #define START_ROW              0
70
 
71
 
71
 /* Custom characters defined in font font_6x10_marlin.c */
72
 /* Custom characters defined in font font_6x10_marlin.c */
153
   bool isBed = heater < 0;
154
   bool isBed = heater < 0;
154
   int y = 17 + (isBed ? 1 : 0);
155
   int y = 17 + (isBed ? 1 : 0);
155
   u8g.setFont(FONT_STATUSMENU);
156
   u8g.setFont(FONT_STATUSMENU);
156
-  u8g.setPrintPos(x,6);
157
+  u8g.setPrintPos(x,7);
157
   u8g.print(itostr3(int((heater >= 0 ? degTargetHotend(heater) : degTargetBed()) + 0.5)));
158
   u8g.print(itostr3(int((heater >= 0 ? degTargetHotend(heater) : degTargetBed()) + 0.5)));
158
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
159
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
159
-  u8g.setPrintPos(x,27);
160
+  u8g.setPrintPos(x,28);
160
   u8g.print(itostr3(int(heater >= 0 ? degHotend(heater) : degBed()) + 0.5));
161
   u8g.print(itostr3(int(heater >= 0 ? degHotend(heater) : degBed()) + 0.5));
161
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
162
   lcd_printPGM(PSTR(LCD_STR_DEGREE " "));
162
   if (!isHeatingHotend(0)) {
163
   if (!isHeatingHotend(0)) {

Loading…
Cancel
Save