2016-03-26 00:47:20 +01:00
|
|
|
# lucky 7 blocks activity
|
|
|
|
|
|
|
|
Show a number on the LED screen.
|
|
|
|
|
|
|
|
### ~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 **Block Editor**.
|
|
|
|
|
|
|
|
We will use `show number` to display a number on the screen. The argument (`7`) is the number to display.
|
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showNumber(7)
|
|
|
|
```
|
|
|
|
|
|
|
|
### ~avatar boothing
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Excellent, you're ready to continue with the [challenges](/lessons/lucky-7/challenges)!
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
### ~
|
|
|
|
|