I seriously need a bit of help getting my sensors to work.
I am using the latest version of dexters img file.
I have updated and upgraded the software.
Running the lego motor test works fine, the blue led test works fine, but I cannot get ANY of the sensor tests to work. I have tried and tried and tried. Most probably I have looked at it so hard I can’t see the wood for the trees now.
Can anyone spare the time to talk me through it step by step please. I would dearly appreciate any help.
I have tried running this python code too, but again no luck at all:
from BrickPi import *
BrickPi.SensorType[PORT_1] = TYPE_SENSOR_TOUCH
BrickPi.MotorEnable[PORT_A] = 1
result = BrickPiUpdateValues()
if not result:
BrickPi.MotorSpeed[PORT_A] = 200
BrickPi.MotorSpeed[PORT_A] = 0
I have tried deleteing the # in the debug =1 line in BrickPi to get it running in debug mode but that didn’t work.
Please help me if you can, it will be much appreciated