pxt-calliope/docs/reference/led/plot-leds.md
2016-04-18 08:33:09 -07:00

772 B

Plot LEDs

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

basic.plotLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
. # # # .
`)

Parameters

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

Example: simley

basic.plotLeds(`
. . . . .
. # . # .
. . # . .
# ; . . #
. # # # .
`)

Lessons

smiley, flashing heart, magic logo

See also

show animation, image, show image, scroll image