pxt-ev3/docs/coding/traffic-lights-3.md
2018-01-05 19:28:24 -08:00

231 B

Traffic Lights Activity 3

loops.forever(function () {
    if (sensors.color3.light(LightIntensityMode.Reflected) < 15) {
        motors.largeBC.tank(30, 12)
    } else {
        motors.largeBC.tank(12, 30)
    }
})