2016-05-12 22:56:03 +02:00
|
|
|
# Getting started
|
2016-05-12 22:41:15 +02:00
|
|
|
|
2016-06-04 00:15:24 +02:00
|
|
|
## ~avatar
|
|
|
|
|
2016-06-15 03:37:55 +02:00
|
|
|
Here are some challenges for you. Arrange the blocks in the editor
|
2016-06-01 22:35:53 +02:00
|
|
|
to make real programs that work!
|
2016-05-12 22:41:15 +02:00
|
|
|
|
2016-06-04 00:15:24 +02:00
|
|
|
## ~
|
|
|
|
|
2016-07-21 22:46:22 +02:00
|
|
|
Use the **Basic** drawer in the editor
|
|
|
|
to drag out and arrange three blocks 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 22:27:34 +02:00
|
|
|
### ~button /getting-started/screen
|
|
|
|
NEXT: THE SCREEN
|
|
|
|
### ~
|