Another basic question:
what’s the best way to read the Parallax ultrasonic sensor?
The sensor has one pin that is initialized by a 2-5ms high pulse, and the sensor returns a highg pulse equal in length to the tieme take by the ping.
I imagine the idea would be something like this:
Set port high for the init time. Change port to edge triggered input. Start some sort of timer on the high edge, stop on low the low edge and convert time to distance.
Would this work? Is there a stopwatch enywhere in the NETMF? Are there any examples how this is done.