Best guess is that if you can display the logo,
you're not converting to the right format.
go with the simple stuff first, try all white, all
black, all red, then if need be all green, blue, use a fullscreen image first,
then lines or simple frames.
horizontal and vertical lines will tell you if its
stride problem, the solid colours will tell you if its a structure
packing/padding or conversion problem, or just wrong shifts.
so if the white image works, you know your at least
on the right track.
if you make an image thats say 8 pixels of
pure red, then 8 pixels of pure green, then 8 pure blue, do a hexdump of it
into a file and send it to the group as text, keep it small, then we can see if
its converting correctly.
since its 565 RGB a white image would should be
where 0x1f is 5 bits
where 0x3f is 6 bits
white 0xFFFF,0xFFFF,0xFFFF,0xFFFF etc or (
0x1f << 5+6 ) + ( 0x3f << 5 ) + ( 0x1F )
red would be 0xF800,0xF800,0xF800 etc or ( 0x1f
<< 5+6 ) + ( 0x0 << 5 ) + ( 0x0 )
green 0x7e0,0x7e0,0x7e0 etc or ( 0x0 <<
5+6 ) + ( 0x3f << 5 ) + ( 0x0 )
blue 0x01F, 0x01F, etc or ( 0x0 << 5+6 )
+ ( 0x0 << 5 ) + ( 0x1f )
black 0,0,0,0
I wrote the long versions out because its early for
me , and i'm still only 1/4 of the way through my coffee.
|