Shop OBEX P1 Docs P2 Docs Learn Events
Clearing Text on uOLED-128-G1 Display — Parallax Forums

Clearing Text on uOLED-128-G1 Display

MikerocontrollerMikerocontroller Posts: 310
edited 2009-07-22 19:10 in General Discussion
· How do I clear formatted text from the uOLED-128-G1 display?· Right now my only solution is to draw background colored rectangles over the displayed text.··Redrawing the same text in background color·doesen't work·either.· Any suggestions?

Comments

  • DufferDuffer Posts: 374
    edited 2009-07-22 15:15
    I'm assuming that your intent is not to clear the whole screen of text, for which the "E" command would work. If your intent is to clear/erase a previously writtem piece of text, make sure that the Opaque/Transparent mode is set to Opaque using the "O" commnad (the default is Transparent), then just write a string of "spaces" to clear the number of characters you want to get rid of at the location you wish.

    Also, if you're updating an area of text on the screen, using Opaque text makes it possible to "overwrite" existing text without having to erase at all.

    Duffer
  • MikerocontrollerMikerocontroller Posts: 310
    edited 2009-07-22 19:10
    Thank-you, Duffer.· That is the solution I was looking for.
Sign In or Register to comment.