pi@dex:~/Desktop/chetuk $ sudo python test.py
Traceback (most recent call last):
File “test.py”, line 5, in
my_Distance_portI2C = easy.DistanceSensor(‘I2C’, gpg, use_mutex=True)
NameError: name ‘gpg’ is not defined
pi@dex:~/Desktop/chetuk $
Traceback (most recent call last):
File "test.py", line 5, in <module>
my_Distance_portI2C = easy.DistanceSensor('I2C', gpg, use_mutex=True)
File "build/bdist.linux-armv7l/egg/easygopigo3.py", line 1194, in DistanceSensor
File "build/bdist.linux-armv7l/egg/easygopigo3.py", line 1096, in old_instantiation
ValueError: Invalid use of mutex: the GoPiGo3 does not use mutex protection and the distance sensor does.
pi@dex:~/Desktop/chetuk $