it’s my second day on GrovePi and i love it. I have a Raspberry Pi B+ with GrovePi+ with latest firmware 1.2.2 and library updated as suggested, by attaching the Ultrasonic Ranger to D4 and running sudo python grove_ultrasonic.py i get:
Traceback (most recent call last):
File “grove_ultrasonic.py”, line 13, in <module>
NameError: name ‘ultrasonicRead’ is not defined
I have no clue on why it doesn’t work. Any suggestion please?
Okay, i got it.
changed “import grovepi” to “from grovepi import *” as seen in (working) Project file. Is this an issue i can open on github or are there specific reason why it behaves this way? Useful in case i find similar bugs.