瀏覽代碼

FIX: Speedup - no explicit display clear needed in u8glib

MaikStohn 11 年之前
父節點
當前提交
7ac6d7f78e
共有 1 個檔案被更改,包括 10 行新增6 行删除
  1. 10
    6
      Marlin/dogm_lcd_implementation.h

+ 10
- 6
Marlin/dogm_lcd_implementation.h 查看文件

@@ -121,12 +121,16 @@ static void lcd_implementation_init()
121 121
 
122 122
 static void lcd_implementation_clear()
123 123
 {
124
-	u8g.firstPage();
125
-	do {	
126
-			u8g.setColorIndex(0);
127
-			u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight());
128
-			u8g.setColorIndex(1);
129
-		} while( u8g.nextPage() );
124
+// NO NEED TO IMPLEMENT LIKE SO. Picture loop automatically clears the display.
125
+//
126
+// Check this article: http://arduino.cc/forum/index.php?topic=91395.25;wap2
127
+//
128
+//	u8g.firstPage();
129
+//	do {	
130
+//			u8g.setColorIndex(0);
131
+//			u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight());
132
+//			u8g.setColorIndex(1);
133
+//		} while( u8g.nextPage() );
130 134
 }
131 135
 
132 136
 /* Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own */

Loading…
取消
儲存