pxt-calliope/docs/getting-started.md

42 lines
937 B
Markdown
Raw Normal View History

2016-05-12 22:56:03 +02:00
# Getting started
2016-05-12 22:41:15 +02:00
## ~avatar
Are you ready to build cool BBC micro:bit programs?
2016-05-12 22:41:15 +02:00
2016-06-15 03:37:55 +02:00
Here are some challenges for you. Arrange the blocks in the editor
to make real programs that work!
2016-05-12 22:41:15 +02:00
## ~
2016-06-16 22:15:24 +02:00
Use the **Basic** drawer in the editor (to the left)
2016-06-16 22:21:59 +02:00
to drag out and arrange three blocks (two `show leds` and one `forever` block)
2016-06-16 22:15:24 +02:00
to create this program:
2016-06-02 20:38:14 +02:00
2016-06-02 21:32:13 +02:00
```blocks
2016-06-02 20:38:14 +02:00
basic.forever(() => {
basic.showLeds(`
. . . . .
. # . # .
. . . . .
# . . . #
. # # # .
`)
basic.showLeds(`
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
`)
});
```
2016-06-24 08:52:24 +02:00
When this program runs, you will see a smiley face, then a blank
2016-06-03 00:25:19 +02:00
screen, then a smiley again -- it never stops! (That's because of the
``forever`` block.)
2016-06-24 08:52:24 +02:00
Click **Compile** to move your program to the BBC micro:bit!
Make sure to follow the instructions.
2016-06-16 20:46:48 +02:00
2016-06-24 08:52:24 +02:00
## [NEXT: THE SCREEN](/getting-started/screen)