Go Down

Topic: Missing pulse detector misses pulse! (Read 2 times) previous topic - next topic

bens

I take back my previous statement, then.  Where is the two-argument version of pulseIn() defined?  I can't find it in the wiring files...

- Ben

mem

#11
Jun 15, 2008, 08:32 am Last Edit: Jun 15, 2008, 08:33 am by mem Reason: 1
the two-argument version of pulseIn() is defined in WProgram.h

unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L);

bens

Ah, thanks.  I was seeing the pulseIn() prototype in wiring.h and it definitely wasn't giving a default value for timeout!

- Ben

Go Up