I would like to use the 3 wire approach where the trigger and echo pins are tied together. This works fine on Arduino's
Here is the relevant code:
Code: Select all
import adafruit_hcsr04
sonar = adafruit_hcsr04.HCSR04(trigger_pin=board.D3, echo_pin=board.D3)
Is this not possible on the PyPortal or am I missing something?
Thanks.