16 lines
265 B
Markdown
Raw Normal View History

# @extends
2016-03-25 16:47:20 -07:00
## #examples
## Example: Count to 4
2016-03-25 16:47:20 -07:00
2016-05-20 18:33:31 -07:00
This program will show the numbers 0, 1, 2, 3, and 4 one after another on the LED screen.
2016-03-25 16:47:20 -07:00
2016-05-20 18:33:31 -07:00
```blocks
input.onButtonPressed(Button.A, () => {
for(let i = 0; i < 5; ++i) {
basic.showNumber(i)
}
})
2016-03-25 16:47:20 -07:00
```