Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void busqueda(void){
- while(input(sensorDEL)==1 & input(sensorTRA)==1 ){
- delay_us(600);
- setup_ccp1(CCP_OFF);
- output_low(PIN_C2);
- delay_us(600);
- setup_ccp1(CCP_PWM);
- delay_us(30);
- if(input(PIN_C0)==0){
- hacia_adelante();
- }
- else{
- hacia_izquierda();
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement