LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 2:36

All times are UTC + 2 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Jun 08, 2005 18:50 
Offline

Joined: Wed Jun 08, 2005 18:14
Posts: 2
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group