pxt-calliope/olddocs/lessons/smiley.md
Tom Ball f4eca66648 move lessons out of web site
will move select lessons back to "educators" section
2016-06-14 11:49:58 -04:00

874 B

smiley blocks lesson

Design a blinking image lesson

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