HCSR04 module usage
Posted: Thu Jun 08, 2017 10:32 am
I have put the hcsr04.py module from https://github.com/rsc1975/micropython-hcsr04 on my nodemcu v2 board with ampy and can see it but am unable to import hcsr04.
How should this be done?
Error message as follows
>>> from hcsr04 import HCSR04
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name HCSR04
How should this be done?
Error message as follows
>>> from hcsr04 import HCSR04
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name HCSR04