It is currently Wed Apr 23, 2014 3:22 pm



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: HELP! please
PostPosted: Tue Apr 03, 2012 3:55 am 
Offline

Joined: Tue Apr 03, 2012 3:49 am
Posts: 4
I'm using the chipkit uno32 and have a Color LCD shield(EPSON). How would i be able to make the color_LCD_library works in the chipkit. I'm getting alot of errors on the Pins. please your help is very much appreciated


Attachments:
File comment: this is the library
ColorLCDShield-11-3-11.zip [15.47 KiB]
Downloaded 54 times
Top
 Profile  
 
 Post subject: Re: HELP! please
PostPosted: Wed Apr 04, 2012 3:24 am 
Offline

Joined: Fri May 27, 2011 7:24 pm
Posts: 45
The lib uses direct port manipulation it needs to be ported to chipkit.


For instance in colorlcdshield.cpp
Code:
LCDShield::LCDShield()
{

#if defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
   DDRB = ((1<<DIO)|(1<<SCK));     //Set DIO and SCK pins on PORTB as outputs
   DDRH = ((1<<CS)|(1<<LCD_RES));  //Set CS and RES pins PORTH as outputs
#else
   DDRB = ((1<<CS)|(1<<DIO)|(1<<SCK)|(1<<LCD_RES));  //Set the control pins as outputs
#endif

   DDRD   =   0x00;
   PORTD   =   0xFF;
}

Those DDRD ddrb DDRH and PORTD are atmel specific registers. Those need to be checked and ported to the MCHP equivalent registers.


Top
 Profile  
 
 Post subject: Re: HELP! please
PostPosted: Wed Apr 04, 2012 4:33 am 
Offline

Joined: Tue Apr 03, 2012 3:49 am
Posts: 4
I tried changing the data inside, but i'm still unable to project the image and i'm stuck for quite some time.


Top
 Profile  
 
 Post subject: Re: HELP! please
PostPosted: Wed Apr 04, 2012 8:15 pm 
Offline

Joined: Fri May 27, 2011 7:24 pm
Posts: 45
I would try to port it for you but I dont have the shield.

There is a shield I have that did work for me from nkc electronics.
http://store.nkcelectronics.com/rgb-lcd ... r-k65.html

Here is the lib for it
http://www.henningkarlsen.com/electroni ... y.php?id=8
And another option for a lib
http://iteadstudio.com/notification/utf ... eries-lcd/

I know it isn't what you were hoping for but this one works already (and is half the price) I was going to try picking up the shield to help you out but 40$ is beyond what I can do now. I just figured I would show you another option in case you just want to get working with something already ported.


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

Who is online

Users browsing this forum: No registered users and 2 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
You cannot post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC [ DST ]