32 lines
682 B
Markdown
32 lines
682 B
Markdown
# Clear Screen
|
|
|
|
Turn off all the LED lights on the [LED screen](/device/screen).
|
|
|
|
```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
|
|
|
|
[blink](/lessons/blink), [flashing heart](/lessons/flashing-heart), [screen wipe](/lessons/screen-wipe)
|
|
|
|
### See also
|
|
|
|
[set brightness](/reference/led/set-brightness), [unplot](/reference/led/unplot), [plot](/reference/led/plot), [Image](/reference/images/image), [clear](/reference/basic/clear-screen)
|
|
|