pxt-ev3/docs/coding/light-the-way-3.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

391 B

Light the way Activity 3

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