27 lines
787 B
Markdown
27 lines
787 B
Markdown
|
# lucky 7 activity
|
||
|
|
||
|
show a number on the LED screen. #docs #tutorials #stepByStep
|
||
|
|
||
|
### ~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)!
|
||
|
|
||
|
### ~
|
||
|
|