ec1ceea138
* bump version * Light Condition -> Light * roll back 0.1.11
13 lines
391 B
Markdown
13 lines
391 B
Markdown
# Light the way Activity 3
|
|
|
|
```blocks
|
|
sensors.color3.onLightDetected(LightIntensityMode.Ambient, Light.Bright, function () {
|
|
brick.clearScreen()
|
|
})
|
|
sensors.color3.onLightDetected(LightIntensityMode.Ambient, Light.Dark, function () {
|
|
brick.showImage(images.objectsLightOn)
|
|
})
|
|
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
|
|
brick.showImage(images.objectsLightOn);
|
|
})
|
|
``` |