pxt-calliope/docs/reference/js/lessons/lucky-7/activity.md

27 lines
758 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# lucky 7 activity
2016-04-02 01:22:47 +02:00
show a number on the LED screen.
2016-03-26 00:47:20 +01:00
### ~avatar avatar
### @video td/videos/lucky-7-0
Let's learn how to show the lucky number 7 on the LED screen.
### ~
To create a new script, go to the [Create Code](https://www.microbit.co.uk/create-code) page and tap `New Project` under **Touch Develop**.
We will use `basic->show number` to display a number on the screen. The first argument (`7`) is the number to display and the second argument (`150`) is duration in milliseconds between column scroll. For example, you can reduce `150` to `100` to speed up the scrolling.
```
basic.showNumber(7, 150) // ***
```
### ~avatar boothing
Excellent, you're ready to continue with the [challenges](/microbit/lessons/lucky-7/challenges)!
### ~