Hej Iganzio,
we haven't implemented that function yet. However there are a couple of easy roundabouts, I will mention the easiest one that we use with the Memsic2125:
val = digitalRead(Signal); // Append signal value to val
while(val == LOW) { // Loop until pin reads a high value
val = digitalRead(Signal);
}
while(val == HIGH) { // Loop until pin reads a high value
val = digitalRead(Signal);
timecount = timecount +1; // Count echo pulse time
}
This code snippet will listen to a HIGH pulse.
Which accelerometer are you using?
/David