I need a program written in C for the RPI. I am using this device:
I want to test it on the RPI. The program needs to have a button to instruct the device to take a reading and then to display the reading on the same screen. I need to be able to press it several times and get several readings without having to restart the program each time.
Here is an example of a program that may be adapted to work:
[url removed, login to view]
I am not quite sure which pins on the GPIO need to be hooked up, so I would need that info from you.
This is a program written in C for the Raspberry Pi 3. Much of the example in the link can be used in the program.
The output should be a distance in either mm or inches shown on the screen.