LCDInfo.com
http://forum.lcdinfo.com/

T6963C: Having issues using fastlcd to display bitmap images
http://forum.lcdinfo.com/viewtopic.php?f=9&t=1223
Page 1 of 1

Author:  CMAN101 [ Wed Jun 08, 2005 18:50 ]
Post subject:  T6963C: Having issues using fastlcd to display bitmap images

Hi I've been having trouble displaying graphic images on my 240x128 lcd. Now my lcd is setup as follows:

Texthome 0x0000
Graphichome 0x0300
Displaymode 0x80

Now I have been able to display text without issue so far, but whenever I use fastlcd and save the bitmap to image array with font pin 6x8, and then load the hex into the microcontroller I get nothing on the lcd.

Here is the routine used to send the bitmap data to the T6963C controller:

void lcd_graphic(char *gdata) // send gdata to lcd
{
char ginfo
lcd_clear_graph();
dput(0x00);
dput(0x03);
cput(0x24);

while (ginfo = *gdata)
{
dput(ginfo);
cput(0xc0);
*gdata++; //*gdata points to the 5120 byte array
}
}
main:

void main(void)
{
mcu_init(); /* Initialize MCU */
ENABLE_LEDS;
lcd_setup(); // make sure control lines are at correct levels
lcd_init(); // initialize LCD memory and display modes
lcd_graphic(image); //image is the array of bitmap
while(1){}
}
most of the code if anyone has notice is from the CSOURCE for Dos from the website, by John P. Beale.

Can anyone help?


Just noticed something, Do i have to set the address pointer back to the graphic home address, after I finish transferring all the data?

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/