View Single Post
  #1   Spotlight this post!  
Unread 07-02-2007, 20:25
Nicole_Ypes Nicole_Ypes is offline
Nicole Ypes
FRC #1547 (Waldo)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Waldo!
Posts: 7
Nicole_Ypes is an unknown quantity at this point
Send a message via MSN to Nicole_Ypes
Exclamation Potentiometer Problems

My team is having trouble with our potentiometer. We have all three leads conected and we have tested them for voltage and resistence, and both turned up to be fine. We have checks everything over, but we just can't get the values to print to screen. We are using easyc pro but I typed out the code:

#include "Main.h"

void main( void )
{
unsigned int PotValues;

while (1)
{
PotValues = GetAnalogInput(1);
PrintToScreen("%u\n ,(int)PotValues);
}
}


Can anyone help me here? This just does not seem to be working, We compared this programto those of last years but still has not turned anything up, we also tried using MPLab but still nothing. If anyone can help us out, we would really appreciate it!