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

526 B

Show Icon

Shows the selected icon on the LED screen

basic.showIcon(IconNames.Heart)

Parameters

  • icon, the identifier of the icon to display
  • interval (optional), the time to display in milliseconds. default is 400.

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