Go Down

Topic: pulsein function infinite loop (Read 1 time) previous topic - next topic


pulsein function infinite loop, waiting for a second signal when there is no exit condition, if not it will have been waiting for.


Not sure of your wording and if there is a question there or not. The pulseIn() command can have a optional 3rd argument that defines a time-out period if the desired pulse transition(s) never occur.



Sorry,My english is poor.

I saw it in the file source code. Timeout signal is valid only for the front, in the last loop is not out of the code.
I have modified code have been found, but it does not seem accurate at the time.

(arduino v21 for windows,source code in file 'hardware/arduino/cores/arduino/wiring_pulse.c')


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131