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