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.

MSP430F5659: Graphics Library Support

Part Number: MSP430F5659

Hi

I have been using the Grlib functions in a product that has a 480x272 color graphics display using 16 bit color(565) format for 24 bit color.

Two Questions;

1- When I rewrite a string  repeatedly in the same location using either "Graphics_drawString" function or "Graphics_drawStringCentered" I get residue of the previous string still in the screen. In other words, it doesn't completely rewrite over the existing array of the font I'm using. I'm using various fonts from the library such as g_sFontCmss20b, etc. How do I clean that up? Is there a full dot matrix character that I should write first to clear the array before writing the new string or is there a better way?

2- I'm using the Graphics_drawButton  function for touch screen selection buttons. It's kind of boring looking and I'd like to use a button that has a 3D look. I assume the Draw _image Button function is for that. Are there any image buttons available that I can download. I saw one TI picture of a display showing a red raised button with the string 'done' on it somewhere, but I could not find any images that I can download and use? Also, I would need to scale them of course to the button size I need. 

Please help,

Thanks

Jerry

  • Hi Jerry,

    1. It is recommended to refresh the location to be rewirted with background before rewrite.
    2. Any image button is an array in the source code. You can find the image you like from google www.google.com/search and there should be a tool to convert that image to data array.

    Ling
  • Ling,

    Thank you,

    Okay, I can blank the area out first with a filled rectangle. I would think it should be part of the routine if it was ever tested thoroughly.  I guess I can add it myself.

    Regarding the web images of buttons, it's hard to find something usable and all these web sites  want you to buy them. Then you wouldn't know until after you buy if it is usable. as many have borders that would need to be edited out and issues with resizing, etc.  I would think TI as part of their graphics library and support would have some simple 3D button images available!

    Jerry

  • Hi Jerry,

    Sorry that TI doesn't provide that graphics library as I know.
    Maybe you can find some free to use icon online or create it by yourself.
    Thanks.

    LIng

**Attention** This is a public forum