pxt-calliope/docs/reference/basic/show-icon.md
2017-02-27 10:51:52 -08:00

382 B

Show Icon

Shows the selected icon on the LED screen

basic.showIcon(IconNames.Heart)

Example

This program shows a happy face and then a sad face with the show icon function, with a one second pause in between.

basic.showIcon(IconNames.Happy)
basic.pause(1000)
basic.showIcon(IconNames.Sad)

See also

showLeds