pxt-calliope/docs/lessons/magic-logo.md
Peli de Halleux 50367217f3
Lessons fixes (#1609)
* fixing a bunch of lessons

* more fixes

* more fixes

* more cleanup

* Additional fixes
2018-11-09 15:36:46 -08:00

1.0 KiB

magic logo lesson

show an image that points up when the logo is up.

Topic

On Logo Up

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.

Documentation

input.onGesture(Gesture.LogoUp, function () {})
input.onGesture(Gesture.LogoDown, function () {})
basic.showLeds(`
    . . . . .
    . . . . .
    . . # . .
    . . . . .
    . . . . .
    `)

Objectives

  • 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