Decoding bmp ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-11 2:21 AM
Guys,
Does anyone of you have experience on decoding bmp ? I want to display bmp file to my LCD... Any clues ? thanks #i-have-a-clue- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-28 5:13 PM
Pretty sure the printf() there isn't appropriate.
Yes, start by filling the panel with colour, and confirm those actually work, or if the colour is wrong.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
‎2014-04-28 5:17 PM
Can you display white properly in your LCD ?
I will check tomorrow, but pretty sure it does.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
‎2014-04-28 6:03 PM
The SSD1289 has a Transparency bit in Register 0x11, but it's application with respect to the data stream is not discussed further.
You could presumably do a testif (rgb == 0xFFFF) rgb = 0xFFFE;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
‎2014-04-28 11:43 PM
Like this :
if (rgb == 0xFFFF) rgb = 0xFFFE; rgb = ((rgb & 0xF80000) >> 8) | ((rgb & 0x00FC00) >> 5) | ((rgb & 0x0000F8) >> 3); LCD_SetPoint(y/3, x/3, rgb); I got no response, still dot dot white on the screen...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-29 12:18 AM
No like this, do you have no sense of logic and sequence?
rgb = ((rgb & 0xF80000) >> 8) | ((rgb & 0x00FC00) >> 5) | ((rgb & 0x0000F8) >> 3); // convert to colour space of display
if (rgb == 0xFFFF) rgb = 0xFFFE; // address transparent/white issue
LCD_SetPoint(y/3, x/3, rgb); // paint dot on screen
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
‎2014-04-29 12:52 AM
it's changing to FFFE but not in a solid LCD, there are some black spots on LCD...why is it ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-29 12:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-29 12:57 AM
or
if (rgb == 0xFFFF) rgb = 0xFFFD; works allright..- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-04-29 12:07 PM
You are asking me questions about a board and screen that I don't have, and cannot independently verify/test.
It is possible that x/3 or y/3 exceed the dimensions of the display.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
‎2014-04-29 2:08 PM
The SSD1298 on the STM32F407 does appear to display the primary colours properly, and doesn't have issues with transparent/clear 0xFFFF. Painted the Blue/White flag without issue.
Up vote any posts that you find helpful, it shows what's working..
