pxt-calliope/docs/lessons/smiley.md
Peli de Halleux df17ba09ae updated links
2016-04-04 22:33:13 -07:00

965 B

smiley blocks lesson

design a blinking image lesson #docs

@video td/videos/smiley-0

Topic

Show LEDs

Prior learning/place of lesson in scheme of work

Learn how to show LEDs to turn on a LED light pattern on the LED screen. We will be learning basic comments such as show LEDs and pause.

Documentation

input.onButtonPressed(Button.A, () => {})
basic.showLeds(`
    . . . . .
    . . . . .
    . . # . .
    . . . . .
    . . . . .
    `)

Objectives

  • learn how to show LEDs on the LED screen
  • learn how to run code when an input button is pressed