pxt-calliope/docs/reference/led/plot-leds.md
2016-06-11 22:28:57 -04:00

654 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(`
. . . . .
. # . # .
. . # . .
# ; . . #
. # # # .
`)

See also

show animation, image, show image, scroll image