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

41 lines
1.0 KiB
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# magic logo lesson
2016-04-01 16:22:47 -07:00
show an image that points up when the logo is up.
2016-03-25 16:47:20 -07:00
2016-05-26 15:24:10 -07:00
2016-03-25 16:47:20 -07:00
## Topic
On Logo Up
## Quick Links
2016-04-13 08:27:45 -07:00
* [activity](/lessons/magic-logo/activity)
* [challenges](/lessons/magic-logo/challenges)
* [quiz](/lessons/magic-logo/challenges)
* [quiz answers](/lessons/magic-logo/challenges)
2016-03-25 16:47:20 -07:00
## Prior learning/place of lesson in scheme of work
Learn how to plot an image using ``||input: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-25 16:47:20 -07:00
## Documentation
2016-04-04 22:33:13 -07:00
```cards
input.onGesture(Gesture.LogoUp, function () {})
input.onGesture(Gesture.LogoDown, function () {})
2016-03-29 16:17:34 -07:00
basic.showLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`)
```
2016-03-25 16:47:20 -07:00
## Objectives
2016-11-01 17:44:37 -07: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-25 16:47:20 -07:00