pxt-ev3/docs/coding/light-the-way-1.md

9 lines
230 B
Markdown
Raw Normal View History

2018-01-06 04:14:55 +01:00
# Light the way Activity 1
```blocks
sensors.color3.onLightConditionDetected(LightIntensityMode.Ambient, LightCondition.Dark, function () {
2018-01-06 04:14:55 +01:00
brick.showImage(images.objectsLightOn)
pause(5000)
2018-01-06 04:14:55 +01:00
brick.clearScreen()
})
```