View Single Post
  #4   Spotlight this post!  
Unread 02-02-2008, 14:22
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: IR Remote Programming

Quote:
Originally Posted by Philz20 View Post
I'm pretty sure you read my post wrong. The IR remote is programmed, but I am talking about the actual code as in C.
If you connected the IR board to digital inputs 1-4, then in the code, you use: rc_dig_in01, rc_dig_in02, rc_dig_in03, rc_dig_in04. If the button that you trained first is pressed, rc_dig_in01 is 1. Otherwise, it's 0. The second button is rc_dig_in02, etc.