Hello, I’m Jose Luis Tomas from Valencia (Spain). I have problems when I try to turns on, the little light that are included in the set 9797 of Lego, It does not work.
I kwon that when I connect this ligth to an output port in the NXT Brick (for example Port A), the light turns on when we try to power on this ‘motor’.
In the Brickpi I use the python language and I connect for example the light to the Motor or Port C, I use the following code fragment:
BrickPi.MotorEnable[moto3] = 1 #Enable the ‘Light’
BrickPiSetupSensors() #Send the properties of sensors to BrickPi
BrickPi.MotorSpeed[motor3] = 180