EmbeddedRelated.com
Forums

MSCG12232.LIB

Started by pcvisagie November 9, 2004

I use the MSCG12232.LIB to control a powertip PG12232 display. The
problem is that display data is y flipped. The function _glData
return the display data from the display memory. EXAMPLE:
-------
Graphic Buffer...horizonal format pixel (x,y) 2,0 is at
location glBuf[0] with bit 5
set.
00100000
TRANSLATES TO:
LCD Display......vertical
format pixel (x,y) 2,0 is at
location LCD[2] bit 0 set.
0010
0000
0000
0000
0000
0000
0000
0000

I need help to change the output to:
0000
0000
0000
0000
0000
0000
0000
0010
Regards,
Ian



--- In rabbit-semi@rabb..., "pcvisagie" <pcvisagie@y...>
wrote:
>
> I use the MSCG12232.LIB to control a powertip PG12232 display. The
> problem is that display data is y flipped. The function _glData
> return the display data from the display memory. EXAMPLE:
> -------
> Graphic Buffer...horizonal format pixel (x,y) 2,0 is at
> location glBuf[0] with bit 5
> set.
> 00100000
> TRANSLATES TO:
> LCD Display......vertical
> format pixel (x,y) 2,0 is at
> location LCD[2] bit 0 set.
> 0010
> 0000
> 0000
> 0000
> 0000
> 0000
> 0000
> 0000
>
> I need help to change the output to:
> 0000
> 0000
> 0000
> 0000
> 0000
> 0000
> 0000
> 0010
> Regards,
> Ian

You may wish to look at glSwap--I don't know if this function is
always called to update the LCD, but if it is, you may modify a
system library to re-route it through your function that sends the
bytes out reversed.