ea956f1a73
* renaming up/down/click to released/pressed/bump * missing images * fixing signature issue * updated strings * white lego logo
13 lines
407 B
Markdown
13 lines
407 B
Markdown
# Light the way Activity 3
|
|
|
|
```blocks
|
|
sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Bright, function () {
|
|
brick.clearScreen()
|
|
})
|
|
sensors.color3.onLightChanged(LightIntensityMode.Ambient, LightCondition.Dark, function () {
|
|
brick.showImage(images.objectsLightOn)
|
|
})
|
|
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
|
|
brick.showImage(images.objectsLightOn);
|
|
})
|
|
``` |