pxt-calliope/docs/lessons/smiley.md
Sam El-Husseini e3975e65e5 pxt-microbit Accessibility PR (#529)
* Accessibility changes
2017-09-07 13:42:08 -07:00

41 lines
844 B
Markdown

# smiley blocks lesson
Design a blinking image lesson
## Topic
Show LEDs
## Quick Links
* [activity](/lessons/smiley/activity)
* [quiz](/lessons/smiley/quiz)
* [quiz answers](/lessons/smiley/quiz-answers)
* [challenges](/lessons/smiley/challenges)
## 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
* **[show LEDs](/reference/basic/show-leds)**
* **[on button pressed](/reference/input/on-button-pressed)**
```cards
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