| aSRF05Mode2_ReadInt | Index |
Definition:
Parameters:
| trigger | - | The digital pin index used to manipulate the ranger. The digital pin must be connected to a pin capable of pulse width timing measurement. |
Return Value:
Description:
Example:
intVal = aSRF05Mod2_ReadInt(1);
The ranger trigger line is connected to digital pin 1. This would take a reading and set intVal equal to the time required for the ping to be received in 1.6us increments (this is round-trip echo return time).
Related: