pxt-calliope/docs/lessons/magic-logo.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# magic logo lesson
2016-04-02 01:22:47 +02:00
show an image that points up when the logo is up.
2016-03-26 00:47:20 +01:00
### @video td/videos/magic-logo-0
## Topic
On Logo Up
## Quick Links
* [activity](/microbit/lessons/magic-logo/activity)
* [challenges](/microbit/lessons/magic-logo/challenges)
2016-03-31 00:54:19 +02:00
* [quiz](/microbit/lessons/magic-logo/challenges)
* [quiz answers](/microbit/lessons/magic-logo/challenges)
2016-03-26 00:47:20 +01:00
## Prior learning/place of lesson in scheme of work
Learn how to plot image **on logo up**, `on logo up` to run code when the micro:bit screen is facing up and vertically orientated. We will be learning how to plot an image with the logo up, basic show LEDs, and logo down.
## Documentation
2016-03-30 01:17:34 +02:00
```docs
input.onLogoUp(() => {
})
input.onLogoDown(() => {
})
basic.showLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`)
2016-03-26 00:47:20 +01:00
2016-03-30 01:17:34 +02:00
```
2016-03-26 00:47:20 +01:00
## Objectives
* learn how to display an image on the micro:bit's LED screen
* learn how to run code when the micro:bit screen is facing down and vertically orientated
* learn how to run code when the micro:bit screen is facing up and vertically orientated