U8g2: Clear Display

Created on 4 Jun 2019  路  6Comments  路  Source: olikraus/u8g2

I want to clear the display to type new commands after the preview screen.
Is there a direct command to clear the lcd?

Most helpful comment

Full buffer mode: u8g2.clear() will work, but u8g2.clearBuffer() might be sufficient
Page buffer mode: display is automatically cleared once you enter the loop again.

Basically u8g2.clear() will clear the screend independently from the mode, but may take some extra time.

All 6 comments

Full buffer mode: u8g2.clear() will work, but u8g2.clearBuffer() might be sufficient
Page buffer mode: display is automatically cleared once you enter the loop again.

Basically u8g2.clear() will clear the screend independently from the mode, but may take some extra time.

will this work also in the old library u8g?

U8g only supports page buffer mode. An empty page loop will clear the screen.

I see.
Thank you for your instant support :D

:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

walenw picture walenw  路  8Comments

benjaminauer picture benjaminauer  路  6Comments

Audio-Rochey picture Audio-Rochey  路  4Comments

Robiv8 picture Robiv8  路  5Comments

WaRZaT picture WaRZaT  路  3Comments