pxt-calliope/docs/reference/led/plot-leds.md
2016-11-01 10:42:42 -07:00

652 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