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

649 B

Plot LEDs

Display an Image on the @boardname@'s LED screen. NOTE: basic -> plot image has been replaced by basic -> show leds.

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

Parameters

  • leds - a series of LED on/off states that form an image (see steps below)

Example: smiley

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

See also

show animation, image, show image, scroll image