We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aabac9 commit 6e7f7e6Copy full SHA for 6e7f7e6
cores/arduino/wiring_pulse.h
@@ -30,7 +30,10 @@
30
* before the start of the pulse. The pulseIn() function is not designed to detect
31
* high frequencies. The consequences of using this function to detect frequencies
32
* such as a 100KHz PWM signal could possibly cause a sketch to hang at the
33
- * pulseIn() function call.
+ * pulseIn() function call. There is the chance a pin using pulseIn() could get
34
+ * into a floating voltage state causing the hanging issue. This should be prevented
35
+ * by using a pullup or pulldown resistor. pinMode(pin, INPUT_PULLUP) could also
36
+ * be used to keep this from happening.
37
*/
38
extern uint32_t pulseIn( uint32_t ulPin, uint32_t ulState, uint32_t ulTimeout = 1000000UL ) ;
39
0 commit comments