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

9 lines
220 B
Markdown

# Light the way Activity 1
```blocks
sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Dark, function () {
brick.showImage(images.objectsLightOn)
pause(5000)
brick.clearScreen()
})
```