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.

BOOSTXL-K350QVG-S1: How to display a dynamic data at the same co-ordinates on KENTEC K350 TFT

Part Number: BOOSTXL-K350QVG-S1

Hi,

I am using MSP432P401R launchpad and the K350 TFT display Booster Pack. I wish to display a dynamically changing data from ADC on the TFT. But I am bit of confused as How can we change the displayed data or parameter on the TFT by clearing the previous data. Because when I tried doing the same, the fresh data was getting overlaped with the last displayed data. 

Is there any way to clear the data at particular co-ordinates of the TFT display, Instead of clearing the whole screen.

Regards,

Amit K

  • You can write to a sub-window by setting the bounds using registers 0x44-0x46.

    As far as I know the only way to "clear" the screen (or a sub-window) is to write all of the pixels, to e.g. black.
  • Hi Bruce,

    Thank you for your reply. Can you please elaborate "You can write to a sub-window by setting the bounds using registers 0x44-0x46" . I am a newbiee with TFT display.

    Regards,

    Amit K

  • Are you using

    void Graphics_drawString(const Graphics_Context *context, int8_t *string,int32_t length, int32_t x, int32_t y, bool opaque)

    to write your text? You need to set the opaque parameter:

    //! \param opaque is true if the background of each character should be drawn

    //! and false if it should not (leaving the background as is).

    //!

    Docs are your friend, even if you have to dive into the source code. 8^)

    If that does not work:

    Two options, both are hacks:

    First write blanks to the display. (This might not work!)

    Otherwise, just re-send the original string with the text color set to the background color.

  • Hi Keith,
    Thank You for your help. I followed as u said and now all is working fine as desired

**Attention** This is a public forum