Guest User

Untitled

a guest
May 28th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. uint32_t sensmeas(void) //Mõõdab sensorite vahel liikuva objekti kiirust ms täpsusega.
  2. {
  3.  
  4. uint32_t time;
  5. time = 0;
  6. while(BITVAL(PIND,PD6) == 0)
  7. while(BITVAL(PIND,PD5) == 0)
  8. {
  9. time++;
  10. _delay_us(1);
  11. }
  12. return(time);
  13. }
Add Comment
Please, Sign In to add comment