Академический Документы
Профессиональный Документы
Культура Документы
// main function
// declare PortA as a input port connected to the sensors
// declare PortB as a output port connected to the
// if both
// if both
// if
}
}
//
}
if((left_sensor==0b00000000) && (right_sensor==0b00100000))
if both sensors "on"
{
PORTB=0b00001001;
}
}
}
//