CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

LCD with any pins

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
moothz



Joined: 09 Sep 2011
Posts: 8

View user's profile Send private message

LCD with any pins
PostPosted: Fri Sep 09, 2011 6:26 am     Reply with quote

Hello there!

I developing a software using the Pic MINI web from Olimex. I want to connect a LCD to it.

The LCD.h and XLCD.h codes use an entire port for it and I don't have this entire port.

The pins I have left are:

A1, A2, A3, A4, A5, B1, C0, C1, C6, and C7

I need to know how to use those pins for the LCD instead of B0,B1,B2.. or C0, C1, C2, etc.

THanks in advance
temtronic



Joined: 01 Jul 2010
Posts: 9163
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Sep 09, 2011 8:04 am     Reply with quote

Use the 'flex_lcd.c' driver....
It may be in the examples folder, or available in the 'code library' here.
moothz



Joined: 09 Sep 2011
Posts: 8

View user's profile Send private message

PostPosted: Fri Sep 09, 2011 8:15 am     Reply with quote

Thank you, sir!

Thank you very much!

Quick question:

Can I still use
printf(lcd_putc, "hello");

With this code?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Sep 09, 2011 2:50 pm     Reply with quote

The flex driver has the lcd_putc() function, so yes you can do it.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group