Migrate docs from the other repo
This commit is contained in:
26
docs/reference/js/lessons/lucky-7/activity.md
Normal file
26
docs/reference/js/lessons/lucky-7/activity.md
Normal file
@ -0,0 +1,26 @@
|
||||
# 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)!
|
||||
|
||||
### ~
|
||||
|
Reference in New Issue
Block a user