Quote:
Originally Posted by Bharat Nain
Without using Kevin's code:
Potentiometervalue = Get_Analog_Value(rc_ana_in01);
|
I think Bharat is trying to tell you (and he's right) that it's overkill to use my code to read a potentiometer. Just use his example and it should work. If you really want to use my code, if I remember correctly, Get_ADC_Result() returns an unsigned int, which means you should use %u in your printf() format string, not %d.
-Kevin