pxt-calliope/docs/reference/basic/clear-screen.md

32 lines
682 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Clear Screen
2016-04-13 17:27:45 +02:00
Turn off all the LED lights on the [LED screen](/device/screen).
2016-03-26 00:47:20 +01:00
```sig
basic.clearScreen()
```
### Example: vanishing heart
The following code displays a heart on the screen and then turns off all the LED lights using `clear screen`:
```blocks
basic.showLeds(`
. # . # .
# # # # #
# # # # #
. # # # .
. . # . .
`)
basic.clearScreen()
```
### Lessons
2016-04-13 17:27:45 +02:00
[blink](/lessons/blink), [flashing heart](/lessons/flashing-heart), [screen wipe](/lessons/screen-wipe)
2016-03-26 00:47:20 +01:00
### See also
2016-04-16 00:02:26 +02:00
[set brightness](/reference/led/set-brightness), [unplot](/reference/led/unplot), [plot](/reference/led/plot), [Image](/reference/images/image), [clear](/reference/basic/clear-screen)
2016-03-26 00:47:20 +01:00