2467b3c4c9
* renaming pauseforcolor to pause until color detected * pauseForLight -> pauseUntilLightConditionDetected * on light changed -> on light condition detected * fixing docs * docs tweaks
232 B
232 B
Traffic Lights Activity 1
brick.buttonEnter.onEvent(ButtonEvent.Bumped, function () {
motors.largeBC.tank(20, 20)
sensors.color3.pauseUntilColorDetected(ColorSensorColor.Red)
motors.largeBC.tank(0, 0)
})