|
Re: Pot Printf Variable
So pretty much I can do
unsigned int sensor1;
sensor1 = Get_Analog_Value( rc_ana_in01 ); /* Assign the analog reading to a variable. */
then in proccess_data_from_master_up we put the
printf("Pot value: %d\r,(int)sensor1);
would that work, and would the top part go into adc.h or adc.c?
__________________
TEAM 1706 2007 Judges Award, St. Louis (For our amazing ability to have bad luck) 2005 Rookie Inspiration Award, St. Louis
|