pxt-calliope/docs/reference/basic/clear-screen.md
2016-06-16 12:52:47 -07:00

500 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