wangchong / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

tpictureloop: update with "behavior" section #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
above "restrictions"

void loop(void) {
  // picture loop

  setFont()  // << will be valid as long as no other font is set

  u8g.firstPage();  
  do {
    draw();
  } while( u8g.nextPage() );

  // rebuild the picture after some delay
  delay(1000);
}

void loop(void) {
  // picture loop

  setFont(4x6)  // << will be valid as long as no other font is set

  u8g.firstPage();  
  do {
    //...   // 4x6 font is only set for the first iteration
  setFont()  // << value will used for the second loop iteration also!!!
    //...
  } while( u8g.nextPage() );

  // rebuild the picture after some delay
  delay(1000);
}

maybe make better example with box and inverted text

Original issue reported on code.google.com by olikr...@gmail.com on 18 Nov 2012 at 11:56

GoogleCodeExporter commented 8 years ago
I think there are now enough comments on this...

Original comment by olikr...@gmail.com on 7 Dec 2012 at 9:58