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

41 lines
1012 B
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
2016-05-27 00:24:10 +02:00
2016-03-26 00:47:20 +01:00
## Topic
On Logo Up
## Quick Links
2016-04-13 17:27:45 +02:00
* [activity](/lessons/magic-logo/activity)
* [challenges](/lessons/magic-logo/challenges)
* [quiz](/lessons/magic-logo/challenges)
* [quiz answers](/lessons/magic-logo/challenges)
2016-03-26 00:47:20 +01:00
## Prior learning/place of lesson in scheme of work
2016-11-02 01:44:37 +01:00
Learn how to plot image **on logo up**, `on logo up` to run code when the @boardname@ 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.
2016-03-26 00:47:20 +01:00
## Documentation
2016-04-05 07:33:13 +02:00
```cards
input.onLogoUp(() => {})
input.onLogoDown(() => {})
2016-03-30 01:17:34 +02:00
basic.showLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`)
```
2016-03-26 00:47:20 +01:00
## Objectives
2016-11-02 01:44:37 +01:00
* learn how to display an image on the @boardname@'s LED screen
* learn how to run code when the @boardname@ screen is facing down and vertically orientated
* learn how to run code when the @boardname@ screen is facing up and vertically orientated
2016-03-26 00:47:20 +01:00