Skip to content

Commit 6a20121

Browse files
authored
Update pulseIn.adoc
Ammendment that picked up that if the optional parameter is used code operates faster.
1 parent 7ddbe22 commit 6a20121

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)