traffic lights activity

This commit is contained in:
Peli de Halleux
2018-01-05 19:28:24 -08:00
parent 931987468a
commit 6928f9e50e
4 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# Traffic Lights Activity 3
```blocks
loops.forever(function () {
if (sensors.color3.light(LightIntensityMode.Reflected) < 15) {
motors.largeBC.tank(30, 12)
} else {
motors.largeBC.tank(12, 30)
}
})
```