chipKIT® Development Platform

Inspired by Arduino™

HELP! please

Created Tue, 03 Apr 2012 02:55:04 +0000 by kikiandcoco


kikiandcoco

Tue, 03 Apr 2012 02:55:04 +0000

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


Addidis

Wed, 04 Apr 2012 02:24:07 +0000

The lib uses direct port manipulation it needs to be ported to chipkit.

For instance in colorlcdshield.cpp

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.


kikiandcoco

Wed, 04 Apr 2012 03:33:11 +0000

I tried changing the data inside, but i'm still unable to project the image and i'm stuck for quite some time.


Addidis

Wed, 04 Apr 2012 19:15:29 +0000

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-shield-for-arduino-65k-color-k65.html

Here is the lib for it http://www.henningkarlsen.com/electronics/library.php?id=8 And another option for a lib http://iteadstudio.com/notification/utft-library-compatible-with-most-of-itdb02-series-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.