pxt-calliope/docs/reference/js/lessons/lucky-7/activity.md
2016-04-13 08:27:45 -07:00

749 B

lucky 7 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 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!

~