2467b3c4c9
* renaming pauseforcolor to pause until color detected * pauseForLight -> pauseUntilLightConditionDetected * on light changed -> on light condition detected * fixing docs * docs tweaks
9 lines
230 B
Markdown
9 lines
230 B
Markdown
# Light the way Activity 1
|
|
|
|
```blocks
|
|
sensors.color3.onLightConditionDetected(LightIntensityMode.Ambient, LightCondition.Dark, function () {
|
|
brick.showImage(images.objectsLightOn)
|
|
pause(5000)
|
|
brick.clearScreen()
|
|
})
|
|
``` |