This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Clearing Text in Stellaris Graphics Library

Hi,

     We are running StarterWare on a AM335x EM to evaluate using LCD's on our platform and would like to know some best practices for displaying/clearing text using the graphics library. We started by using a Canvas and simply drawing text as the output reading (we need at least to numerical readings on the display), then cleared the text by displaying a rectangle box of background color over the old reading and redrawing the new output reading. This works but seems very clunky and there is occasional flicker on the display. It seems like a simple thing to display a number reading and then update it, but we really have not hit on any good examples of this using the graphics library. So are there any opinions/best practices for the best way for displaying a number readout that changes every one to two seconds?

Thanks,

     John C.

  • Hi John Conover,

    I think you can use ulStyle as  CANVAS_STYLE_TEXT_OPAQUE to draw the background

    pixels instead of drawing rectangle of background color.

    For more info, you can refer the below link,

    http://www.ti.com/lit/ug/spmu018o/spmu018o.pdf

    Hope this may help you.