pxt-calliope/docs/lessons/screen-wipe.md

41 lines
983 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# screen wipe blocks lesson
2016-06-02 06:19:16 +02:00
Clear the screen by pressing button "A".
2016-03-26 00:47:20 +01:00
## Topic
Clear Screen
## Quick Links
2016-04-13 17:27:45 +02:00
* [activity](/lessons/screen-wipe/activity)
* [quiz](/lessons/screen-wipe/quiz)
* [quiz answers](/lessons/screen-wipe/quiz-answers)
* [challenges](/lessons/screen-wipe/challenges)
2016-03-26 00:47:20 +01:00
## Prior learning/place of lesson in scheme of work
Learn how to **clear screen**, `clear screen` to turn off all the LED lights on the LED screen. We will be learning how to clear all LED lights on the LED screen using clear screen, input on button pressed as well as simple commands, such as show animation.
## Documentation
2016-04-05 07:33:13 +02:00
```cards
2016-03-30 01:17:34 +02:00
basic.clearScreen()
basic.showLeds(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`)
2016-04-05 07:33:13 +02:00
input.onButtonPressed(Button.A, () => {})
2016-03-30 01:17:34 +02:00
```
2016-03-26 00:47:20 +01:00
## Objectives
* learn how to show a series of images on the LED screen
* learn how to run code when an input button is pressed
* learn how to turn off all the LED lights on the LED screen