Code:
printf ("The pot value is: %d\n", (int) rc_ana_in01);
You need to use:
Code:
unsigned int pot_value;
pot_value = Get_Analog_Value(rc_ana_in01);
printf ("The pot value is: %d\n", (int) pot_value);
Edit: Hey Ken, I'm only a two finger typist. I work on too many different types of keyboards to type the normal way anymore. Those vendors keep moving the keys around, so I have to hunt and peck.