Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cores/arduino/wiring_pulse.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
* before the start of the pulse. The pulseIn() function is not designed to detect
* high frequencies. The consequences of using this function to detect frequencies
* such as a 100KHz PWM signal could possibly cause a sketch to hang at the
* pulseIn() function call.
* pulseIn() function call. There is the chance a pin using pulseIn() could get
* into a floating voltage state causing the hanging issue. This should be prevented
* by using a pullup or pulldown resistor. pinMode(pin, INPUT_PULLUP) could also
* be used to keep this from happening.
*/
extern uint32_t pulseIn( uint32_t ulPin, uint32_t ulState, uint32_t ulTimeout = 1000000UL ) ;

Expand Down