I am trying to work with the BrickPi, and to at least get started, simply run a motor. But theres a problem.
Error:
Traceback (most recent call last):
File "motor_sens.py", line 1, in <module>
from BrickPi import *
File "/usr/local/lib/python2.7/dist-packages/BrickPi-0.0.0-py2.7.egg/BrickPi.py", line 46, in <module>
import ir_receiver_check
ImportError: No module named ir_receiver_check
I am using a tutorial found here: https://learn.sparkfun.com/tutorials/getting-started-with-the-brickpi
And the code in particular
from BrickPi import *
BrickPiSetup()
BrickPi.SensorType[PORT_1] = TYPE_SENSOR_TOUCH
BrickPi.MotorEnable[PORT_A] = 1
BrickPiSetupSensors()
while True:
result = BrickPiUpdateValues()
if not result:
if BrickPi.Sensor[PORT_1]:
BrickPi.MotorSpeed[PORT_A] = 200
else:
BrickPi.MotorSpeed[PORT_A] = 0
time.sleep(0.01)
Whats wrong? How to fix.