Bläddra i källkod

FIX: Speedup - no explicit display clear needed in u8glib

MaikStohn 11 år sedan
förälder
incheckning
7ac6d7f78e
1 ändrade filer med 10 tillägg och 6 borttagningar
  1. 10
    6
      Marlin/dogm_lcd_implementation.h

+ 10
- 6
Marlin/dogm_lcd_implementation.h Visa fil

@@ -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 */

Laddar…
Avbryt
Spara