Browse Source

Recover 32 bytes of SRAM in Marlin bootscreen code

pull/1/head
Scott Lahteine 7 years ago
parent
commit
45c74406cf
  1. 19
      Marlin/ultralcd_impl_HD44780.h

19
Marlin/ultralcd_impl_HD44780.h

@ -440,7 +440,7 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
}
void bootscreen() {
byte top_left[8] = {
const static PROGMEM byte corner[4][8] = { {
B00000,
B00000,
B00000,
@ -449,8 +449,7 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
B00010,
B00100,
B00100
};
byte top_right[8] = {
}, {
B00000,
B00000,
B00000,
@ -459,8 +458,7 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
B01100,
B00100,
B00100
};
byte botom_left[8] = {
}, {
B00100,
B00010,
B00001,
@ -469,8 +467,7 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
B00000,
B00000,
B00000
};
byte botom_right[8] = {
}, {
B00100,
B01000,
B10000,
@ -479,11 +476,9 @@ void lcd_printPGM_utf(const char *str, uint8_t n=LCD_WIDTH) {
B00000,
B00000,
B00000
};
lcd.createChar(0, top_left);
lcd.createChar(1, top_right);
lcd.createChar(2, botom_left);
lcd.createChar(3, botom_right);
} };
for (uint8_t i = 0; i < 4; i++)
createChar_P(i, corner[i]);
lcd.clear();

Loading…
Cancel
Save