pxt-ev3/docs/coding/light-the-way-2.md
2018-01-05 19:14:55 -08:00

302 B

Light the way Activity 2

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