pxt-calliope/docs/reference/basic/clear-screen.md
Sam El-Husseini e3975e65e5 pxt-microbit Accessibility PR (#529)
* Accessibility changes
2017-09-07 13:42:08 -07:00

498 B

Clear Screen

Turn off all the LED lights on the LED screen.

basic.clearScreen()

Example: Vanishing heart

The following code shows a heart on the screen and then turns off all the LED lights.

basic.showLeds(`
. # . # . 
# # # # # 
# # # # # 
. # # # . 
. . # . . 
`)
basic.clearScreen()

See also

set brightness, unplot, plot, Image