Count duration a GPIO is high (or low) ? [closed]
Hello,
I'm using a Beaglebone black micro-controller with ROS (melodic, code in rospy) and Adafruit library installed. Is there any way to receive the exact duration is ns/us/secs a GPIO is high? Currently, I want this feature so I can accurately convert a signal beaglebone receives from a sonar sensor, into distance.
Thanks in advance,
Jason C.
I'm sorry, but this does not seem like a ROS question. It's more a low-level GPIO interfacing issue.
As such, I would suggest to post this on a more appropriate forum, such as those dealing with embedded programming.