Code: Select all
code.py output:
0.272
0.272
0.272
0.272
0.272
0.272
0.272
0.272
0.272
0.272
0.272
0.272
Traceback (most recent call last):
File "code.py", line 11, in <module>
File "code.py", line 9, in <module>
File "adafruit_hcsr04.py", line 144, in distance
File "adafruit_hcsr04.py", line 159, in _dist_two_wire
AttributeError: 'HCSR04' object has no attribute '_timeout'
I moved back to the Feather, and moved the echo pin, and got the exact same result.