2016-03-25 16:47:20 -07:00
|
|
|
# Clear Screen
|
|
|
|
|
2016-04-13 08:27:45 -07:00
|
|
|
Turn off all the LED lights on the [LED screen](/device/screen).
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
```sig
|
|
|
|
basic.clearScreen()
|
|
|
|
```
|
|
|
|
|
2016-06-16 12:52:47 -07:00
|
|
|
### Example: Vanishing heart
|
2016-03-25 16:47:20 -07:00
|
|
|
|
2016-06-16 12:52:47 -07:00
|
|
|
The following code shows a heart on the screen and then turns off all the LED lights.
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
```blocks
|
|
|
|
basic.showLeds(`
|
|
|
|
. # . # .
|
|
|
|
# # # # #
|
|
|
|
# # # # #
|
|
|
|
. # # # .
|
|
|
|
. . # . .
|
|
|
|
`)
|
|
|
|
basic.clearScreen()
|
|
|
|
```
|
|
|
|
|
|
|
|
### See also
|
|
|
|
|
2016-06-16 12:52:47 -07:00
|
|
|
[set brightness](/reference/led/set-brightness), [unplot](/reference/led/unplot), [plot](/reference/led/plot), [Image](/reference/images/image)
|
2016-03-25 16:47:20 -07:00
|
|
|
|