aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/WProgram.h
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-03-08 21:30:00 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-03-08 21:30:00 +0000
commitc7cac2f165aa224462a625a892d834fc94938913 (patch)
tree9995ff3aad71215d6fdc6fa95d96a774cdc1ee7a /cores/arduino/WProgram.h
parentf3893aba50116631007060697169b0150fd5caf8 (diff)
Added timeout (in microseconds) parameter to pulseIn(). Defaults to 1000000 (1 second).
Diffstat (limited to 'cores/arduino/WProgram.h')
-rwxr-xr-xcores/arduino/WProgram.h2
1 files changed, 2 insertions, 0 deletions
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);