while(potValue==0x00)
{
sprintf(string," 16 ");
LCD_Line2(string);
low_byte=adc_convert();
potValue=low_byte&myValue;
}
while(potValue==0x10)
{
sprintf(string," 17 ");
LCD_Line2(string);
low_byte=adc_convert();
potValue=low_byte&myValue;
}
while(potValue==0x20)
{
sprintf(string," 18 ");
LCD_Line2(string);
low_byte=adc_convert();
potValue=low_byte&myValue;
}
while(potValue==0x30)
{
sprintf(string," 19 ");
LCD_Line2(string);
low_byte=adc_convert();
potValue=low_byte&myValue;
}
while(potValue==0x40)
{
sprintf(string," 20 ");
LCD_Line2(string);
low_byte=adc_convert();
potValue=low_byte&myValue;
}
while(potValue==0x50)
{
sprintf(string," 21 ");