Advertisement
tmax

Untitled

Aug 22nd, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. void busqueda(void){
  2.    while(input(sensorDEL)==1 & input(sensorTRA)==1 ){
  3.       delay_us(600);
  4.       setup_ccp1(CCP_OFF);
  5.       output_low(PIN_C2);
  6.       delay_us(600);
  7.       setup_ccp1(CCP_PWM);    
  8.       delay_us(30);    
  9.       if(input(PIN_C0)==0){
  10.          hacia_adelante();
  11.       }
  12.       else{
  13.          hacia_izquierda();
  14.          break;
  15.       }      
  16.    }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement