pxt-ev3/docs/coding/light-the-way-2.md
Peli de Halleux ec1ceea138
bump version to 0.1.13 (#407)
* bump version

* Light Condition -> Light

* roll back 0.1.11
2018-04-03 12:03:15 -07:00

286 B

Light the way Activity 2

sensors.color3.onLightDetected(LightIntensityMode.Ambient, Light.Bright, function () {
    brick.clearScreen()
})
sensors.color3.onLightDetected(LightIntensityMode.Ambient, Light.Dark, function () {
    brick.showImage(images.objectsLightOn)
})