77ed2ccfb1
* update pxt.json files * Fix button event enums fixes https://github.com/microsoft/pxt-calliope/issues/206 * Fix Safari CSS Rule for iOS app fixes https://github.com/microsoft/pxt-calliope/issues/205 * aprove preffered repos should fix https://github.com/microsoft/pxt-calliope/issues/167
13 lines
284 B
Markdown
13 lines
284 B
Markdown
# @extends
|
|
|
|
## #exstart
|
|
|
|
In this example, ``on start`` sets a dimmer brightness on the screen and the button handler shows a string.
|
|
|
|
```blocks
|
|
input.onButtonEvent(Button.A, input.buttonEventValue(ButtonEvent.Down), () => {
|
|
basic.showString("Hello!")
|
|
})
|
|
led.setBrightness(50)
|
|
```
|