pxt-calliope/docs/blocks/on-start.md
Peli de Halleux fb5bb396e1 more migration to common docs (#370)
* more migration to common docs

* refactoring js

* removed duplicate docs

* migrating more docs

* more refactoring

* migrated browsers page

* updated summary
2017-03-14 12:07:17 -07:00

244 B

@extends

#exstart

In this example, on start sets a dimmer brightness on the screen and the button handler shows a string.

input.onButtonPressed(Button.A, () => {
    basic.showString("Hello!")
})
led.setBrightness(50)