image not displayed on tft screen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-12 10:17 AM
Hello,
I have developt a project with Coocox. It works almoost, there is text displayed on my tft but the image included in the main file is not displayed. What did i do wrong, could someone look into it. thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-12 10:57 AM
Is this for some specific board? Might be important to communicate this.
Perhaps the issue is in the SSD1289 library code? Either the commands, or data transfer, may be flawed. Speak to the people that wrote the library, or designed/provided the hardware.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-12 11:24 AM
Yes this is for the stm32f4 discovery.
I think the code is correct because the text is displayed, so the screen is initialized correct. and output to the screen goes also good. so i have to look into the code- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-12 11:35 AM
Does it paint the text bitmaps locally, and copy them, like the BMP? The transfer size for text element, I'd imagine, is much smaller.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-13 6:54 AM
I guess this could be a bug in your display driver code.
I dealt with some of this displays recently, and realized they use windows rather frequently. Meaning, they restrict the accessible area of the TFT to just the size required for the operation, and dump the data in via writes to consecutive addresses. For text, it uses a 5x7 window (for a 5x7 font). Before drawing a picture, you need to restore the window size to the whole screen. As said, just a guess...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-04-13 12:17 PM
Believe advice given by both Clive and fm is sound - here's how you can test/verify:
a) using simple program such as PC ''Paint'' - create a very small graphic (i.e. 3 vertical bars) which fits w/in a 5x7 pixel area. (5 pixel width) You can create and then save this in either mono or color - I'd start w/mono for simplicity. Unknown then is whether your ''graphic image file to TFT'' converter/program can correctly ''massage out'' this file data. You must better identify - and then comply - with any/all of your system's ''converter/program's'' rules & protocols. Once you've succeeded in displaying this small 5x7 pixel image - gradually expand it - noting if and when the process ''breaks down.'' Armed with this knowledge - you/others will be far better equipped to assist...