ts-7000
[Top] [All Lists]

Re: [ts-7000] Ts7Kv - Frame Buffer display

To: <>
Subject: Re: [ts-7000] Ts7Kv - Frame Buffer display
From: "Charlie Wallace" <>
Date: Fri, 15 Feb 2008 11:06:57 -0800
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.
 
 
 
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU