pxt-calliope/docs/reference/basic/clear-screen.md
2016-05-20 13:24:27 -07:00

679 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 using clear screen:

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

Lessons

blink, flashing heart, screen wipe

See also

set brightness, unplot, plot, Image, clear