pxt-calliope/docs/lessons/magic-logo.md
Michael Elliot Braun a14585d36f updating lessons
2016-03-30 15:54:19 -07:00

1.1 KiB

magic logo lesson

show an image that points up when the logo is up #logo #point #docs

@video td/videos/magic-logo-0

Topic

On Logo Up

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

input.onLogoUp(() => {

})
input.onLogoDown(() => {
    
})
basic.showLeds(`
    . . . . .
    . . . . .
    . . # . .
    . . . . .
    . . . . .
    `)


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