pxt-calliope/docs/reference/led/plot-leds.md
2016-04-15 15:02:26 -07:00

795 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.

KindScript syntax

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