46 lines
1.0 KiB
Markdown
46 lines
1.0 KiB
Markdown
# screen wipe blocks lesson
|
|
|
|
clear the screen by pressing button "A".
|
|
|
|
### @video td/videos/screen-wipe-0
|
|
|
|
## Topic
|
|
|
|
Clear Screen
|
|
|
|
## Quick Links
|
|
|
|
* [activity](/microbit/lessons/screen-wipe/activity)
|
|
* [quiz](/microbit/lessons/screen-wipe/quiz)
|
|
* [quiz answers](/microbit/lessons/screen-wipe/quiz-answers)
|
|
* [challenges](/microbit/lessons/screen-wipe/challenges)
|
|
|
|
|
|
## 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
|
|
|
|
```docs
|
|
basic.clearScreen()
|
|
basic.showLeds(`
|
|
. . . . .
|
|
. . . . .
|
|
. . # . .
|
|
. . . . .
|
|
. . . . .
|
|
`)
|
|
input.onButtonPressed(Button.A, () => {
|
|
|
|
})
|
|
|
|
```
|
|
|
|
## 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
|