pxt-calliope/olddocs/js/lessons/show-number/challenges.md

40 lines
732 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# show number challenges
My script. #docs
### Challenge 0
2016-04-13 17:27:45 +02:00
Welcome! This [guided tutorial](/xvogbz) will help you show a number on the LED screen!
2016-03-26 00:47:20 +01:00
Show a number on the LED screen! One digit will display at a time, scrolling from left to right.
Make lucky number 7 display on the screen!
```
basic.showNumber(7, 150)
```
### Challenge 1
But we also should pause before showing another number.
```
basic.showNumber(7, 150)
basic.pause(500) // ***
```
### Challenge 2
Let's display the next multiple of 7 on the screen!
```
basic.showNumber(7, 150)
basic.pause(500)
basic.showNumber(14, 150) // ***
```
### Challenge 3
Keep displaying multiples of 7 such as 21 and 28, but don't forget to add pauses between the numbers!