View Single Post
  #5   Spotlight this post!  
Unread 10-02-2007, 08:41
ScottWalls ScottWalls is offline
Registered User
FRC #0245 (AdamBots)
Team Role: Leadership
 
Join Date: Mar 2006
Rookie Year: 2003
Location: Rochester Hills
Posts: 31
ScottWalls will become famous soon enoughScottWalls will become famous soon enough
Re: Help! Analog Inputs!!

Quote:
Originally Posted by brennerator View Post
So i just printf("Pot %d\r", Get_Analog_Value(rc_ana_in0*)); to display it?
Well, to clarify, you would replace * with the number of the analog input you put the potentiometer into. For example, if you plugged the potentiometer into analog input 1, you would put
Code:
printf("Pot %d\r", Get_Analog_Value(rc_ana_in01));
But you may have already known that.