light the way activities

This commit is contained in:
Peli de Halleux
2018-01-05 19:14:55 -08:00
parent 94c4e508fe
commit 931987468a
9 changed files with 78 additions and 19 deletions

View File

@ -0,0 +1,10 @@
# Light the way Activity 2
```blocks
sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Bright, function () {
brick.clearScreen()
})
sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Dark, function () {
brick.showImage(images.objectsLightOn)
})
```