From c7cac2f165aa224462a625a892d834fc94938913 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 8 Mar 2008 21:30:00 +0000 Subject: Added timeout (in microseconds) parameter to pulseIn(). Defaults to 1000000 (1 second). --- cores/arduino/WProgram.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cores/arduino/WProgram.h') diff --git a/cores/arduino/WProgram.h b/cores/arduino/WProgram.h index 206cdac..1fba738 100755 --- a/cores/arduino/WProgram.h +++ b/cores/arduino/WProgram.h @@ -10,6 +10,8 @@ #ifdef __cplusplus #include "HardwareSerial.h" +unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L); + // WMath prototypes long random(long); long random(long, long); -- cgit v1.2.3-18-g5258