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!
