ea956f1a73
* renaming up/down/click to released/pressed/bump * missing images * fixing signature issue * updated strings * white lego logo
12 lines
290 B
Markdown
12 lines
290 B
Markdown
# Happy unhappy
|
|
|
|
Use a touch sensor to make the brick happy.
|
|
|
|
```blocks
|
|
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
|
|
brick.showImage(images.expressionsBigSmile)
|
|
})
|
|
sensors.touch1.onEvent(ButtonEvent.Released, function () {
|
|
brick.showImage(images.expressionsSick)
|
|
})
|
|
``` |