WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

pulseIn

Measure the duration of an incoming pulse in µS.
Syntax
Pin. pulseIn(activeHigh)
Where Pin is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'activeHigh'
TRUE if the pulse is __|-----|___ or FALSE if it is ---|___|---
Returns
TICK_COUNT
Note
This will ensure that the pin is set as an input pin.

 

 

Valid XHTML 1.0 Transitional