FIX: Speedup - no explicit display clear needed in u8glib
This commit is contained in:
parent
13596e8722
commit
7ac6d7f78e
1 changed files with 10 additions and 6 deletions
|
@ -121,12 +121,16 @@ static void lcd_implementation_init()
|
||||||
|
|
||||||
static void lcd_implementation_clear()
|
static void lcd_implementation_clear()
|
||||||
{
|
{
|
||||||
u8g.firstPage();
|
// NO NEED TO IMPLEMENT LIKE SO. Picture loop automatically clears the display.
|
||||||
do {
|
//
|
||||||
u8g.setColorIndex(0);
|
// Check this article: http://arduino.cc/forum/index.php?topic=91395.25;wap2
|
||||||
u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight());
|
//
|
||||||
u8g.setColorIndex(1);
|
// u8g.firstPage();
|
||||||
} while( u8g.nextPage() );
|
// do {
|
||||||
|
// u8g.setColorIndex(0);
|
||||||
|
// u8g.drawBox (0, 0, u8g.getWidth(), u8g.getHeight());
|
||||||
|
// u8g.setColorIndex(1);
|
||||||
|
// } while( u8g.nextPage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own */
|
/* Arduino < 1.0.0 is missing a function to print PROGMEM strings, so we need to implement our own */
|
||||||
|
|
Reference in a new issue