Author Topic: u8g library  (Read 3282 times)

0 Members and 1 Guest are viewing this topic.

Offline ranganatennakoonTopic starter

  • Contributor
  • Posts: 37
  • Country: lk
u8g library
« on: October 31, 2019, 01:36:20 pm »
Does anyone know about U8G library display clear functions :scared:
 https://github.com/olikraus/u8glib/wiki/tmenu
 

Offline jackthomson41

  • Regular Contributor
  • *
  • Posts: 53
  • Country: us
Re: u8g library
« Reply #1 on: November 01, 2019, 12:36:06 am »
There is no clear function in u8g library. You need to overwrite the old screen.

Or you can also set the color index to zero and draw a box the size of the screen.  This clears everything that was displayed.  You must return the color index to one in a separate page and you can go ahead and display something again. TFT LCDs are too difficult to handle that's why I always prefer LCD 16x2.

u8g.setColorIndex(0);
u8g.drawBox(1, 1, 64, 128);
« Last Edit: March 10, 2021, 01:08:57 am by jackthomson41 »
 

Offline ranganatennakoonTopic starter

  • Contributor
  • Posts: 37
  • Country: lk
Re: u8g library
« Reply #2 on: November 01, 2019, 09:12:15 am »
yes i got it thanks !
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf