2014-04-11 02: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-clue2014-04-28 05: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.2014-04-28 05:17 PM
Can you display white properly in your LCD ?
I will check tomorrow, but pretty sure it does.2014-04-28 06: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;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...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
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 ?
2014-04-29 12:55 AM
2014-04-29 12:57 AM
or
if (rgb == 0xFFFF) rgb = 0xFFFD; works allright..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.2014-04-29 02: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.