pxt-calliope/docs/blocks/on-start.md

13 lines
244 B
Markdown
Raw Normal View History

2020-08-19 22:03:58 +02:00
# @extends
## #exstart
In this example, ``on start`` sets a dimmer brightness on the screen and the button handler shows a string.
```blocks
input.onButtonPressed(Button.A, () => {
basic.showString("Hello!")
})
led.setBrightness(50)
```