Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint32_t sensmeas(void) //Mõõdab sensorite vahel liikuva objekti kiirust ms täpsusega.
- {
- uint32_t time;
- time = 0;
- while(BITVAL(PIND,PD6) == 0)
- while(BITVAL(PIND,PD5) == 0)
- {
- time++;
- _delay_us(1);
- }
- return(time);
- }
Add Comment
Please, Sign In to add comment