User manual

68
while(1)
{ readSensor3();
calculateHight();
//display hight
LongToStr(Hight,txt2);
Lcd_Out(2,15, "cm");
Lcd_Out(2,4,txt2);
Lcd_Out(2,1, "Ur Height:");
readSensor();
while (sensor1==0)
{
readSensor();
while (count<20)
{
readSensor();
if(sensor2==0)
{
count=23;
delay_ms(1000);
readSensor();
if((sensor1==0)&&(sensor2==0)){error=1; count1--;
if ((sensor1==1)&&(sensor2==1))continue; }
count1++;
displayLCD(count1);
//display "Out"
Lcd_Out(1,14,"In");
delay_ms(500);
Lcd_Out(1,14," ");
}
else