So I was trying to get the Lego Color Sensor to work using the default test file (Python). I noticed that the color sensor was not turning off after the code finished. Just as a refresher, the code is:
from BrickPi import *
Color_Sensor_Port = PORT_3
BrickPi.SensorType[Color_Sensor_Port] = TYPE_SENSOR_COLOR_RED
result = BrickPiUpdateValues()
After I cut the code using “control C”, which is a Keyboard Interrupt, the light does not turn off like it is supposed to.
If anyone has something that I could try to fix this problem, I’m all ears.