pxt-calliope/docs/lessons/beautiful-image/activity.md

33 lines
671 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# beautiful image blocks activity
2016-04-02 01:22:47 +02:00
Generate and show a beautiful image.
2016-03-26 00:47:20 +01:00
### ~avatar avatar
### @video td/videos/beautiful-image-0
Let's learn how to show an image on the LED screen.
### ~
To create a new script, go to the [Create Code](/microbit/create-code) page and tap *New Project* under the *Block Editor*.
We will use *show LEDs* to draw an image on the LED screen. This function immediately writes on the screen.
```blocks
basic.showLeds(`
# # # # #
# # . # #
# . # . #
# # . # #
# # # # #
`)
```
### ~avatar boothing
Excellent, you're ready to continue with the [challenges](/microbit/lessons/beautiful-image/challenges)!
### ~