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 CCS Technical Support

RGB/Accelerometer help.

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



Joined: 14 Jun 2008
Posts: 2

View user's profile Send private message

RGB/Accelerometer help.
PostPosted: Sat Jun 14, 2008 7:37 pm     Reply with quote

Hi guys,

I am trying to integrate an accelerometer with a 12F683 as well as an RGB LED.

The projects outcome is when the accelerometer is twisted on an axis (say x between 0-360 degrees) the RGB LED changes color in accordance with the accelerometer from all colors of the spectrum.

I have located the cheapest accelerometer for the project (I am assuming this is the cheapest and fairly easy to use):

http://www.sparkfun.com/commerce/product_info.php?products_id=8658

My first question is since I have struggled to find any information on this topic is how to change the RGB LED from say blue all the way to red? Must I use a PIC with 3 CCPs?

Can you guys suggest any thing to help me?

Mannie.
mannie1



Joined: 14 Jun 2008
Posts: 2

View user's profile Send private message

PostPosted: Sun Jun 15, 2008 7:44 pm     Reply with quote

Can anyone help me with the RGB LED side of things?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 15, 2008 8:17 pm     Reply with quote

There is a routine in the Code Library for this:
http://www.ccsinfo.com/forum/viewtopic.php?t=30139&highlight=red+green+blue
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