We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaaf3db commit 458e82fCopy full SHA for 458e82f
cores/arduino/wiring_pulse.h
@@ -27,7 +27,10 @@
27
* \brief Measures the length (in microseconds) of a pulse on the pin; state is HIGH
28
* or LOW, the type of pulse to measure. Works on pulses from 2-3 microseconds
29
* to 5 minutes in length, but must be called at least a few dozen microseconds
30
- * before the start of the pulse.
+ * 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.
34
*/
35
extern uint32_t pulseIn( uint32_t ulPin, uint32_t ulState, uint32_t ulTimeout = 1000000UL ) ;
36
0 commit comments