My confusion is maybe over the way getDuration works. Does it delay 5ms before looking for the pulse or does it look immediately? I put 555 timer on the input pin and set it up for 3.15hz and 25.4% duty cycle or an 80.6ms pulse every 317.4ms. I called getDuration roughly every 100ms. It did not block and returned the same value several times before the next pulse occurred(not what I expected).
Looked at the Arduino approach to using the PING and they use just one pin, changing from output after sending a pulse to ping to an input for their get duration call. Since they don't impose a 5ms delay, they get the duration of the return pulse. Thanks for you help on this. Duane -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
