2018-01-06 04:14:55 +01:00
|
|
|
# Light the way Activity 1
|
|
|
|
|
|
|
|
```blocks
|
2018-04-03 21:03:15 +02:00
|
|
|
sensors.color3.onLightDetected(LightIntensityMode.Ambient, Light.Dark, function () {
|
2018-01-06 04:14:55 +01:00
|
|
|
brick.showImage(images.objectsLightOn)
|
2018-02-15 01:05:31 +01:00
|
|
|
pause(5000)
|
2018-01-06 04:14:55 +01:00
|
|
|
brick.clearScreen()
|
|
|
|
})
|
|
|
|
```
|