Skip to content

Commit 355788a

Browse files
authored
Merge pull request arduino#733 from AndyDHill/patch-1
Update pulseIn.adoc
2 parents aa6751c + 6a20121 commit 355788a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Language/Functions/Advanced IO/pulseIn.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ subCategories: [ "Advanced I/O" ]
2020
Reads a pulse (either `HIGH` or `LOW`) on a pin. For example, if `value` is `HIGH`, `pulseIn()` waits for the pin to go from `LOW` to `HIGH`, starts timing, then waits for the pin to go `LOW` and stops timing. Returns the length of the pulse in microseconds or gives up and returns 0 if no complete pulse was received within the timeout.
2121

2222
The timing of this function has been determined empirically and will probably show errors in longer pulses. Works on pulses from 10 microseconds to 3 minutes in length.
23+
24+
NOTE: if the optional timeout is used code will execute faster.
2325
[%hardbreaks]
2426

2527

0 commit comments

Comments
 (0)