Browse Source

Fix for the PR #4553 (Save bytes for custom chars (Hitachi LCD))

esenapaj 7 years ago
parent
commit
523c7eaa6c
1 changed files with 12 additions and 10 deletions
  1. 12
    10
      Marlin/ultralcd_impl_HD44780.h

+ 12
- 10
Marlin/ultralcd_impl_HD44780.h View File

224
     B10001,
224
     B10001,
225
     B01110
225
     B01110
226
   };
226
   };
227
+  static byte uplevel[8] = {
228
+    B00100,
229
+    B01110,
230
+    B11111,
231
+    B00100,
232
+    B11100,
233
+    B00000,
234
+    B00000,
235
+    B00000
236
+  }; //thanks joris
227
   static byte feedrate[8] = {
237
   static byte feedrate[8] = {
228
     B11100,
238
     B11100,
229
     B10000,
239
     B10000,
252
   lcd.createChar(LCD_STR_CLOCK[0], clock);
262
   lcd.createChar(LCD_STR_CLOCK[0], clock);
253
 
263
 
254
   #if ENABLED(SDSUPPORT)
264
   #if ENABLED(SDSUPPORT)
255
-    static byte uplevel[8] = {
256
-      B00100,
257
-      B01110,
258
-      B11111,
259
-      B00100,
260
-      B11100,
261
-      B00000,
262
-      B00000,
263
-      B00000
264
-    }; //thanks joris
265
     static byte refresh[8] = {
265
     static byte refresh[8] = {
266
       B00000,
266
       B00000,
267
       B00110,
267
       B00110,
330
       lcd.createChar(LCD_STR_FOLDER[0], folder);
330
       lcd.createChar(LCD_STR_FOLDER[0], folder);
331
     #endif
331
     #endif
332
 
332
 
333
+  #else
334
+    lcd.createChar(LCD_STR_UPLEVEL[0], uplevel);
333
   #endif
335
   #endif
334
 }
336
 }
335
 
337
 

Loading…
Cancel
Save